author | tille <tille> | 2002-11-10 22:50:50 (UTC) |
---|---|---|
committer | tille <tille> | 2002-11-10 22:50:50 (UTC) |
commit | 9337c912158da3ad2fcda7ee1120c9357faddf8b (patch) (unidiff) | |
tree | c5800efad3f90cfc9901db0337039eb883c0cf28 /noncore/unsupported/oipkg/packagelist.h | |
parent | f6cabaaa364ee6d894462c0902734e434715fc58 (diff) | |
download | opie-9337c912158da3ad2fcda7ee1120c9357faddf8b.zip opie-9337c912158da3ad2fcda7ee1120c9357faddf8b.tar.gz opie-9337c912158da3ad2fcda7ee1120c9357faddf8b.tar.bz2 |
here it's...
Diffstat (limited to 'noncore/unsupported/oipkg/packagelist.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/packagelist.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/noncore/unsupported/oipkg/packagelist.h b/noncore/unsupported/oipkg/packagelist.h index 0c13688..88a8793 100644 --- a/noncore/unsupported/oipkg/packagelist.h +++ b/noncore/unsupported/oipkg/packagelist.h | |||
@@ -3,67 +3,67 @@ | |||
3 | * This program is free software; you can redistribute it and/or modify * | 3 | * This program is free software; you can redistribute it and/or modify * |
4 | * it under the terms of the GNU General Public License as published by * | 4 | * it under the terms of the GNU General Public License as published by * |
5 | * the Free Software Foundation; either version 2 of the License, or * | 5 | * the Free Software Foundation; either version 2 of the License, or * |
6 | * (at your option) any later version. * | 6 | * (at your option) any later version. * |
7 | * * | 7 | * * |
8 | ***************************************************************************/ | 8 | ***************************************************************************/ |
9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> | 9 | // (c) 2002 Patrick S. Vogt <tille@handhelds.org> |
10 | #ifndef PACKAGELIST_H | 10 | #ifndef PACKAGELIST_H |
11 | #define PACKAGELIST_H | 11 | #define PACKAGELIST_H |
12 | 12 | ||
13 | #include <qdict.h> | 13 | #include <qdict.h> |
14 | #include "package.h" | 14 | #include "package.h" |
15 | #include "pksettings.h" | 15 | #include "pksettings.h" |
16 | #include "debug.h" | 16 | #include "debug.h" |
17 | 17 | ||
18 | class PackageList : public QObject | 18 | class PackageList : public QObject |
19 | { | 19 | { |
20 | Q_OBJECT | 20 | Q_OBJECT |
21 | public: | 21 | public: |
22 | //static QString all = QObject::tr("All"); | 22 | //static QString all = QObject::tr("All"); |
23 | 23 | ||
24 | PackageList (QObject *parent=0, const char *name=0); | 24 | PackageList (QObject *parent=0, const char *name=0); |
25 | PackageList( PackageManagerSettings *s, QObject *parent=0, const char *name=0); | 25 | PackageList( PackageManagerSettings *s, QObject *parent=0, const char *name=0); |
26 | virtual ~PackageList(); | 26 | virtual ~PackageList(); |
27 | void insertPackage( Package* ); | 27 | void insertPackage( OipkgPackage* ); |
28 | Package* find( QString ); | 28 | OipkgPackage* find( QString ); |
29 | Package* next(); | 29 | OipkgPackage* next(); |
30 | Package* first(); | 30 | OipkgPackage* first(); |
31 | 31 | ||
32 | QStringList getSections(); | 32 | QStringList getSections(); |
33 | QStringList getSubSections(); | 33 | QStringList getSubSections(); |
34 | void setSettings( PackageManagerSettings* ); | 34 | void setSettings( PackageManagerSettings* ); |
35 | void filterPackages( QString ); | 35 | void filterPackages( QString ); |
36 | Package* getByName( QString ); | 36 | OipkgPackage* getByName( QString ); |
37 | void clear(); | 37 | void clear(); |
38 | void allPackages(); | 38 | void allPackages(); |
39 | 39 | ||
40 | QDict<Package> *versions; | 40 | QDict<OipkgPackage> *versions; |
41 | 41 | ||
42 | public slots: | 42 | public slots: |
43 | void setSection(QString); | 43 | void setSection(QString); |
44 | void setSubSection(QString); | 44 | void setSubSection(QString); |
45 | // virtual void update(); | 45 | // virtual void update(); |
46 | 46 | ||
47 | protected: | 47 | protected: |
48 | int currentPackage; | 48 | int currentPackage; |
49 | int packageCount; | 49 | int packageCount; |
50 | 50 | ||
51 | PackageManagerSettings *settings; | 51 | PackageManagerSettings *settings; |
52 | QDict<Package> packageList; | 52 | QDict<OipkgPackage> packageList; |
53 | QDict<Package> origPackageList; | 53 | QDict<OipkgPackage> origPackageList; |
54 | QDictIterator<Package> packageIter; | 54 | QDictIterator<OipkgPackage> packageIter; |
55 | 55 | ||
56 | bool empty; | 56 | bool empty; |
57 | QString aktSection; | 57 | QString aktSection; |
58 | QString aktSubSection; | 58 | QString aktSubSection; |
59 | QStringList sections; | 59 | QStringList sections; |
60 | QDict<QStringList> subSections; | 60 | QDict<QStringList> subSections; |
61 | QDict<bool> sectionsDict; | 61 | QDict<bool> sectionsDict; |
62 | 62 | ||
63 | 63 | ||
64 | void updateSections( Package* ); | 64 | void updateSections( OipkgPackage* ); |
65 | void readFileEntries( QString file, QString dest="" ); | 65 | void readFileEntries( QString file, QString dest="" ); |
66 | }; | 66 | }; |
67 | 67 | ||
68 | 68 | ||
69 | #endif | 69 | #endif |