18 #ifndef CUPT_SYSTEM_WORKER_SEEN
19 #define CUPT_SYSTEM_WORKER_SEEN
26 #include <cupt/fwd.hpp>
42 internal::WorkerImpl* __impl;
61 static const char* rawStrings[Count];
82 Worker(
const shared_ptr< const Config >& config,
const shared_ptr< const Cache >& cache);
108 void setPackagePurgeFlag(
const string& packageName,
bool value);
115 shared_ptr< const ActionsPreview > getActionsPreview()
const;
121 map< string, ssize_t > getUnpackedSizesPreview()
const;
127 pair< size_t, size_t > getDownloadSizesPreview()
const;
135 void setAutomaticallyInstalledFlag(
const string& packageName,
bool value);
142 void changeSystem(
const shared_ptr< download::Progress >& progress);
150 void updateReleaseAndIndexData(
const shared_ptr< download::Progress >& progress);
160 vector< pair< string, shared_ptr< const BinaryVersion > > > getArchivesInfo()
const;
167 void deleteArchive(
const string& path);
171 void deletePartialArchives();
178 void saveSnapshot(
const Snapshots&,
const string& name);
186 const string& previousName,
const string& newName);
192 void removeSnapshot(
const Snapshots&,
const string& name);