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

◆ PackageState() [2/2]

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

Member Function Documentation

◆ hasNewVersion()

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

◆ held()

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

◆ hold()

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

◆ install()

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

◆ installed()

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

◆ isInstalled()

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

Referenced by register_tests().

◆ isValid()

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

Referenced by register_tests().

◆ keep()

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

◆ modify()

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

◆ newInstall()

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

◆ nowBroken()

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

◆ operator unsigned()

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

◆ operator=()

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

◆ operator|=()

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

References m_state.

◆ purge()

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

◆ reinstall()

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

◆ remove()

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

◆ upgradable()

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

◆ upgrade()

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

◆ willBreak()

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

Member Data Documentation

◆ m_state

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

Referenced by operator|=().


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