summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/package.h
Unidiff
Diffstat (limited to 'noncore/unsupported/oipkg/package.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/package.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/noncore/unsupported/oipkg/package.h b/noncore/unsupported/oipkg/package.h
index cf2af75..6c292ed 100644
--- a/noncore/unsupported/oipkg/package.h
+++ b/noncore/unsupported/oipkg/package.h
@@ -5,20 +5,22 @@
5#include <qlistview.h> 5#include <qlistview.h>
6#include <qpainter.h> 6#include <qpainter.h>
7#include <qpixmap.h> 7#include <qpixmap.h>
8#include <qdict.h> 8#include <qdict.h>
9#include <qobject.h> 9#include <qobject.h>
10 10
11#include "pksettings.h"
12
11class Package //: public QObject 13class Package //: public QObject
12{ 14{
13 //Q_OBJECT 15 //Q_OBJECT
14 public: 16 public:
15 Package(); 17 Package(PackageManagerSettings *);
16 ~Package(); 18 ~Package();
17 Package( QStringList ); 19 Package( QStringList, PackageManagerSettings * );
18 Package( QString ); 20 Package( QString, PackageManagerSettings * );
19 Package( Package* ); 21 Package( Package* );
20 22
21 void setValue( QString, QString ); 23 void setValue( QString, QString );
22 void copyValues( Package* ); 24 void copyValues( Package* );
23 25
24 QString name() ; 26 QString name() ;
@@ -26,31 +28,39 @@ class Package //: public QObject
26 28
27 void setDesc( QString ); 29 void setDesc( QString );
28 QString shortDesc(); 30 QString shortDesc();
29 QString desc(); 31 QString desc();
30 QString size(); 32 QString size();
31 void setSection( QString ); 33 void setSection( QString );
32 QString getSection(); 34 QString section();
33 QString getSubSection(); 35 QString subSection();
34 QString details(); 36 QString details();
35 bool toProcess(); 37 bool toProcess();
36 bool toInstall(); 38 bool toInstall();
37 bool toRemove(); 39 bool toRemove();
38 /** No descriptions */
39 void processed(); 40 void processed();
41 QString dest();
42 void setDest( QString d );
43 void setOn();
44 bool link();
45 void setLink(bool);
40public slots: 46public slots:
41 void toggleProcess(); 47 void toggleProcess();
42 48
43private: 49private:
50 PackageManagerSettings *settings;
44 QString _name; 51 QString _name;
45 bool _toProcess; 52 bool _toProcess;
53 bool _link;
46 QString _status; 54 QString _status;
47 QString _size; 55 QString _size;
48 QString _section; 56 QString _section;
49 QString _subsection; 57 QString _subsection;
50 QString _shortDesc; 58 QString _shortDesc;
51 QString _desc; 59 QString _desc;
60 QString _dest;
52 void parsePackage( QStringList ); 61 void parsePackage( QStringList );
62 void init(PackageManagerSettings *);
53}; 63};
54 64
55 65
56#endif 66#endif