author | andyq <andyq> | 2002-10-16 18:56:24 (UTC) |
---|---|---|
committer | andyq <andyq> | 2002-10-16 18:56:24 (UTC) |
commit | 2e08c9a7d3dfffc9249ddc4aef9ad9b01e254dad (patch) (unidiff) | |
tree | 59ff2eabbbfc6f7f26fab540444328cecdd1a3f1 | |
parent | 73b4588d48fdb0c004646e5d8468f57a4a20ac14 (diff) | |
download | opie-2e08c9a7d3dfffc9249ddc4aef9ad9b01e254dad.zip opie-2e08c9a7d3dfffc9249ddc4aef9ad9b01e254dad.tar.gz opie-2e08c9a7d3dfffc9249ddc4aef9ad9b01e254dad.tar.bz2 |
Added new method for upgrade all packages
-rw-r--r-- | noncore/settings/aqpkg/networkpkgmgr.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/settings/aqpkg/networkpkgmgr.h b/noncore/settings/aqpkg/networkpkgmgr.h index 874b1bd..8a88b35 100644 --- a/noncore/settings/aqpkg/networkpkgmgr.h +++ b/noncore/settings/aqpkg/networkpkgmgr.h | |||
@@ -1,70 +1,72 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | networkpkgmgr.h - description | 2 | networkpkgmgr.h - description |
3 | ------------------- | 3 | ------------------- |
4 | begin : Mon Aug 26 13:32:30 BST 2002 | 4 | begin : Mon Aug 26 13:32:30 BST 2002 |
5 | copyright : (C) 2002 by Andy Qua | 5 | copyright : (C) 2002 by Andy Qua |
6 | email : andy.qua@blueyonder.co.uk | 6 | email : andy.qua@blueyonder.co.uk |
7 | ***************************************************************************/ | 7 | ***************************************************************************/ |
8 | 8 | ||
9 | /*************************************************************************** | 9 | /*************************************************************************** |
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 | 17 | ||
18 | #ifndef NETWORKPKGMGR_H | 18 | #ifndef NETWORKPKGMGR_H |
19 | #define NETWORKPKGMGR_H | 19 | #define NETWORKPKGMGR_H |
20 | 20 | ||
21 | #include <qlayout.h> | 21 | #include <qlayout.h> |
22 | #include <qpushbutton.h> | 22 | #include <qpushbutton.h> |
23 | #include <qwidget.h> | 23 | #include <qwidget.h> |
24 | #include <qcombobox.h> | 24 | #include <qcombobox.h> |
25 | #include <qlistview.h> | 25 | #include <qlistview.h> |
26 | 26 | ||
27 | #include "datamgr.h" | 27 | #include "datamgr.h" |
28 | #include "progressdlg.h" | 28 | #include "progressdlg.h" |
29 | 29 | ||
30 | /** NetworkPackageManager is the base class of the project */ | 30 | /** NetworkPackageManager is the base class of the project */ |
31 | class NetworkPackageManager : public QWidget | 31 | class NetworkPackageManager : public QWidget |
32 | { | 32 | { |
33 | Q_OBJECT | 33 | Q_OBJECT |
34 | public: | 34 | public: |
35 | /** construtor */ | 35 | /** construtor */ |
36 | NetworkPackageManager( DataManager *dataManager, QWidget* parent=0, const char *name=0); | 36 | NetworkPackageManager( DataManager *dataManager, QWidget* parent=0, const char *name=0); |
37 | /** destructor */ | 37 | /** destructor */ |
38 | ~NetworkPackageManager(); | 38 | ~NetworkPackageManager(); |
39 | 39 | ||
40 | void updateData(); | 40 | void updateData(); |
41 | 41 | ||
42 | private: | 42 | private: |
43 | DataManager *dataMgr; | 43 | DataManager *dataMgr; |
44 | 44 | ||
45 | QComboBox *serversList; | 45 | QComboBox *serversList; |
46 | QListView *packagesList; | 46 | QListView *packagesList; |
47 | QPushButton *update; | 47 | QPushButton *update; |
48 | QPushButton *upgrade; | ||
48 | QPushButton *download; | 49 | QPushButton *download; |
49 | QPushButton *apply; | 50 | QPushButton *apply; |
50 | 51 | ||
51 | ProgressDlg *progressDlg; | 52 | ProgressDlg *progressDlg; |
52 | 53 | ||
53 | int timerId; | 54 | int timerId; |
54 | 55 | ||
55 | void timerEvent ( QTimerEvent * ); | 56 | void timerEvent ( QTimerEvent * ); |
56 | 57 | ||
57 | void initGui(); | 58 | void initGui(); |
58 | void setupConnections(); | 59 | void setupConnections(); |
59 | void showProgressDialog(); | 60 | void showProgressDialog( char *initialText ); |
60 | QString dealWithItem( QCheckListItem *item ); | 61 | QString dealWithItem( QCheckListItem *item ); |
61 | 62 | ||
62 | public slots: | 63 | public slots: |
63 | void serverSelected( int index ); | 64 | void serverSelected( int index ); |
64 | void applyChanges(); | 65 | void applyChanges(); |
66 | void upgradePackages(); | ||
65 | void downloadPackage(); | 67 | void downloadPackage(); |
66 | void updateServer(); | 68 | void updateServer(); |
67 | void displayText( const QString &t ); | 69 | void displayText( const QString &t ); |
68 | }; | 70 | }; |
69 | 71 | ||
70 | #endif | 72 | #endif |