summaryrefslogtreecommitdiff
authorandyq <andyq>2002-10-17 22:55:12 (UTC)
committer andyq <andyq>2002-10-17 22:55:12 (UTC)
commit2f4ea594b00c0f5e220a773d0d34493546d860d3 (patch) (side-by-side diff)
treed15c434d94e99c89661bb3b5e33a61bca9da78fd
parente38ea35a5bbfae58a9d4cb66cfdf557d606921cd (diff)
downloadopie-2f4ea594b00c0f5e220a773d0d34493546d860d3.zip
opie-2f4ea594b00c0f5e220a773d0d34493546d860d3.tar.gz
opie-2f4ea594b00c0f5e220a773d0d34493546d860d3.tar.bz2
Added destination a package was installed to methods and members
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
@@ -20,56 +20,60 @@
#include <stdlib.h>
/**
*@author Andy Qua
*/
#include <qstring.h>
+#include "destination.h"
class Package
{
public:
Package( QString &name );
Package( char *name );
~Package();
void setLocalPackage( Package *p );
void setPackageName( QString &name );
void setVersion( QString &v );
void setStatus( QString &s );
void setDescription( QString &d );
void setFilename( QString &f );
void setPackageStoredLocally( bool local ) { packageStoredLocally = local; }
void setInstalledToRoot( bool root ) { installedToRoot = root; }
+ void setInstalledTo( Destination *d ) { installedTo = d; }
Package *getLocalPackage() { return localPackage; }
QString getPackageName() { return packageName; }
QString getVersion() { return version; }
QString getStatus() { return status; }
QString getDescription() { return description; }
QString getFilename() { return filename; }
bool isInstalled();
bool isPackageStoredLocally() { return packageStoredLocally; }
bool isInstalledToRoot() { return installedToRoot; }
QString getInstalledVersion();
+ Destination *getInstalledTo() { return installedTo; }
QString toString();
private:
Package *localPackage;
QString packageName;
QString version;
QString status;
QString description;
QString filename;
- QString installedTo;
bool packageStoredLocally;
bool installedToRoot;
bool installed;
bool differentVersionAvailable;
+
+ Destination *installedTo;
};
#endif