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);
178 const string& previousName,
const string& newName);
void saveSnapshot(const Snapshots &, const string &name)
Worker(const shared_ptr< const Config > &config, const shared_ptr< const Cache > &cache)
constructor
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
void updateReleaseAndIndexData(const shared_ptr< download::Progress > &progress)
pair< size_t, size_t > getDownloadSizesPreview() const
various snapshot-related routines
Definition: snapshots.hpp:38
void setDesiredState(const Resolver::Offer &offer)
@ ProcessTriggers
triggers are processed for the existing package
Definition: worker.hpp:58
void setPackagePurgeFlag(const string &packageName, bool value)
void changeSystem(const shared_ptr< download::Progress > &progress)
shared_ptr< const ActionsPreview > getActionsPreview() const
@ Upgrade
new version of the existing package is installed
Definition: worker.hpp:54
void deleteArchive(const string &path)
Definition: worker.hpp:65
@ Deconfigure
the existing package in intermediate state is removed
Definition: worker.hpp:57
@ Remove
the existing package is removed
Definition: worker.hpp:52
map< string, ssize_t > getUnpackedSizesPreview() const
void renameSnapshot(const Snapshots &, const string &previousName, const string &newName)
vector< pair< string, const BinaryVersion * > > getArchivesInfo() const
gets available archives of binary versions
performs system modifications
Definition: worker.hpp:41
action types
Definition: worker.hpp:49
@ Install
a new package is installed
Definition: worker.hpp:51
void deletePartialArchives()
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:132
@ Downgrade
old version of the existing package is installed
Definition: worker.hpp:55
void removeSnapshot(const Snapshots &, const string &name)