Diffstat (limited to 'noncore/settings/aqpkg/datamgr.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/datamgr.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/noncore/settings/aqpkg/datamgr.h b/noncore/settings/aqpkg/datamgr.h index 0a7467f..90328ab 100644 --- a/noncore/settings/aqpkg/datamgr.h +++ b/noncore/settings/aqpkg/datamgr.h | |||
@@ -12,39 +12,41 @@ | |||
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 DATAMGR_H | 18 | #ifndef DATAMGR_H |
19 | #define DATAMGR_H | 19 | #define DATAMGR_H |
20 | 20 | ||
21 | #include <map> | 21 | #include <map> |
22 | using namespace std; | 22 | using namespace std; |
23 | 23 | ||
24 | #include <qobject.h> | ||
24 | #include <qstring.h> | 25 | #include <qstring.h> |
25 | 26 | ||
26 | #include "server.h" | 27 | #include "server.h" |
27 | #include "destination.h" | 28 | #include "destination.h" |
28 | 29 | ||
29 | #define LOCAL_SERVER "Installed Pkgs" | 30 | #define LOCAL_SERVER "Installed Pkgs" |
30 | #define LOCAL_IPKGS "local IPKG" | 31 | #define LOCAL_IPKGS "local IPKG" |
31 | 32 | ||
32 | /** | 33 | /** |
33 | *@author Andy Qua | 34 | *@author Andy Qua |
34 | */ | 35 | */ |
35 | 36 | ||
36 | 37 | ||
37 | class DataManager | 38 | class DataManager : public QObject |
38 | { | 39 | { |
40 | Q_OBJECT | ||
39 | public: | 41 | public: |
40 | DataManager(); | 42 | DataManager(); |
41 | ~DataManager(); | 43 | ~DataManager(); |
42 | 44 | ||
43 | void setActiveServer( const QString &act ) { activeServer = act; } | 45 | void setActiveServer( const QString &act ) { activeServer = act; } |
44 | QString &getActiveServer( ) { return activeServer; } | 46 | QString &getActiveServer( ) { return activeServer; } |
45 | 47 | ||
46 | Server *getLocalServer() { return &( *getServer( LOCAL_SERVER ) ); } | 48 | Server *getLocalServer() { return &( *getServer( LOCAL_SERVER ) ); } |
47 | vector<Server> &getServerList() { return serverList; } | 49 | vector<Server> &getServerList() { return serverList; } |
48 | vector<Server>::iterator getServer( const char *name ); | 50 | vector<Server>::iterator getServer( const char *name ); |
49 | 51 | ||
50 | vector<Destination> &getDestinationList() { return destList; } | 52 | vector<Destination> &getDestinationList() { return destList; } |
@@ -77,15 +79,20 @@ private: | |||
77 | static QString availableCategories; | 79 | static QString availableCategories; |
78 | QString activeServer; | 80 | QString activeServer; |
79 | QString httpProxy; | 81 | QString httpProxy; |
80 | QString ftpProxy; | 82 | QString ftpProxy; |
81 | QString proxyUsername; | 83 | QString proxyUsername; |
82 | QString proxyPassword; | 84 | QString proxyPassword; |
83 | 85 | ||
84 | bool httpProxyEnabled; | 86 | bool httpProxyEnabled; |
85 | bool ftpProxyEnabled; | 87 | bool ftpProxyEnabled; |
86 | 88 | ||
87 | vector<Server> serverList; | 89 | vector<Server> serverList; |
88 | vector<Destination> destList; | 90 | vector<Destination> destList; |
91 | |||
92 | signals: | ||
93 | void progressSetSteps( int ); | ||
94 | void progressSetMessage( const QString & ); | ||
95 | void progressUpdate( int ); | ||
89 | }; | 96 | }; |
90 | 97 | ||
91 | #endif | 98 | #endif |