author | andyq <andyq> | 2002-10-17 22:55:12 (UTC) |
---|---|---|
committer | andyq <andyq> | 2002-10-17 22:55:12 (UTC) |
commit | 2f4ea594b00c0f5e220a773d0d34493546d860d3 (patch) (unidiff) | |
tree | d15c434d94e99c89661bb3b5e33a61bca9da78fd | |
parent | e38ea35a5bbfae58a9d4cb66cfdf557d606921cd (diff) | |
download | opie-2f4ea594b00c0f5e220a773d0d34493546d860d3.zip opie-2f4ea594b00c0f5e220a773d0d34493546d860d3.tar.gz opie-2f4ea594b00c0f5e220a773d0d34493546d860d3.tar.bz2 |
Added destination a package was installed to methods and members
-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 | |||
@@ -4,72 +4,76 @@ | |||
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 | #ifndef PACKAGE_H | 18 | #ifndef PACKAGE_H |
19 | #define PACKAGE_H | 19 | #define PACKAGE_H |
20 | 20 | ||
21 | #include <stdlib.h> | 21 | #include <stdlib.h> |
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 | ||
29 | class Package | 30 | class Package |
30 | { | 31 | { |
31 | public: | 32 | public: |
32 | Package( QString &name ); | 33 | Package( QString &name ); |
33 | Package( char *name ); | 34 | Package( char *name ); |
34 | ~Package(); | 35 | ~Package(); |
35 | 36 | ||
36 | void setLocalPackage( Package *p ); | 37 | void setLocalPackage( Package *p ); |
37 | void setPackageName( QString &name ); | 38 | void setPackageName( QString &name ); |
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 | ||
60 | private: | 63 | private: |
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 |