ept::apt::PackageState Class Reference

#include <apt.h>

List of all members.

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


Member Enumeration Documentation

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


Constructor & Destructor Documentation

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

ept::apt::PackageState::PackageState ( unsigned int  flags  )  [inline]


Member Function Documentation

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

References m_flags, and Valid.

Referenced by TestApt::state().

bool ept::apt::PackageState::markedInstall (  )  const [inline]

bool ept::apt::PackageState::markedUpgrade (  )  const [inline]

References isUpgradable(), and markedInstall().

Referenced by canKeep(), and canUpgrade().

bool ept::apt::PackageState::markedNewInstall (  )  const [inline]

bool ept::apt::PackageState::markedReInstall (  )  const [inline]

References m_flags, and ReInstall.

Referenced by canReInstall(), markedInstall(), and markedNewInstall().

bool ept::apt::PackageState::markedKeep (  )  const [inline]

References Keep, and m_flags.

bool ept::apt::PackageState::markedRemove (  )  const [inline]

References m_flags, and Remove.

Referenced by canInstall(), canKeep(), and canRemove().

bool ept::apt::PackageState::markedPurge (  )  const [inline]

References m_flags, and Purge.

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]

bool ept::apt::PackageState::isBroken (  )  const [inline]

References m_flags, and NowBroken.

Referenced by canInstall().

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

References m_flags, and WillBreak.

bool ept::apt::PackageState::canInstall (  )  const [inline]

bool ept::apt::PackageState::canRemove (  )  const [inline]

References isInstalled(), and markedRemove().

bool ept::apt::PackageState::canKeep (  )  const [inline]

bool ept::apt::PackageState::canUpgrade (  )  const [inline]

References isUpgradable(), and markedUpgrade().

bool ept::apt::PackageState::canReInstall (  )  const [inline]

bool ept::apt::PackageState::canRevertInstall (  )  const [inline]

References markedNewInstall().


Friends And Related Function Documentation

friend class Apt [friend]


Member Data Documentation

unsigned int ept::apt::PackageState::m_flags [protected]


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

Generated on Sat Jul 26 14:09:36 2008 for libept by  doxygen 1.5.6