summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/packagelist.h
Unidiff
Diffstat (limited to 'noncore/unsupported/oipkg/packagelist.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/packagelist.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/noncore/unsupported/oipkg/packagelist.h b/noncore/unsupported/oipkg/packagelist.h
index 7c326ca..acea3b9 100644
--- a/noncore/unsupported/oipkg/packagelist.h
+++ b/noncore/unsupported/oipkg/packagelist.h
@@ -6,12 +6,6 @@
6#include "pksettings.h" 6#include "pksettings.h"
7#include "debug.h" 7#include "debug.h"
8 8
9#define HACK
10#ifdef HACK
11 static QString listsDir="/usr/lib/ipkg/";
12 static QString statusDir="/usr/lib/ipkg/";
13#endif
14
15class PackageList //:QObject 9class PackageList //:QObject
16{ 10{
17 // Q_OBJECT 11 // Q_OBJECT
@@ -20,7 +14,7 @@ public:
20 14
21 PackageList(); 15 PackageList();
22 PackageList( PackageManagerSettings* ); 16 PackageList( PackageManagerSettings* );
23 ~PackageList(); 17 virtual ~PackageList();
24 void insertPackage( Package* ); 18 void insertPackage( Package* );
25 Package* find( QString ); 19 Package* find( QString );
26 Package* next(); 20 Package* next();
@@ -37,9 +31,9 @@ public:
37public slots: 31public slots:
38 void setSection(QString); 32 void setSection(QString);
39 void setSubSection(QString); 33 void setSubSection(QString);
40 void update(); 34 // virtual void update();
41 35
42private: 36protected:
43 int currentPackage; 37 int currentPackage;
44 int packageCount; 38 int packageCount;
45 39
@@ -49,10 +43,6 @@ private:
49 QDictIterator<Package> packageIter; 43 QDictIterator<Package> packageIter;
50 44
51 bool empty; 45 bool empty;
52#ifndef HACK
53 QString listsDir;
54 QString statusDir;
55#endif
56 QString aktSection; 46 QString aktSection;
57 QString aktSubSection; 47 QString aktSubSection;
58 QStringList sections; 48 QStringList sections;
@@ -61,9 +51,7 @@ private:
61 51
62 52
63 void updateSections( Package* ); 53 void updateSections( Package* );
64 void parseStatus(); 54 void readFileEntries( QString file, QString dest="" );
65 void parseList();
66 void readFileEntries( QString file, QString dest );
67}; 55};
68 56
69 57