Diffstat (limited to 'noncore/settings/aqpkg/package.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/package.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/noncore/settings/aqpkg/package.cpp b/noncore/settings/aqpkg/package.cpp index 48b6934..fd75450 100644 --- a/noncore/settings/aqpkg/package.cpp +++ b/noncore/settings/aqpkg/package.cpp | |||
@@ -22,16 +22,23 @@ Package::Package( QString &name ) | |||
22 | { | 22 | { |
23 | packageName = name; | 23 | packageName = name; |
24 | localPackage = 0; | 24 | localPackage = 0; |
25 | installed = false; | 25 | installed = false; |
26 | packageStoredLocally = false; | 26 | packageStoredLocally = false; |
27 | installedToRoot = false; | 27 | installedToRoot = false; |
28 | installed = false; | ||
29 | installedTo = 0; | ||
28 | } | 30 | } |
29 | 31 | ||
30 | Package::Package( char *name ) | 32 | Package::Package( char *name ) |
31 | { | 33 | { |
32 | packageName = name; | 34 | packageName = name; |
33 | localPackage = 0; | 35 | localPackage = 0; |
36 | installed = false; | ||
37 | packageStoredLocally = false; | ||
38 | installedToRoot = false; | ||
39 | installed = false; | ||
40 | installedTo = 0; | ||
34 | } | 41 | } |
35 | 42 | ||
36 | Package::~Package() | 43 | Package::~Package() |
37 | { | 44 | { |
@@ -102,8 +109,16 @@ QString Package :: getInstalledVersion() | |||
102 | else | 109 | else |
103 | return getVersion(); | 110 | return getVersion(); |
104 | } | 111 | } |
105 | 112 | ||
113 | QString Package :: getInstalledPackageName() | ||
114 | { | ||
115 | if ( localPackage ) | ||
116 | return localPackage->getPackageName(); | ||
117 | else | ||
118 | return getPackageName(); | ||
119 | } | ||
120 | |||
106 | bool Package :: isInstalled() | 121 | bool Package :: isInstalled() |
107 | { | 122 | { |
108 | return installed || ( localPackage && localPackage->isInstalled() ); | 123 | return installed || ( localPackage && localPackage->isInstalled() ); |
109 | } | 124 | } |