author | andyq <andyq> | 2002-10-17 22:58:36 (UTC) |
---|---|---|
committer | andyq <andyq> | 2002-10-17 22:58:36 (UTC) |
commit | cd48ed3935f1baa6392afee5764d0927abcf62cc (patch) (unidiff) | |
tree | 54423b7242c59457ded23ce0dd1e89ce05b630b1 /noncore/settings/aqpkg/installdlgimpl.h | |
parent | 4ce3fb5c10a50aece4ef8a78d07ed116ad754c27 (diff) | |
download | opie-cd48ed3935f1baa6392afee5764d0927abcf62cc.zip opie-cd48ed3935f1baa6392afee5764d0927abcf62cc.tar.gz opie-cd48ed3935f1baa6392afee5764d0927abcf62cc.tar.bz2 |
Changed so that installings/removing and upgrading from/to multiple destinations
works better
Diffstat (limited to 'noncore/settings/aqpkg/installdlgimpl.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/installdlgimpl.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/noncore/settings/aqpkg/installdlgimpl.h b/noncore/settings/aqpkg/installdlgimpl.h index 8b05c52..3a5d8b8 100644 --- a/noncore/settings/aqpkg/installdlgimpl.h +++ b/noncore/settings/aqpkg/installdlgimpl.h | |||
@@ -25,10 +25,19 @@ using namespace std; | |||
25 | #include "ipkg.h" | 25 | #include "ipkg.h" |
26 | #include "install.h" | 26 | #include "install.h" |
27 | 27 | ||
28 | class InstallData | ||
29 | { | ||
30 | public: | ||
31 | QString option; // I - install, D - delete, U - upgrade | ||
32 | QString packageName; | ||
33 | Destination *destination; | ||
34 | bool recreateLinks; | ||
35 | }; | ||
36 | |||
28 | class InstallDlgImpl : public InstallDlg | 37 | class InstallDlgImpl : public InstallDlg |
29 | { | 38 | { |
30 | public: | 39 | public: |
31 | InstallDlgImpl( vector<QString> &packageList, DataManager *dataManager, QWidget * parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 ); | 40 | InstallDlgImpl( vector<InstallData> &packageList, DataManager *dataManager, QWidget * parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 ); |
32 | InstallDlgImpl( QWidget * parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 ); | 41 | InstallDlgImpl( QWidget * parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 ); |
33 | ~InstallDlgImpl(); | 42 | ~InstallDlgImpl(); |
34 | 43 | ||
@@ -39,9 +48,9 @@ protected: | |||
39 | 48 | ||
40 | private: | 49 | private: |
41 | DataManager *dataMgr; | 50 | DataManager *dataMgr; |
42 | vector<QString> installList; | 51 | vector<InstallData> installList; |
43 | vector<QString> removeList; | 52 | vector<InstallData> removeList; |
44 | vector<QString> updateList; | 53 | vector<InstallData> updateList; |
45 | int flags; | 54 | int flags; |
46 | Ipkg ipkg; | 55 | Ipkg ipkg; |
47 | bool upgradePackages; | 56 | bool upgradePackages; |