ept::core::PackageState Struct Reference

#include <apt.h>

List of all members.

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


Member Enumeration Documentation

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


Constructor & Destructor Documentation

ept::core::PackageState::PackageState ( unsigned  a  )  [inline]

References m_state.

ept::core::PackageState::PackageState (  )  [inline]


Member Function Documentation

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::isValid (  )  const [inline]

References m_state, and Valid.

bool ept::core::PackageState::isInstalled (  )  const [inline]

References installed().

bool ept::core::PackageState::install (  )  const [inline]

References Install, and m_state.

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

bool ept::core::PackageState::reinstall (  )  const [inline]

References m_state, and ReInstall.

bool ept::core::PackageState::remove (  )  const [inline]

References m_state, and Remove.

bool ept::core::PackageState::purge (  )  const [inline]

References m_state, and Purge.

Referenced by ept::core::package::Source::revertState().

bool ept::core::PackageState::keep (  )  const [inline]

References Keep, and m_state.

Referenced by ept::core::package::Source::revertState().

bool ept::core::PackageState::willBreak (  )  const [inline]

References m_state, and WillBreak.

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]

References Hold, and m_state.

Referenced by held(), and upgradable().

bool ept::core::PackageState::installed (  )  const [inline]

bool ept::core::PackageState::hasNewVersion (  )  const [inline]

References m_state, and Upgradable.

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

bool ept::core::PackageState::upgradable (  )  const [inline]

bool ept::core::PackageState::held (  )  const [inline]

References hasNewVersion(), and hold().

bool ept::core::PackageState::nowBroken (  )  const [inline]

References m_state, and NowBroken.

bool ept::core::PackageState::modify (  )  const [inline]


Member Data Documentation

unsigned ept::core::PackageState::m_state [protected]


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

Generated on Thu Oct 16 01:09:28 2008 for libept by  doxygen 1.5.6