Diffstat (limited to 'noncore/unsupported/oipkg/listviewitemoipkg.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/listviewitemoipkg.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/listviewitemoipkg.h b/noncore/unsupported/oipkg/listviewitemoipkg.h new file mode 100644 index 0000000..4f7d2d7 --- a/dev/null +++ b/noncore/unsupported/oipkg/listviewitemoipkg.h | |||
@@ -0,0 +1,33 @@ | |||
1 | #ifndef LISTVIEWITEMOIPKG_H | ||
2 | #define LISTVIEWITEMOIPKG_H | ||
3 | |||
4 | #include <qpopupmenu.h> | ||
5 | #include <qstring.h> | ||
6 | #include <qlistview.h> | ||
7 | #include <qcheckbox.h> | ||
8 | |||
9 | class PackageListItem; | ||
10 | class PackageListView; | ||
11 | |||
12 | class ListViewItemOipkg : public QObject, public QCheckListItem | ||
13 | { | ||
14 | Q_OBJECT | ||
15 | public: | ||
16 | enum Type {Package, Feed, Attribute}; | ||
17 | |||
18 | ListViewItemOipkg(QListView *parent, QString name, QCheckListItem::Type qct, Type type);ListViewItemOipkg(QListView *parent, QString name, Type type); | ||
19 | ListViewItemOipkg(ListViewItemOipkg *parent, QString name, Type type); | ||
20 | ListViewItemOipkg(PackageListView *parent, QString name, Type type); | ||
21 | ListViewItemOipkg(ListViewItemOipkg *parent, Type type, QString name); | ||
22 | ~ListViewItemOipkg(); | ||
23 | |||
24 | int getType() {return _type;}; | ||
25 | virtual QPopupMenu* getPopupMenu() {return 0;}; | ||
26 | protected slots: | ||
27 | virtual void menuAction(int ) {}; | ||
28 | protected: | ||
29 | int _type; | ||
30 | static QPopupMenu* _popupMenu; | ||
31 | }; | ||
32 | |||
33 | #endif | ||