summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/packagelistlocal.h
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/oipkg/packagelistlocal.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/packagelistlocal.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/packagelistlocal.h b/noncore/unsupported/oipkg/packagelistlocal.h
new file mode 100644
index 0000000..887126b
--- a/dev/null
+++ b/noncore/unsupported/oipkg/packagelistlocal.h
@@ -0,0 +1,30 @@
+#ifndef PACKAGELISTLOCAL_H
+#define PACKAGELISTLOCAL_H
+
+#include "packagelist.h"
+
+
+#define HACK
+#ifdef HACK
+ static QString listsDir="/usr/lib/ipkg/";
+ static QString statusDir="/usr/lib/ipkg/";
+#endif
+
+class PackageListLocal : public PackageList {
+public:
+ PackageListLocal();
+ PackageListLocal( PackageManagerSettings* );
+ virtual ~PackageListLocal();
+
+public slots:
+ void update();
+private:
+#ifndef HACK
+ QString listsDir;
+ QString statusDir;
+#endif
+ void parseStatus();
+ void parseList();
+};
+
+#endif