Diffstat (limited to 'noncore/unsupported/oipkg/package.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/package.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/noncore/unsupported/oipkg/package.h b/noncore/unsupported/oipkg/package.h index c147420..2334c31 100644 --- a/noncore/unsupported/oipkg/package.h +++ b/noncore/unsupported/oipkg/package.h | |||
@@ -1,100 +1,100 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | * * | 2 | * * |
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 PK_ITEM_H | 10 | #ifndef PK_ITEM_H |
11 | #define PK_ITEM_H | 11 | #define PK_ITEM_H |
12 | 12 | ||
13 | #include <qstring.h> | 13 | #include <qstring.h> |
14 | #include <qlistview.h> | 14 | #include <qlistview.h> |
15 | #include <qpainter.h> | 15 | #include <qpainter.h> |
16 | #include <qpixmap.h> | 16 | #include <qpixmap.h> |
17 | #include <qdict.h> | 17 | #include <qdict.h> |
18 | #include <qobject.h> | 18 | #include <qobject.h> |
19 | 19 | ||
20 | #include "pksettings.h" | 20 | #include "pksettings.h" |
21 | 21 | ||
22 | class Package : public QObject | 22 | class OipkgPackage : public QObject |
23 | { | 23 | { |
24 | Q_OBJECT | 24 | Q_OBJECT |
25 | public: | 25 | public: |
26 | Package(QObject *parent=0, const char *name=0); | 26 | OipkgPackage(QObject *parent=0, const char *name=0); |
27 | Package(PackageManagerSettings *s, QObject *parent=0, const char *name=0); | 27 | OipkgPackage(PackageManagerSettings *s, QObject *parent=0, const char *name=0); |
28 | ~Package(); | 28 | ~OipkgPackage(); |
29 | Package( QStringList, PackageManagerSettings *s, QObject *parent=0, const char *name=0 ); | 29 | OipkgPackage( QStringList, PackageManagerSettings *s, QObject *parent=0, const char *name=0 ); |
30 | Package( QString, PackageManagerSettings *s, QObject *parent=0, const char *name=0 ); | 30 | OipkgPackage( QString, PackageManagerSettings *s, QObject *parent=0, const char *name=0 ); |
31 | Package( Package*s, QObject *parent=0, const char *name=0 ); | 31 | OipkgPackage( OipkgPackage*s, QObject *parent=0, const char *name=0 ); |
32 | 32 | ||
33 | void setValue( QString, QString ); | 33 | void setValue( QString, QString ); |
34 | void copyValues( Package* ); | 34 | void copyValues( OipkgPackage* ); |
35 | 35 | ||
36 | QString name(); | 36 | QString name(); |
37 | QString installName(); | 37 | QString installName(); |
38 | QString packageName(); | 38 | QString packageName(); |
39 | bool installed(); | 39 | bool installed(); |
40 | bool otherInstalled(); | 40 | bool otherInstalled(); |
41 | 41 | ||
42 | void setDesc( QString ); | 42 | void setDesc( QString ); |
43 | QString shortDesc(); | 43 | QString shortDesc(); |
44 | QString desc(); | 44 | QString desc(); |
45 | QString size(); | 45 | QString size(); |
46 | QString sizeUnits(); | 46 | QString sizeUnits(); |
47 | QString version(); | 47 | QString version(); |
48 | void setSection( QString ); | 48 | void setSection( QString ); |
49 | QString section(); | 49 | QString section(); |
50 | QString subSection(); | 50 | QString subSection(); |
51 | QString details(); | 51 | QString details(); |
52 | bool toProcess(); | 52 | bool toProcess(); |
53 | bool toInstall(); | 53 | bool toInstall(); |
54 | bool toRemove(); | 54 | bool toRemove(); |
55 | void processed(); | 55 | void processed(); |
56 | QString dest(); | 56 | QString dest(); |
57 | void setDest( QString d ); | 57 | void setDest( QString d ); |
58 | void setOn(); | 58 | void setOn(); |
59 | bool link(); | 59 | bool link(); |
60 | void setLink(bool); | 60 | void setLink(bool); |
61 | bool isOld(); | 61 | bool isOld(); |
62 | bool hasVersions(); | 62 | bool hasVersions(); |
63 | void parseIpkgFile( QString ); | 63 | void parseIpkgFile( QString ); |
64 | void instalFromFile(bool iff=true); | 64 | void instalFromFile(bool iff=true); |
65 | void setName(QString); | 65 | void setName(QString); |
66 | QDict<QString>* getFields(); | 66 | QDict<QString>* getFields(); |
67 | QString status(); | 67 | QString status(); |
68 | 68 | ||
69 | QDict<Package>* getOtherVersions(); | 69 | QDict<OipkgPackage>* getOtherVersions(); |
70 | void setOtherVersions(QDict<Package>*); | 70 | void setOtherVersions(QDict<OipkgPackage>*); |
71 | 71 | ||
72 | public slots: | 72 | public slots: |
73 | void toggleProcess(); | 73 | void toggleProcess(); |
74 | 74 | ||
75 | private: | 75 | private: |
76 | PackageManagerSettings *settings; | 76 | PackageManagerSettings *settings; |
77 | QString _displayName; | 77 | QString _displayName; |
78 | QString _name; | 78 | QString _name; |
79 | QString _fileName; | 79 | QString _fileName; |
80 | bool _old; | 80 | bool _old; |
81 | bool _hasVersions; | 81 | bool _hasVersions; |
82 | bool _toProcess; | 82 | bool _toProcess; |
83 | bool _link; | 83 | bool _link; |
84 | QString _status; | 84 | QString _status; |
85 | QString _size; | 85 | QString _size; |
86 | QString _section; | 86 | QString _section; |
87 | QString _subsection; | 87 | QString _subsection; |
88 | QString _shortDesc; | 88 | QString _shortDesc; |
89 | QString _desc; | 89 | QString _desc; |
90 | QString _version; | 90 | QString _version; |
91 | QString _dest; | 91 | QString _dest; |
92 | QDict<QString> _values; | 92 | QDict<QString> _values; |
93 | QDict<Package> *_versions; | 93 | QDict<OipkgPackage> *_versions; |
94 | bool _useFileName; | 94 | bool _useFileName; |
95 | void parsePackage( QStringList ); | 95 | void parsePackage( QStringList ); |
96 | void init(PackageManagerSettings *); | 96 | void init(PackageManagerSettings *); |
97 | }; | 97 | }; |
98 | 98 | ||
99 | 99 | ||
100 | #endif | 100 | #endif |