summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/package.h
authortille <tille>2002-04-23 11:16:45 (UTC)
committer tille <tille>2002-04-23 11:16:45 (UTC)
commita3205d9bf5570af8441ed81cd6d9eeadf22319c9 (patch) (side-by-side diff)
treee2403e5dcc46906570cb070b852ee83d9a8af0b8 /noncore/unsupported/oipkg/package.h
parent7e8db7f310d7a43326337a7960e59d9e313b8534 (diff)
downloadopie-a3205d9bf5570af8441ed81cd6d9eeadf22319c9.zip
opie-a3205d9bf5570af8441ed81cd6d9eeadf22319c9.tar.gz
opie-a3205d9bf5570af8441ed81cd6d9eeadf22319c9.tar.bz2
... mostly rewritten.
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