summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/package.h
Unidiff
Diffstat (limited to 'noncore/unsupported/oipkg/package.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/package.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/package.h b/noncore/unsupported/oipkg/package.h
new file mode 100644
index 0000000..08d0c57
--- a/dev/null
+++ b/noncore/unsupported/oipkg/package.h
@@ -0,0 +1,54 @@
1#ifndef PK_ITEM_H
2#define PK_ITEM_H
3
4#include <qstring.h>
5#include <qlistview.h>
6#include <qpainter.h>
7#include <qpixmap.h>
8#include <qdict.h>
9#include <qobject.h>
10
11class Package //: public QObject
12{
13 //Q_OBJECT
14 public:
15 Package();
16 ~Package();
17 Package( QStringList );
18 Package( QString );
19 Package( Package* );
20
21 void setValue( QString, QString );
22 void copyValues( Package* );
23
24 QString name() ;
25 bool installed();
26
27 void setDesc( QString );
28 QString shortDesc();
29 QString desc();
30 QString size();
31 void setSection( QString );
32 QString getSection();
33 QString getSubSection();
34 QString details();
35 bool toProcess();
36 bool toInstall();
37 bool toRemove();
38public slots:
39 void toggleProcess();
40
41private:
42 QString _name;
43 bool _toProcess;
44 QString _status;
45 QString _size;
46 QString _section;
47 QString _subsection;
48 QString _shortDesc;
49 QString _desc;
50 void parsePackage( QStringList );
51};
52
53
54#endif