summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/package.h6
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
@@ -22,12 +22,13 @@
22 22
23/** 23/**
24 *@author Andy Qua 24 *@author Andy Qua
25 */ 25 */
26 26
27#include <qstring.h> 27#include <qstring.h>
28#include "destination.h"
28 29
29class Package 30class Package
30{ 31{
31public: 32public:
32 Package( QString &name ); 33 Package( QString &name );
33 Package( char *name ); 34 Package( char *name );
@@ -38,38 +39,41 @@ public:
38 void setVersion( QString &v ); 39 void setVersion( QString &v );
39 void setStatus( QString &s ); 40 void setStatus( QString &s );
40 void setDescription( QString &d ); 41 void setDescription( QString &d );
41 void setFilename( QString &f ); 42 void setFilename( QString &f );
42 void setPackageStoredLocally( bool local ){ packageStoredLocally = local; } 43 void setPackageStoredLocally( bool local ){ packageStoredLocally = local; }
43 void setInstalledToRoot( bool root ) { installedToRoot = root; } 44 void setInstalledToRoot( bool root ) { installedToRoot = root; }
45 void setInstalledTo( Destination *d ) { installedTo = d; }
44 46
45 Package *getLocalPackage() { return localPackage; } 47 Package *getLocalPackage() { return localPackage; }
46 QString getPackageName() { return packageName; } 48 QString getPackageName() { return packageName; }
47 QString getVersion() { return version; } 49 QString getVersion() { return version; }
48 QString getStatus() { return status; } 50 QString getStatus() { return status; }
49 QString getDescription() { return description; } 51 QString getDescription() { return description; }
50 QString getFilename() { return filename; } 52 QString getFilename() { return filename; }
51 53
52 bool isInstalled(); 54 bool isInstalled();
53 bool isPackageStoredLocally(){ return packageStoredLocally; } 55 bool isPackageStoredLocally(){ return packageStoredLocally; }
54 bool isInstalledToRoot() { return installedToRoot; } 56 bool isInstalledToRoot() { return installedToRoot; }
55 QString getInstalledVersion(); 57 QString getInstalledVersion();
58 Destination *getInstalledTo() { return installedTo; }
56 59
57 QString toString(); 60 QString toString();
58 61
59 62
60private: 63private:
61 Package *localPackage; 64 Package *localPackage;
62 65
63 QString packageName; 66 QString packageName;
64 QString version; 67 QString version;
65 QString status; 68 QString status;
66 QString description; 69 QString description;
67 QString filename; 70 QString filename;
68 QString installedTo;
69 bool packageStoredLocally; 71 bool packageStoredLocally;
70 bool installedToRoot; 72 bool installedToRoot;
71 bool installed; 73 bool installed;
72 bool differentVersionAvailable; 74 bool differentVersionAvailable;
75
76 Destination *installedTo;
73}; 77};
74 78
75#endif 79#endif