Diffstat (limited to 'noncore/settings/aqpkg/datamgr.h') (more/less context) (ignore 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 | |||
@@ -16,31 +16,33 @@ | |||
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 ) ); } |
@@ -81,11 +83,16 @@ private: | |||
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 |