summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/networkpkgmgr.h
authorandyq <andyq>2002-09-28 23:22:41 (UTC)
committer andyq <andyq>2002-09-28 23:22:41 (UTC)
commit8ebc71609e5263d096f7331a5e0fa95b41eb1d77 (patch) (unidiff)
treeb51cc78a419a8735d4bc447229b4561b5c6edbe5 /noncore/settings/aqpkg/networkpkgmgr.h
parente78460a23cb8bea25f45cdd01f74e8c1d07da1a8 (diff)
downloadopie-8ebc71609e5263d096f7331a5e0fa95b41eb1d77.zip
opie-8ebc71609e5263d096f7331a5e0fa95b41eb1d77.tar.gz
opie-8ebc71609e5263d096f7331a5e0fa95b41eb1d77.tar.bz2
*** empty log message ***
Diffstat (limited to 'noncore/settings/aqpkg/networkpkgmgr.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/aqpkg/networkpkgmgr.h70
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 */
31class NetworkPackageManager : public QWidget
32{
33 Q_OBJECT
34public:
35 /** construtor */
36 NetworkPackageManager( DataManager *dataManager, QWidget* parent=0, const char *name=0);
37 /** destructor */
38 ~NetworkPackageManager();
39
40 void updateData();
41
42private:
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
62public 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