summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/packagelistitem.h
Unidiff
Diffstat (limited to 'noncore/unsupported/oipkg/packagelistitem.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/packagelistitem.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/noncore/unsupported/oipkg/packagelistitem.h b/noncore/unsupported/oipkg/packagelistitem.h
index 6983e58..f695432 100644
--- a/noncore/unsupported/oipkg/packagelistitem.h
+++ b/noncore/unsupported/oipkg/packagelistitem.h
@@ -6,26 +6,32 @@
6#include <qstring.h> 6#include <qstring.h>
7#include <qlistview.h> 7#include <qlistview.h>
8#include <qpainter.h> 8#include <qpainter.h>
9#include <qpixmap.h> 9#include <qpixmap.h>
10#include <qdict.h> 10#include <qdict.h>
11 11
12#include "pksettings.h"
13
12class PackageListItem 14class PackageListItem
13: public QCheckListItem 15: public QCheckListItem
14{ 16{
15public: 17public:
16 PackageListItem(QListView*, Package* ); 18 PackageListItem(QListView*, Package*, PackageManagerSettings*);
17 void paintCell( QPainter*, const QColorGroup&, int, int, int ); 19 void paintCell( QPainter*, const QColorGroup&, int, int, int );
18 void paintFocus( QPainter*, const QColorGroup&, const QRect& ); 20 void paintFocus( QPainter*, const QColorGroup&, const QRect& );
19 QPixmap statePixmap() const; 21 QPixmap statePixmap() const;
20 QString key( int, bool ) const; 22 QString key( int, bool ) const;
21 Package* getPackage() { return package; } ; 23 Package* getPackage() { return package; } ;
22 QString getName() { return package->name(); } ; 24 QString getName() { return package->name(); } ;
23 bool isInstalled(){ return package->installed(); }; 25 bool isInstalled(){ return package->installed(); };
24 virtual void setOn ( bool ); 26 virtual void setOn ( bool );
27 void displayDetails();
25 28
26private: 29private:
30 QCheckListItem *destItem;
31 QCheckListItem *linkItem;
32 PackageManagerSettings *settings;
27 Package *package; 33 Package *package;
28}; 34};
29 35
30 36
31#endif 37#endif