summaryrefslogtreecommitdiff
authorandyq <andyq>2002-10-25 09:49:57 (UTC)
committer andyq <andyq>2002-10-25 09:49:57 (UTC)
commit4a2f6dd634aa277bca3818f090d691844e219f64 (patch) (unidiff)
tree5b76af0178f93684e90f8ff2e8250f87c5eb2517
parent1d314624759bf1b18977f0569643ea11473d84cf (diff)
downloadopie-4a2f6dd634aa277bca3818f090d691844e219f64.zip
opie-4a2f6dd634aa277bca3818f090d691844e219f64.tar.gz
opie-4a2f6dd634aa277bca3818f090d691844e219f64.tar.bz2
Added a few fields for dependancy tracking
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/package.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/package.h b/noncore/settings/aqpkg/package.h
index 2f2a165..56ef874 100644
--- a/noncore/settings/aqpkg/package.h
+++ b/noncore/settings/aqpkg/package.h
@@ -30,51 +30,54 @@
30class Package 30class Package
31{ 31{
32public: 32public:
33 Package( QString &name ); 33 Package( QString &name );
34 Package( char *name ); 34 Package( char *name );
35 ~Package(); 35 ~Package();
36 36
37 void setLocalPackage( Package *p ); 37 void setLocalPackage( Package *p );
38 void setPackageName( QString &name ); 38 void setPackageName( QString &name );
39 void setVersion( QString &v ); 39 void setVersion( QString &v );
40 void setStatus( QString &s ); 40 void setStatus( QString &s );
41 void setDescription( QString &d ); 41 void setDescription( QString &d );
42 void setFilename( QString &f ); 42 void setFilename( QString &f );
43 void setPackageStoredLocally( bool local ){ packageStoredLocally = local; } 43 void setPackageStoredLocally( bool local ){ packageStoredLocally = local; }
44 void setInstalledToRoot( bool root ) { installedToRoot = root; } 44 void setInstalledToRoot( bool root ) { installedToRoot = root; }
45 void setInstalledTo( Destination *d ) { installedTo = d; } 45 void setInstalledTo( Destination *d ) { installedTo = d; }
46 void setDependancies( QString &deps ) { dependancies = deps; }
46 47
47 Package *getLocalPackage() { return localPackage; } 48 Package *getLocalPackage() { return localPackage; }
48 QString getPackageName() { return packageName; } 49 QString getPackageName() { return packageName; }
49 QString getVersion() { return version; } 50 QString getVersion() { return version; }
50 QString getStatus() { return status; } 51 QString getStatus() { return status; }
51 QString getDescription() { return description; } 52 QString getDescription() { return description; }
52 QString getFilename() { return filename; } 53 QString getFilename() { return filename; }
54 QString getDependancies() { return dependancies; }
53 55
54 bool isInstalled(); 56 bool isInstalled();
55 bool isPackageStoredLocally(){ return packageStoredLocally; } 57 bool isPackageStoredLocally(){ return packageStoredLocally; }
56 bool isInstalledToRoot() { return installedToRoot; } 58 bool isInstalledToRoot() { return installedToRoot; }
57 QString getInstalledVersion(); 59 QString getInstalledVersion();
58 QString getInstalledPackageName(); 60 QString getInstalledPackageName();
59 Destination *getInstalledTo() { return installedTo; } 61 Destination *getInstalledTo() { return installedTo; }
60 62
61 QString toString(); 63 QString toString();
62 64
63 65
64private: 66private:
65 Package *localPackage; 67 Package *localPackage;
66 68
67 QString packageName; 69 QString packageName;
68 QString version; 70 QString version;
69 QString status; 71 QString status;
70 QString description; 72 QString description;
71 QString filename; 73 QString filename;
72 bool packageStoredLocally; 74 bool packageStoredLocally;
73 bool installedToRoot; 75 bool installedToRoot;
74 bool installed; 76 bool installed;
75 bool differentVersionAvailable; 77 bool differentVersionAvailable;
78 QString dependancies;
76 79
77 Destination *installedTo; 80 Destination *installedTo;
78}; 81};
79 82
80#endif 83#endif