Diffstat (limited to 'noncore/unsupported/oipkg/packagelistitem.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/packagelistitem.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/packagelistitem.h b/noncore/unsupported/oipkg/packagelistitem.h new file mode 100644 index 0000000..6983e58 --- a/dev/null +++ b/noncore/unsupported/oipkg/packagelistitem.h | |||
@@ -0,0 +1,31 @@ | |||
1 | #ifndef PK_LISTITEM_H | ||
2 | #define PK_LISTITEM_H | ||
3 | |||
4 | #include "package.h" | ||
5 | |||
6 | #include <qstring.h> | ||
7 | #include <qlistview.h> | ||
8 | #include <qpainter.h> | ||
9 | #include <qpixmap.h> | ||
10 | #include <qdict.h> | ||
11 | |||
12 | class PackageListItem | ||
13 | : public QCheckListItem | ||
14 | { | ||
15 | public: | ||
16 | PackageListItem(QListView*, Package* ); | ||
17 | void paintCell( QPainter*, const QColorGroup&, int, int, int ); | ||
18 | void paintFocus( QPainter*, const QColorGroup&, const QRect& ); | ||
19 | QPixmap statePixmap() const; | ||
20 | QString key( int, bool ) const; | ||
21 | Package* getPackage() { return package; } ; | ||
22 | QString getName() { return package->name(); } ; | ||
23 | bool isInstalled(){ return package->installed(); }; | ||
24 | virtual void setOn ( bool ); | ||
25 | |||
26 | private: | ||
27 | Package *package; | ||
28 | }; | ||
29 | |||
30 | |||
31 | #endif | ||