Go to the documentation of this file.
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 changeSystem(
const shared_ptr< download::Progress >& progress);
142 void updateReleaseAndIndexData(
const shared_ptr< download::Progress >& progress);
152 vector< pair< string, const BinaryVersion* > > getArchivesInfo()
const;
159 void deleteArchive(
const string& path);
163 void deletePartialArchives();
170 void saveSnapshot(
const Snapshots&,
const string& name);
178 const string& previousName,
const string& newName);
184 void removeSnapshot(
const Snapshots&,
const string& name);
map< string, SuggestedPackage > SuggestedPackages
Definition: resolver.hpp:129
@ Reinstall
remove and install the installed version
Definition: worker.hpp:59
std::map< string, bool > autoFlagChanges
maps package name to target 'automatically installed' flag value
Definition: worker.hpp:75
various snapshot-related routines
Definition: snapshots.hpp:37
@ ProcessTriggers
triggers are processed for the existing package
Definition: worker.hpp:58
@ Upgrade
new version of the existing package is installed
Definition: worker.hpp:54
Definition: worker.hpp:64
@ Deconfigure
the existing package in intermediate state is removed
Definition: worker.hpp:57
@ Remove
the existing package is removed
Definition: worker.hpp:52
performs system modifications
Definition: worker.hpp:40
action types
Definition: worker.hpp:48
@ Install
a new package is installed
Definition: worker.hpp:51
Type
Definition: worker.hpp:50
@ Purge
the existing package is purged
Definition: worker.hpp:53
@ Configure
the existing package in intermediate state is configured (properly installed)
Definition: worker.hpp:56
the result of resolver's work
Definition: resolver.hpp:131
@ Downgrade
old version of the existing package is installed
Definition: worker.hpp:55