Diffstat (limited to 'noncore/settings/aqpkg/package.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/package.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/package.cpp b/noncore/settings/aqpkg/package.cpp index 526de5e..db3e927 100644 --- a/noncore/settings/aqpkg/package.cpp +++ b/noncore/settings/aqpkg/package.cpp | |||
@@ -1,58 +1,70 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | package.cpp - description | 2 | package.cpp - description |
3 | ------------------- | 3 | ------------------- |
4 | begin : Mon Aug 26 2002 | 4 | begin : Mon Aug 26 2002 |
5 | copyright : (C) 2002 by Andy Qua | 5 | copyright : (C) 2002 by Andy Qua |
6 | email : andy.qua@blueyonder.co.uk | 6 | email : andy.qua@blueyonder.co.uk |
7 | ***************************************************************************/ | 7 | ***************************************************************************/ |
8 | 8 | ||
9 | /*************************************************************************** | 9 | /*************************************************************************** |
10 | * * | 10 | * * |
11 | * This program is free software; you can redistribute it and/or modify * | 11 | * This program is free software; you can redistribute it and/or modify * |
12 | * it under the terms of the GNU General Public License as published by * | 12 | * it under the terms of the GNU General Public License as published by * |
13 | * the Free Software Foundation; either version 2 of the License, or * | 13 | * the Free Software Foundation; either version 2 of the License, or * |
14 | * (at your option) any later version. * | 14 | * (at your option) any later version. * |
15 | * * | 15 | * * |
16 | ***************************************************************************/ | 16 | ***************************************************************************/ |
17 | 17 | ||
18 | #include "package.h" | 18 | #include "package.h" |
19 | #include "global.h" | 19 | #include "global.h" |
20 | 20 | ||
21 | Package::Package( QString &name ) | 21 | Package::Package( QString &name ) |
22 | { | 22 | { |
23 | packageName = name; | 23 | packageName = name; |
24 | |||
25 | version = "N/A"; | ||
26 | description = "N/A"; | ||
27 | packageSize = "N/A"; | ||
28 | section = "N/A"; | ||
29 | |||
24 | localPackage = 0; | 30 | localPackage = 0; |
25 | installed = false; | 31 | installed = false; |
26 | packageStoredLocally = false; | 32 | packageStoredLocally = false; |
27 | installedToRoot = false; | 33 | installedToRoot = false; |
28 | installed = false; | 34 | installed = false; |
29 | installedTo = 0; | 35 | installedTo = 0; |
30 | } | 36 | } |
31 | 37 | ||
32 | Package::Package( char *name ) | 38 | Package::Package( char *name ) |
33 | { | 39 | { |
34 | packageName = name; | 40 | packageName = name; |
41 | |||
42 | version = "N/A"; | ||
43 | description = "N/A"; | ||
44 | packageSize = "N/A"; | ||
45 | section = "N/A"; | ||
46 | |||
35 | localPackage = 0; | 47 | localPackage = 0; |
36 | installed = false; | 48 | installed = false; |
37 | packageStoredLocally = false; | 49 | packageStoredLocally = false; |
38 | installedToRoot = false; | 50 | installedToRoot = false; |
39 | installed = false; | 51 | installed = false; |
40 | installedTo = 0; | 52 | installedTo = 0; |
41 | } | 53 | } |
42 | 54 | ||
43 | Package::~Package() | 55 | Package::~Package() |
44 | { | 56 | { |
45 | } | 57 | } |
46 | 58 | ||
47 | QString Package :: toString() | 59 | QString Package :: toString() |
48 | { | 60 | { |
49 | QString ret = "Package - " + getPackageName() + | 61 | QString ret = "Package - " + getPackageName() + |
50 | "\n version - " + getVersion(); | 62 | "\n version - " + getVersion(); |
51 | 63 | ||
52 | if ( localPackage ) | 64 | if ( localPackage ) |
53 | ret += "\n inst version - " + localPackage->getVersion(); | 65 | ret += "\n inst version - " + localPackage->getVersion(); |
54 | 66 | ||
55 | 67 | ||
56 | return ret; | 68 | return ret; |
57 | } | 69 | } |
58 | 70 | ||