-rw-r--r-- | noncore/settings/aqpkg/package.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/settings/aqpkg/package.h b/noncore/settings/aqpkg/package.h index d885ab6..8ba5a6a 100644 --- a/noncore/settings/aqpkg/package.h +++ b/noncore/settings/aqpkg/package.h @@ -24,8 +24,9 @@ *@author Andy Qua */ #include <qstring.h> +#include "destination.h" class Package { public: @@ -40,8 +41,9 @@ public: void setDescription( QString &d ); void setFilename( QString &f ); void setPackageStoredLocally( bool local ) { packageStoredLocally = local; } void setInstalledToRoot( bool root ) { installedToRoot = root; } + void setInstalledTo( Destination *d ) { installedTo = d; } Package *getLocalPackage() { return localPackage; } QString getPackageName() { return packageName; } QString getVersion() { return version; } @@ -52,8 +54,9 @@ public: bool isInstalled(); bool isPackageStoredLocally() { return packageStoredLocally; } bool isInstalledToRoot() { return installedToRoot; } QString getInstalledVersion(); + Destination *getInstalledTo() { return installedTo; } QString toString(); @@ -64,12 +67,13 @@ private: QString version; QString status; QString description; QString filename; - QString installedTo; bool packageStoredLocally; bool installedToRoot; bool installed; bool differentVersionAvailable; + + Destination *installedTo; }; #endif |