summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/listviewitemoipkg.h
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/oipkg/listviewitemoipkg.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/listviewitemoipkg.h33
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 @@
+#ifndef LISTVIEWITEMOIPKG_H
+#define LISTVIEWITEMOIPKG_H
+
+#include <qpopupmenu.h>
+#include <qstring.h>
+#include <qlistview.h>
+#include <qcheckbox.h>
+
+class PackageListItem;
+class PackageListView;
+
+class ListViewItemOipkg : public QObject, public QCheckListItem
+{
+Q_OBJECT
+public:
+ enum Type {Package, Feed, Attribute};
+
+ ListViewItemOipkg(QListView *parent, QString name, QCheckListItem::Type qct, Type type); ListViewItemOipkg(QListView *parent, QString name, Type type);
+ ListViewItemOipkg(ListViewItemOipkg *parent, QString name, Type type);
+ ListViewItemOipkg(PackageListView *parent, QString name, Type type);
+ ListViewItemOipkg(ListViewItemOipkg *parent, Type type, QString name);
+ ~ListViewItemOipkg();
+
+ int getType() {return _type;};
+ virtual QPopupMenu* getPopupMenu() {return 0;};
+protected slots:
+ virtual void menuAction(int ) {};
+protected:
+ int _type;
+ static QPopupMenu* _popupMenu;
+};
+
+#endif