#include <packageversion.h>
Inheritance diagram for PackageVersion:
Public Member Functions | |
PackageVersion () | |
Constructor. | |
PackageVersion (PMString version) | |
Constructor with version. | |
PackageVersion (const PackageVersion ©) | |
Copy constructor with PackageVersion. | |
PackageVersion (const Package ©) | |
Copy constructor with Package. | |
virtual | ~PackageVersion () |
Destructor. | |
bool | operator== (const PackageVersion ¶m) |
Equality operator. | |
bool | operator!= (const PackageVersion ¶m) |
Non equality operator. | |
bool | operator== (const Package ¶m) |
Equality operator - with Package. | |
bool | operator!= (const Package ¶m) |
Non equality operator - with Package. | |
virtual Dbt | GetKey () |
Returns DB Key. | |
virtual Dbt | GetData () |
Returns DB Data. | |
virtual void | ReadData (Dbt data) |
Reads DB Data. | |
virtual void | ReadKey (Dbt key) |
Reads DB Key. | |
void | ProcessMasking (PMString maskedString) |
Process the usual portage masking string. | |
void | CalculateSize () |
Open the versions digest file and calculate the size. | |
bool | IsHardmasked (Keyword keyword) |
Returns true if is eHardMasked. | |
bool | IsUnstable (Keyword keyword) |
Returns true if is eUnstable. | |
bool | IsStable (Keyword keyword) |
Returns true if is eStable. | |
bool | CheckVersionWithKeyword (Keyword keyword) |
Returns true if versionMaskedState complies with keyword. | |
Public Attributes | |
MaskedStates | versionMaskedState |
Version's masked state on different archs. | |
PMString | version |
Version. | |
PMString | sourceUrl |
Url for sources. | |
PMString | possibleVirtuals |
Possible virtuals this package provides, can be dependent on useflags. | |
PMString | slot |
Slot version goes into. | |
PMString | licence |
Licence. | |
PMString | compileDepend |
Compile time dependencies ( usual portage string format ). | |
PMString | runDepend |
Run time dependencies ( usual portage string format ). | |
PMString | postDepend |
Post time dependencies ( usual portage string format ). | |
int | fileSize |
Filesize needed to be downloaded for this version. |
|
Default constructor. Sets slot and filesize to be 0. |
|
Constructor that sets the version.
|
|
Copy Constructor for PackageVersions.
|
|
Copy Constructor for Packages.
|
|
Destructor. |
|
Calculates the size of the files needed from the digest files in the portage tree.
|
|
Checks the keyword in the package version with the keyword supplied. Returns true if the package version is installable.
|
|
Returns the Dbt data for this version. Used to store in the DB. Stores compileDepend, runDepend, postDepend, version, sourceUrl, licence, slot, fileSize,possibleVirtuals,versionMaskedState.
Reimplemented from Package. Reimplemented in InstalledPackage. |
|
Returns the Dbt key for this version. Used to store in the DB. Stores category and name.
Reimplemented from Package. Reimplemented in InstalledPackage. |
|
Returns true if the package version is hardmasked on the arch detailed by keyword.
|
|
Returns true if the package version is stable on the arch detailed by keyword.
|
|
Returns true if the package version is unstable on the arch detailed by keyword.
|
|
Non Equality operator - with Package.
Reimplemented from Package. Reimplemented in InstalledPackage. |
|
Non Equality operator
Reimplemented in InstalledPackage. |
|
Equality operator - with Package.
Reimplemented from Package. Reimplemented in InstalledPackage. |
|
Equality operator - with PackageVersion.
Reimplemented in InstalledPackage. |
|
Takes a string like the one found in the metadata cache and extracts the masking information.
|
|
Reads the Data from a Dbt object. Used when extracting things from the DB.
Reimplemented from Package. Reimplemented in InstalledPackage. |
|
Reads the Key from a Dbt object. Used when extracting things from the DB.
Reimplemented from Package. Reimplemented in InstalledPackage. |