summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/package.h
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/oipkg/package.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/package.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/package.h b/noncore/unsupported/oipkg/package.h
new file mode 100644
index 0000000..08d0c57
--- a/dev/null
+++ b/noncore/unsupported/oipkg/package.h
@@ -0,0 +1,54 @@
+#ifndef PK_ITEM_H
+#define PK_ITEM_H
+
+#include <qstring.h>
+#include <qlistview.h>
+#include <qpainter.h>
+#include <qpixmap.h>
+#include <qdict.h>
+#include <qobject.h>
+
+class Package //: public QObject
+{
+ // Q_OBJECT
+ public:
+ Package();
+ ~Package();
+ Package( QStringList );
+ Package( QString );
+ Package( Package* );
+
+ void setValue( QString, QString );
+ void copyValues( Package* );
+
+ QString name() ;
+ bool installed();
+
+ void setDesc( QString );
+ QString shortDesc();
+ QString desc();
+ QString size();
+ void setSection( QString );
+ QString getSection();
+ QString getSubSection();
+ QString details();
+ bool toProcess();
+ bool toInstall();
+ bool toRemove();
+public slots:
+ void toggleProcess();
+
+private:
+ QString _name;
+ bool _toProcess;
+ QString _status;
+ QString _size;
+ QString _section;
+ QString _subsection;
+ QString _shortDesc;
+ QString _desc;
+ void parsePackage( QStringList );
+};
+
+
+#endif