Logo Search packages:      
Sourcecode: qapt version File versions  Download package

QApt::Package Class Reference

#include <package.h>

List of all members.


Detailed Description

The Package class is an object for referencing a software package in the Apt package database. You will be getting most of your information about your packages from this class.

Author:
Jonathan Thomas

Definition at line 53 of file package.h.


Public Types

enum  State {
  ToKeep = 1 << 0, ToInstall = 1 << 1, NewInstall = 1 << 2, ToReInstall = 1 << 3,
  ToUpgrade = 1 << 4, ToDowngrade = 1 << 5, ToRemove = 1 << 6, Held = 1 << 7,
  Installed = 1 << 8, Upgradeable = 1 << 9, NowBroken = 1 << 10, InstallBroken = 1 << 11,
  Orphaned = 1 << 12, Pinned = 1 << 13, New = 1 << 14, ResidualConfig = 1 << 15,
  NotDownloadable = 1 << 16, ToPurge = 1 << 17, IsImportant = 1 << 18, OverrideVersion = 1 << 19,
  IsAuto = 1 << 20, IsGarbage = 1 << 21, NowPolicyBroken = 1 << 22, InstallPolicyBroken = 1 << 23,
  NotInstalled = 1 << 24
}

Public Member Functions

qint32 availableInstalledSize () const
QString availableVersion () const
QStringList availableVersions () const
QHash< int, QHash< QString,
QVariantMap > > 
brokenReason () const
QUrl changelogUrl () const
QString component () const
qint32 currentInstalledSize () const
QStringList dependencyList (bool useCandidateVersion) const
qint32 downloadSize () const
QString homepage () const
int id () const
QStringList installedFilesList () const
QString installedVersion () const
bool isInstalled () const
bool isSupported () const
bool isTrusted () const
QString longDescription () const
QString maintainer () const
QString name () const
QString origin () const
 Package (QApt::Backend *parent, pkgDepCache *depcache, pkgRecords *records, pkgCache::PkgIterator &packageIter)
pkgCache::PkgIterator * packageIterator () const
QString priority () const
QStringList providesList () const
 Q_DECLARE_FLAGS (States, State)
QStringList requiredByList () const
QUrl screenshotUrl (QApt::ScreenshotType type) const
QString section () const
void setAuto (bool flag=true)
void setInstall ()
void setKeep ()
void setPurge ()
void setReInstall ()
void setRemove ()
bool setVersion (const QString &version)
QString shortDescription () const
QString sourcePackage () const
int state () const
QString supportedUntil () const
QString version () const
bool wouldBreak () const
virtual ~Package ()

Private Attributes

PackagePrivate *const d

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

Generated by  Doxygen 1.6.0   Back to index