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, Count };
63 enum Type { NotInstalled, Unpacked, HalfConfigured, HalfInstalled, ConfigFiles,
64 Installed, TriggersPending, TriggersAwaited, Count };
65 static const string strings[];
76 CUPT_LOCAL
State(shared_ptr< const Config >, internal::CacheImpl*);
94 CUPT_LOCAL vector< string > getReinstallRequiredPackageNames()
const;
stores an additional information for installed packages
Definition state.hpp:40
string getArchitecture() const
gets system binary architecture
vector< string > getInstalledPackageNames() const
gets installed package names
CUPT_LOCAL State(shared_ptr< const Config >, internal::CacheImpl *)
constructor, not for public use
const InstalledRecord * getInstalledInfo(const string &packageName) const
gets installed record for a package
package state flag
Definition state.hpp:55
Type
type
Definition state.hpp:57
package installation status
Definition state.hpp:61
Type
type
Definition state.hpp:63
wanted package state
Definition state.hpp:49
Type
type
Definition state.hpp:51
installed package's information
Definition state.hpp:46
bool isBroken() const
returns true when the package is not installed properly