summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/listviewitemoipkg.h
authortille <tille>2002-11-10 22:50:50 (UTC)
committer tille <tille>2002-11-10 22:50:50 (UTC)
commit9337c912158da3ad2fcda7ee1120c9357faddf8b (patch) (side-by-side diff)
treec5800efad3f90cfc9901db0337039eb883c0cf28 /noncore/unsupported/oipkg/listviewitemoipkg.h
parentf6cabaaa364ee6d894462c0902734e434715fc58 (diff)
downloadopie-9337c912158da3ad2fcda7ee1120c9357faddf8b.zip
opie-9337c912158da3ad2fcda7ee1120c9357faddf8b.tar.gz
opie-9337c912158da3ad2fcda7ee1120c9357faddf8b.tar.bz2
here it's...
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