18 #ifndef CUPT_SYSTEM_WORKER_SEEN
19 #define CUPT_SYSTEM_WORKER_SEEN
26 #include <cupt/fwd.hpp>
42 internal::WorkerImpl* __impl;
62 static const char* rawStrings[Count];
83 Worker(
const shared_ptr< const Config >& config,
const shared_ptr< const Cache >& cache);
107 void setPackagePurgeFlag(
const string& packageName,
bool value);
114 shared_ptr< const ActionsPreview > getActionsPreview()
const;
120 map< string, ssize_t > getUnpackedSizesPreview()
const;
126 pair< size_t, size_t > getDownloadSizesPreview()
const;
134 void setAutomaticallyInstalledFlag(
const string& packageName,
bool value);
141 void changeSystem(
const shared_ptr< download::Progress >& progress);
149 void updateReleaseAndIndexData(
const shared_ptr< download::Progress >& progress);
159 vector< pair< string, const BinaryVersion* > > getArchivesInfo()
const;
166 void deleteArchive(
const string& path);
170 void deletePartialArchives();
177 void saveSnapshot(
const Snapshots&,
const string& name);
185 const string& previousName,
const string& newName);
191 void removeSnapshot(
const Snapshots&,
const string& name);