libept
Public Types | Public Member Functions | Protected Attributes | List of all members
ept::apt::PackageState Struct Reference

#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, Valid = 1 << 11
}
 
typedef unsigned state
 

Public Member Functions

 operator unsigned ()
 
PackageStateoperator= (unsigned i)
 
PackageStateoperator|= (const PackageState &s)
 
 PackageState (unsigned a)
 
 PackageState ()
 
bool isValid () const
 
bool isInstalled () const
 
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
 

Member Typedef Documentation

◆ state

Member Enumeration Documentation

◆ Query

Enumerator
Install 
Upgrade 
Keep 
Remove 
Installed 
Upgradable 
NowBroken 
WillBreak 
ReInstall 
Purge 
Hold 
Valid 

Constructor & Destructor Documentation

◆ PackageState() [1/2]

ept::apt::PackageState::PackageState ( unsigned  a)
inline

References m_state.

◆ PackageState() [2/2]

ept::apt::PackageState::PackageState ( )
inline

Member Function Documentation

◆ hasNewVersion()

bool ept::apt::PackageState::hasNewVersion ( ) const
inline

References m_state, and Upgradable.

Referenced by held(), upgradable(), and upgrade().

◆ held()

bool ept::apt::PackageState::held ( ) const
inline

References hasNewVersion(), and hold().

◆ hold()

bool ept::apt::PackageState::hold ( ) const
inline

References Hold, and m_state.

Referenced by held(), and upgradable().

◆ install()

bool ept::apt::PackageState::install ( ) const
inline

References Install, and m_state.

Referenced by modify(), newInstall(), and upgrade().

◆ installed()

bool ept::apt::PackageState::installed ( ) const
inline

References Installed, and m_state.

Referenced by isInstalled(), and newInstall().

◆ isInstalled()

bool ept::apt::PackageState::isInstalled ( ) const
inline

References installed().

Referenced by register_tests().

◆ isValid()

bool ept::apt::PackageState::isValid ( ) const
inline

References m_state, and Valid.

Referenced by register_tests().

◆ keep()

bool ept::apt::PackageState::keep ( ) const
inline

References Keep, and m_state.

◆ modify()

bool ept::apt::PackageState::modify ( ) const
inline

References install(), and remove().

◆ newInstall()

bool ept::apt::PackageState::newInstall ( ) const
inline

References install(), and installed().

◆ nowBroken()

bool ept::apt::PackageState::nowBroken ( ) const
inline

References m_state, and NowBroken.

◆ operator unsigned()

ept::apt::PackageState::operator unsigned ( )
inline

References m_state.

◆ operator=()

PackageState& ept::apt::PackageState::operator= ( unsigned  i)
inline

References m_state.

◆ operator|=()

PackageState& ept::apt::PackageState::operator|= ( const PackageState s)
inline

References m_state.

◆ purge()

bool ept::apt::PackageState::purge ( ) const
inline

References m_state, and Purge.

◆ reinstall()

bool ept::apt::PackageState::reinstall ( ) const
inline

References m_state, and ReInstall.

◆ remove()

bool ept::apt::PackageState::remove ( ) const
inline

References m_state, and Remove.

Referenced by modify().

◆ upgradable()

bool ept::apt::PackageState::upgradable ( ) const
inline

References hasNewVersion(), and hold().

◆ upgrade()

bool ept::apt::PackageState::upgrade ( ) const
inline

References hasNewVersion(), and install().

◆ willBreak()

bool ept::apt::PackageState::willBreak ( ) const
inline

References m_state, and WillBreak.

Member Data Documentation

◆ m_state

unsigned ept::apt::PackageState::m_state
protected

The documentation for this struct was generated from the following file: