author | drw <drw> | 2003-03-19 02:48:27 (UTC) |
---|---|---|
committer | drw <drw> | 2003-03-19 02:48:27 (UTC) |
commit | f35989ef21fb5a27ebe6f6924ee2cc601318c1b8 (patch) (unidiff) | |
tree | f169286f925c01758d1456027eb43743bb0cd162 /noncore/settings/aqpkg/installdlgimpl.h | |
parent | 06ddd131a6f33d341290617e71a14006fc9957a1 (diff) | |
download | opie-f35989ef21fb5a27ebe6f6924ee2cc601318c1b8.zip opie-f35989ef21fb5a27ebe6f6924ee2cc601318c1b8.tar.gz opie-f35989ef21fb5a27ebe6f6924ee2cc601318c1b8.tar.bz2 |
Fix for bug #741
Diffstat (limited to 'noncore/settings/aqpkg/installdlgimpl.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/installdlgimpl.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/noncore/settings/aqpkg/installdlgimpl.h b/noncore/settings/aqpkg/installdlgimpl.h index d7509bb..c30963e 100644 --- a/noncore/settings/aqpkg/installdlgimpl.h +++ b/noncore/settings/aqpkg/installdlgimpl.h | |||
@@ -10,76 +10,76 @@ | |||
10 | * * | 10 | * * |
11 | * This program is free software; you can redistribute it and/or modify * | 11 | * This program is free software; you can redistribute it and/or modify * |
12 | * it under the terms of the GNU General Public License as published by * | 12 | * it under the terms of the GNU General Public License as published by * |
13 | * the Free Software Foundation; either version 2 of the License, or * | 13 | * the Free Software Foundation; either version 2 of the License, or * |
14 | * (at your option) any later version. * | 14 | * (at your option) any later version. * |
15 | * * | 15 | * * |
16 | ***************************************************************************/ | 16 | ***************************************************************************/ |
17 | #ifndef INSTALLDLGIMPL_H | 17 | #ifndef INSTALLDLGIMPL_H |
18 | #define INSTALLDLGIMPL_H | 18 | #define INSTALLDLGIMPL_H |
19 | 19 | ||
20 | using namespace std; | 20 | using namespace std; |
21 | 21 | ||
22 | #include <qlist.h> | 22 | #include <qlist.h> |
23 | #include <qstring.h> | 23 | #include <qstring.h> |
24 | #include <qwidget.h> | 24 | #include <qwidget.h> |
25 | 25 | ||
26 | class QComboBox; | 26 | class QComboBox; |
27 | class QLabel; | 27 | class QLabel; |
28 | class QMultiLineEdit; | 28 | class QMultiLineEdit; |
29 | class QPushButton; | 29 | class QPushButton; |
30 | 30 | ||
31 | class DataManager; | 31 | class DataManager; |
32 | class Destination; | 32 | class Destination; |
33 | class Ipkg; | 33 | class Ipkg; |
34 | 34 | ||
35 | class InstallData | 35 | class InstallData |
36 | { | 36 | { |
37 | public: | 37 | public: |
38 | QString option; // I - install, D - delete, R- reinstall U - upgrade | 38 | QString option; // I - install, D - delete, R- reinstall U - upgrade |
39 | QString packageName; | 39 | QString packageName; |
40 | Destination *destination; | 40 | Destination *destination; |
41 | bool recreateLinks; | 41 | bool recreateLinks; |
42 | }; | 42 | }; |
43 | 43 | ||
44 | class InstallDlgImpl : public QWidget | 44 | class InstallDlgImpl : public QWidget |
45 | { | 45 | { |
46 | Q_OBJECT | 46 | Q_OBJECT |
47 | public: | 47 | public: |
48 | InstallDlgImpl( QList<InstallData> &packageList, DataManager *dataManager, const char *title = 0 ); | 48 | InstallDlgImpl( QList<InstallData> &packageList, DataManager *dataManager, const char *title = 0 ); |
49 | InstallDlgImpl( Ipkg *ipkg, QString initialText, const char *title = 0 ); | 49 | InstallDlgImpl( Ipkg *ipkg, QString initialText, const char *title = 0 ); |
50 | ~InstallDlgImpl(); | 50 | ~InstallDlgImpl(); |
51 | 51 | ||
52 | bool upgradeServer( QString &server ); | 52 | bool upgradeServer( QString &server ); |
53 | 53 | ||
54 | protected: | 54 | protected: |
55 | 55 | ||
56 | private: | 56 | private: |
57 | DataManager *dataMgr; | 57 | DataManager *dataMgr; |
58 | QList<InstallData> installList; | 58 | QList<InstallData> installList; |
59 | QList<InstallData> removeList; | 59 | QList<InstallData> removeList; |
60 | QList<InstallData> updateList; | 60 | QList<InstallData> updateList; |
61 | int flags; | 61 | int flags; |
62 | Ipkg *pIpkg; | 62 | Ipkg *pIpkg; |
63 | bool upgradePackages; | 63 | bool upgradePackages; |
64 | 64 | ||
65 | QComboBox *destination; | 65 | QComboBox *destination; |
66 | QPushButton *btnInstall; | 66 | QPushButton *btnInstall; |
67 | QPushButton *btnOptions; | 67 | QPushButton *btnOptions; |
68 | QMultiLineEdit *output; | 68 | QMultiLineEdit *output; |
69 | QLabel *txtAvailableSpace; | 69 | QLabel *txtAvailableSpace; |
70 | 70 | ||
71 | void init( bool ); | 71 | void init( bool ); |
72 | 72 | ||
73 | bool runIpkg( QString &option, const QString& package, const QString& dest, int flags ); | 73 | bool runIpkg( QString &option, const QString& package, const QString& dest, int flags ); |
74 | 74 | ||
75 | signals: | 75 | signals: |
76 | void reloadData( InstallDlgImpl * ); | 76 | void reloadData( InstallDlgImpl * ); |
77 | 77 | ||
78 | public slots: | 78 | public slots: |
79 | void optionsSelected(); | 79 | void optionsSelected(); |
80 | void installSelected(); | 80 | void installSelected(); |
81 | void displayText(const QString &text ); | 81 | void displayText(const QString &text ); |
82 | void displayAvailableSpace( const QString &text); | 82 | void displayAvailableSpace( const QString &text); |
83 | }; | 83 | }; |
84 | 84 | ||
85 | #endif | 85 | #endif |