summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/package.h
Unidiff
Diffstat (limited to 'noncore/settings/aqpkg/package.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/package.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/package.h b/noncore/settings/aqpkg/package.h
new file mode 100644
index 0000000..d885ab6
--- a/dev/null
+++ b/noncore/settings/aqpkg/package.h
@@ -0,0 +1,75 @@
1/***************************************************************************
2 package.h - description
3 -------------------
4 begin : Mon Aug 26 2002
5 copyright : (C) 2002 by Andy Qua
6 email : andy.qua@blueyonder.co.uk
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
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 *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef PACKAGE_H
19#define PACKAGE_H
20
21#include <stdlib.h>
22
23/**
24 *@author Andy Qua
25 */
26
27#include <qstring.h>
28
29class Package
30{
31public:
32 Package( QString &name );
33 Package( char *name );
34 ~Package();
35
36 void setLocalPackage( Package *p );
37 void setPackageName( QString &name );
38 void setVersion( QString &v );
39 void setStatus( QString &s );
40 void setDescription( QString &d );
41 void setFilename( QString &f );
42 void setPackageStoredLocally( bool local ){ packageStoredLocally = local; }
43 void setInstalledToRoot( bool root ) { installedToRoot = root; }
44
45 Package *getLocalPackage() { return localPackage; }
46 QString getPackageName() { return packageName; }
47 QString getVersion() { return version; }
48 QString getStatus() { return status; }
49 QString getDescription() { return description; }
50 QString getFilename() { return filename; }
51
52 bool isInstalled();
53 bool isPackageStoredLocally(){ return packageStoredLocally; }
54 bool isInstalledToRoot() { return installedToRoot; }
55 QString getInstalledVersion();
56
57 QString toString();
58
59
60private:
61 Package *localPackage;
62
63 QString packageName;
64 QString version;
65 QString status;
66 QString description;
67 QString filename;
68 QString installedTo;
69 bool packageStoredLocally;
70 bool installedToRoot;
71 bool installed;
72 bool differentVersionAvailable;
73};
74
75#endif