18 #ifndef CUPT_SYSTEM_STATE_SEEN
19 #define CUPT_SYSTEM_STATE_SEEN
24 #include <cupt/fwd.hpp>
41 internal::StateData* __data;
51 enum Type { Unknown, Install, Hold, Deinstall, Purge, Count };
57 enum Type { Ok, Reinstreq, Hold, HoldAndReinstreq, Count };
63 enum Type { NotInstalled, Unpacked, HalfConfigured, HalfInstalled, ConfigFiles,
64 PostInstFailed, RemovalFailed, Installed, TriggersPending, TriggersAwaited, Count };
65 static const string strings[];
72 bool isBroken()
const;
76 CUPT_LOCAL
State(shared_ptr< const Config >, internal::CacheImpl*);
85 shared_ptr< const InstalledRecord > getInstalledInfo(
const string& packageName)
const;
90 vector< string > getInstalledPackageNames()
const;
92 string getArchitecture()
const;
94 CUPT_LOCAL vector< string > getReinstallRequiredPackageNames()
const;
package state flag
Definition: state.hpp:54
stores an additional information for installed packages
Definition: state.hpp:39
wanted package state
Definition: state.hpp:48
package installation status
Definition: state.hpp:60
Type
type
Definition: state.hpp:57
Type
type
Definition: state.hpp:63
installed package's information
Definition: state.hpp:45
Type
type
Definition: state.hpp:51