#include <apt.h>
Public 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, Hold = 1 << 10 } |
| typedef unsigned | state |
Public Member Functions | |
| operator unsigned () | |
| PackageState & | operator= (unsigned i) |
| PackageState & | operator|= (const PackageState &s) |
| PackageState (unsigned a) | |
| PackageState () | |
| bool | install () const |
| bool | reinstall () const |
| bool | remove () const |
| bool | purge () const |
| bool | keep () const |
| bool | willBreak () const |
| bool | upgrade () const |
| bool | newInstall () const |
| bool | hold () const |
| bool | installed () const |
| bool | hasNewVersion () const |
| bool | upgradable () const |
| bool | held () const |
| bool | nowBroken () const |
| bool | modify () const |
Protected Attributes | |
| unsigned | m_state |
| typedef unsigned ept::core::PackageState::state |
| ept::core::PackageState::PackageState | ( | unsigned | a | ) | [inline] |
References m_state.
| ept::core::PackageState::PackageState | ( | ) | [inline] |
| ept::core::PackageState::operator unsigned | ( | ) | [inline] |
References m_state.
| PackageState& ept::core::PackageState::operator= | ( | unsigned | i | ) | [inline] |
References m_state.
| PackageState& ept::core::PackageState::operator|= | ( | const PackageState & | s | ) | [inline] |
References m_state.
| bool ept::core::PackageState::install | ( | ) | const [inline] |
| bool ept::core::PackageState::purge | ( | ) | const [inline] |
| bool ept::core::PackageState::keep | ( | ) | const [inline] |
| bool ept::core::PackageState::upgrade | ( | ) | const [inline] |
References hasNewVersion(), and install().
| bool ept::core::PackageState::newInstall | ( | ) | const [inline] |
References install(), and installed().
| bool ept::core::PackageState::hold | ( | ) | const [inline] |
| bool ept::core::PackageState::installed | ( | ) | const [inline] |
References Installed, and m_state.
Referenced by newInstall(), and ept::core::package::Action::redundant().
| bool ept::core::PackageState::hasNewVersion | ( | ) | const [inline] |
| bool ept::core::PackageState::upgradable | ( | ) | const [inline] |
References hasNewVersion(), and hold().
Referenced by ept::core::package::Source::isUpgradable(), and ept::core::package::Action::redundant().
| bool ept::core::PackageState::held | ( | ) | const [inline] |
References hasNewVersion(), and hold().
| bool ept::core::PackageState::modify | ( | ) | const [inline] |
unsigned ept::core::PackageState::m_state [protected] |
Referenced by hasNewVersion(), hold(), install(), installed(), keep(), nowBroken(), operator unsigned(), operator=(), operator|=(), PackageState(), purge(), reinstall(), remove(), and willBreak().
1.5.6