#include <apt.h>
Public Member Functions | |
PackageState () | |
PackageState (unsigned int flags) | |
bool | isValid () const |
bool | markedInstall () const |
bool | markedUpgrade () const |
bool | markedNewInstall () const |
bool | markedReInstall () const |
bool | markedKeep () const |
bool | markedRemove () const |
bool | markedPurge () const |
bool | isInstalled () const |
bool | isUpgradable () const |
bool | isBroken () const |
bool | willBreak () const |
bool | canInstall () const |
bool | canRemove () const |
bool | canKeep () const |
bool | canUpgrade () const |
bool | canReInstall () const |
bool | canRevertInstall () const |
Protected Types | |
enum | Query { Install = 1 << 0, Upgrade = 1 << 1, Keep = 1 << 2, Remove = 1 << 3, Installed = 1 << 4, Upgradable = 1 << 5, NowBroken = 1 << 6, WillBreak = 1 << 7, ReInstall = 1 << 8, Purge = 1 << 9, Valid = 1 << 10 } |
Protected Attributes | |
unsigned int | m_flags |
Friends | |
class | Apt |
enum ept::apt::PackageState::Query [protected] |
ept::apt::PackageState::PackageState | ( | ) | [inline] |
ept::apt::PackageState::PackageState | ( | unsigned int | flags | ) | [inline] |
bool ept::apt::PackageState::isValid | ( | ) | const [inline] |
bool ept::apt::PackageState::markedInstall | ( | ) | const [inline] |
References Install, m_flags, and markedReInstall().
Referenced by canInstall(), canKeep(), markedNewInstall(), and markedUpgrade().
bool ept::apt::PackageState::markedUpgrade | ( | ) | const [inline] |
bool ept::apt::PackageState::markedNewInstall | ( | ) | const [inline] |
References isUpgradable(), markedInstall(), and markedReInstall().
Referenced by canRevertInstall().
bool ept::apt::PackageState::markedReInstall | ( | ) | const [inline] |
References m_flags, and ReInstall.
Referenced by canReInstall(), markedInstall(), and markedNewInstall().
bool ept::apt::PackageState::markedRemove | ( | ) | const [inline] |
bool ept::apt::PackageState::isInstalled | ( | ) | const [inline] |
References Installed, and m_flags.
Referenced by canInstall(), canReInstall(), canRemove(), and TestApt::state().
bool ept::apt::PackageState::isUpgradable | ( | ) | const [inline] |
References m_flags, and Upgradable.
Referenced by canReInstall(), canUpgrade(), markedNewInstall(), and markedUpgrade().
bool ept::apt::PackageState::isBroken | ( | ) | const [inline] |
bool ept::apt::PackageState::canInstall | ( | ) | const [inline] |
References isBroken(), isInstalled(), markedInstall(), and markedRemove().
bool ept::apt::PackageState::canRemove | ( | ) | const [inline] |
References isInstalled(), and markedRemove().
bool ept::apt::PackageState::canKeep | ( | ) | const [inline] |
References markedInstall(), markedRemove(), and markedUpgrade().
bool ept::apt::PackageState::canUpgrade | ( | ) | const [inline] |
References isUpgradable(), and markedUpgrade().
bool ept::apt::PackageState::canReInstall | ( | ) | const [inline] |
References isInstalled(), isUpgradable(), and markedReInstall().
bool ept::apt::PackageState::canRevertInstall | ( | ) | const [inline] |
References markedNewInstall().
friend class Apt [friend] |
unsigned int ept::apt::PackageState::m_flags [protected] |
Referenced by isBroken(), isInstalled(), isUpgradable(), isValid(), markedInstall(), markedKeep(), markedPurge(), markedReInstall(), markedRemove(), and willBreak().