Diffstat (limited to 'noncore/settings/aqpkg/networkpkgmgr.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/networkpkgmgr.h | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/networkpkgmgr.h b/noncore/settings/aqpkg/networkpkgmgr.h new file mode 100644 index 0000000..874b1bd --- a/dev/null +++ b/noncore/settings/aqpkg/networkpkgmgr.h | |||
@@ -0,0 +1,70 @@ | |||
1 | /*************************************************************************** | ||
2 | networkpkgmgr.h - description | ||
3 | ------------------- | ||
4 | begin : Mon Aug 26 13:32:30 BST 2002 | ||
5 | copyright : (C) 2002 by Andy Qua | ||
6 | email : andy.qua@blueyonder.co.uk | ||
7 | ***************************************************************************/ | ||
8 | |||
9 | /*************************************************************************** | ||
10 | * * | ||
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 * | ||
13 | * the Free Software Foundation; either version 2 of the License, or * | ||
14 | * (at your option) any later version. * | ||
15 | * * | ||
16 | ***************************************************************************/ | ||
17 | |||
18 | #ifndef NETWORKPKGMGR_H | ||
19 | #define NETWORKPKGMGR_H | ||
20 | |||
21 | #include <qlayout.h> | ||
22 | #include <qpushbutton.h> | ||
23 | #include <qwidget.h> | ||
24 | #include <qcombobox.h> | ||
25 | #include <qlistview.h> | ||
26 | |||
27 | #include "datamgr.h" | ||
28 | #include "progressdlg.h" | ||
29 | |||
30 | /** NetworkPackageManager is the base class of the project */ | ||
31 | class NetworkPackageManager : public QWidget | ||
32 | { | ||
33 | Q_OBJECT | ||
34 | public: | ||
35 | /** construtor */ | ||
36 | NetworkPackageManager( DataManager *dataManager, QWidget* parent=0, const char *name=0); | ||
37 | /** destructor */ | ||
38 | ~NetworkPackageManager(); | ||
39 | |||
40 | void updateData(); | ||
41 | |||
42 | private: | ||
43 | DataManager *dataMgr; | ||
44 | |||
45 | QComboBox *serversList; | ||
46 | QListView *packagesList; | ||
47 | QPushButton *update; | ||
48 | QPushButton *download; | ||
49 | QPushButton *apply; | ||
50 | |||
51 | ProgressDlg *progressDlg; | ||
52 | |||
53 | int timerId; | ||
54 | |||
55 | void timerEvent ( QTimerEvent * ); | ||
56 | |||
57 | void initGui(); | ||
58 | void setupConnections(); | ||
59 | void showProgressDialog(); | ||
60 | QString dealWithItem( QCheckListItem *item ); | ||
61 | |||
62 | public slots: | ||
63 | void serverSelected( int index ); | ||
64 | void applyChanges(); | ||
65 | void downloadPackage(); | ||
66 | void updateServer(); | ||
67 | void displayText( const QString &t ); | ||
68 | }; | ||
69 | |||
70 | #endif | ||