Diffstat (limited to 'noncore/unsupported/oipkg/pmipkg.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/pmipkg.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/noncore/unsupported/oipkg/pmipkg.h b/noncore/unsupported/oipkg/pmipkg.h index 8718f49..2692017 100644 --- a/noncore/unsupported/oipkg/pmipkg.h +++ b/noncore/unsupported/oipkg/pmipkg.h | |||
@@ -1,48 +1,55 @@ | |||
1 | #ifndef PMIPKG_H | 1 | #ifndef PMIPKG_H |
2 | #define PMIPKG_H | 2 | #define PMIPKG_H |
3 | 3 | ||
4 | 4 | ||
5 | #include <qobject.h> | 5 | #include <qobject.h> |
6 | #include <qlist.h> | ||
6 | #include <qstring.h> | 7 | #include <qstring.h> |
7 | #include <qwidget.h> | 8 | #include <qwidget.h> |
8 | #include "pksettings.h" | 9 | #include "pksettings.h" |
9 | #include "runwindow.h" | 10 | #include "runwindow.h" |
10 | #include "packagelist.h" | 11 | #include "packagelist.h" |
11 | #include "debug.h" | 12 | #include "debug.h" |
12 | 13 | ||
13 | 14 | //#define NEWLIST | |
14 | 15 | class Package; | |
15 | class PmIpkg : public QObject | 16 | class PmIpkg : public QObject |
16 | { | 17 | { |
17 | Q_OBJECT | 18 | Q_OBJECT |
18 | public: | 19 | public: |
19 | PmIpkg( PackageManagerSettings* , QWidget* p=0, const char * name=0, WFlags f=0 ); | 20 | PmIpkg( PackageManagerSettings* , QWidget* p=0, const char * name=0, WFlags f=0 ); |
20 | ~PmIpkg(); | 21 | ~PmIpkg(); |
21 | 22 | ||
22 | void commit( PackageList ); | 23 | void commit( PackageList ); |
23 | void update(); | 24 | void update(); |
24 | PackageList* getPackageList(); | 25 | PackageList* getPackageList(); |
25 | void showButtons(bool b=true); | 26 | void showButtons(bool b=true); |
26 | void show( bool buttons=true ); | 27 | void show( bool buttons=true ); |
27 | 28 | ||
28 | private: | 29 | private: |
29 | PackageManagerSettings* settings; | 30 | PackageManagerSettings* settings; |
30 | RunWindow *runwindow; | 31 | RunWindow *runwindow; |
32 | #ifndef NEWLIST | ||
31 | QStringList to_remove; | 33 | QStringList to_remove; |
32 | QStringList to_install; | 34 | QStringList to_install; |
35 | #endif | ||
36 | #ifdef NEWLIST | ||
37 | QList<Package> to_remove; | ||
38 | QList<Package> to_install; | ||
39 | #endif | ||
33 | bool runwindowopen; | 40 | bool runwindowopen; |
34 | 41 | ||
35 | void makeLinks(QString); | 42 | void makeLinks(QString); |
36 | void processLinkDir( QString, QString ); | 43 | void processLinkDir( QString, QString ); |
37 | 44 | ||
38 | int runIpkg(const QString& args); | 45 | int runIpkg(const QString& args); |
39 | void out( QString ); | 46 | void out( QString ); |
40 | 47 | ||
41 | public slots: | 48 | public slots: |
42 | void doIt(); | 49 | void doIt(); |
43 | void install(); | 50 | void install(); |
44 | void remove(); | 51 | void remove(); |
45 | void linkDestination( const QString, const QByteArray ); | 52 | void linkDestination( const QString, const QByteArray ); |
46 | }; | 53 | }; |
47 | 54 | ||
48 | #endif | 55 | #endif |