summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/datamgr.h
authordrw <drw>2003-02-06 01:19:25 (UTC)
committer drw <drw>2003-02-06 01:19:25 (UTC)
commit79588befde53765db0a92977c6890a4d226096e7 (patch) (unidiff)
tree83b6dd14c49733b9759fad04147bf0bee50793fe /noncore/settings/aqpkg/datamgr.h
parentbbb3690f12191763a407e6a0edd521113b3c25ac (diff)
downloadopie-79588befde53765db0a92977c6890a4d226096e7.zip
opie-79588befde53765db0a92977c6890a4d226096e7.tar.gz
opie-79588befde53765db0a92977c6890a4d226096e7.tar.bz2
Change all vector<> to QList<>. First step in removing dependency on libstdc++.
Diffstat (limited to 'noncore/settings/aqpkg/datamgr.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/datamgr.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/noncore/settings/aqpkg/datamgr.h b/noncore/settings/aqpkg/datamgr.h
index 90328ab..7fa42c1 100644
--- a/noncore/settings/aqpkg/datamgr.h
+++ b/noncore/settings/aqpkg/datamgr.h
@@ -12,54 +12,55 @@
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>
22using namespace std; 22using namespace std;
23 23
24#include <qlist.h>
24#include <qobject.h> 25#include <qobject.h>
25#include <qstring.h> 26#include <qstring.h>
26 27
27#include "server.h" 28#include "server.h"
28#include "destination.h" 29#include "destination.h"
29 30
30 #define LOCAL_SERVER "Installed Pkgs" 31 #define LOCAL_SERVER "Installed Pkgs"
31 #define LOCAL_IPKGS "local IPKG" 32 #define LOCAL_IPKGS "local IPKG"
32 33
33/** 34/**
34 *@author Andy Qua 35 *@author Andy Qua
35 */ 36 */
36 37
37 38
38class DataManager : public QObject 39class DataManager : public QObject
39{ 40{
40 Q_OBJECT 41 Q_OBJECT
41public: 42public:
42 DataManager(); 43 DataManager();
43 ~DataManager(); 44 ~DataManager();
44 45
45 void setActiveServer( const QString &act ) { activeServer = act; } 46 void setActiveServer( const QString &act ) { activeServer = act; }
46 QString &getActiveServer( ) { return activeServer; } 47 QString &getActiveServer( ) { return activeServer; }
47 48
48 Server *getLocalServer() { return &( *getServer( LOCAL_SERVER ) ); } 49 Server *getLocalServer() { return ( getServer( LOCAL_SERVER ) ); }
49 vector<Server> &getServerList() { return serverList; } 50 QList<Server> &getServerList() { return serverList; }
50 vector<Server>::iterator getServer( const char *name ); 51 Server *getServer( const char *name );
51 52
52 vector<Destination> &getDestinationList() { return destList; } 53 QList<Destination> &getDestinationList() { return destList; }
53 vector<Destination>::iterator getDestination( const char *name ); 54 Destination *getDestination( const char *name );
54 55
55 void loadServers(); 56 void loadServers();
56 void reloadServerData( ); 57 void reloadServerData( );
57 58
58 void writeOutIpkgConf(); 59 void writeOutIpkgConf();
59 60
60 static QString getAvailableCategories() { return availableCategories; } 61 static QString getAvailableCategories() { return availableCategories; }
61 static void setAvailableCategories( QString section ); 62 static void setAvailableCategories( QString section );
62 63
63 QString getHttpProxy() { return httpProxy; } 64 QString getHttpProxy() { return httpProxy; }
64 QString getFtpProxy() { return ftpProxy; } 65 QString getFtpProxy() { return ftpProxy; }
65 QString getProxyUsername() { return proxyUsername; } 66 QString getProxyUsername() { return proxyUsername; }
@@ -77,22 +78,22 @@ public:
77 void setFtpProxyEnabled( bool val ) { ftpProxyEnabled = val; } 78 void setFtpProxyEnabled( bool val ) { ftpProxyEnabled = val; }
78private: 79private:
79 static QString availableCategories; 80 static QString availableCategories;
80 QString activeServer; 81 QString activeServer;
81 QString httpProxy; 82 QString httpProxy;
82 QString ftpProxy; 83 QString ftpProxy;
83 QString proxyUsername; 84 QString proxyUsername;
84 QString proxyPassword; 85 QString proxyPassword;
85 86
86 bool httpProxyEnabled; 87 bool httpProxyEnabled;
87 bool ftpProxyEnabled; 88 bool ftpProxyEnabled;
88 89
89 vector<Server> serverList; 90 QList<Server> serverList;
90 vector<Destination> destList; 91 QList<Destination> destList;
91 92
92signals: 93signals:
93 void progressSetSteps( int ); 94 void progressSetSteps( int );
94 void progressSetMessage( const QString & ); 95 void progressSetMessage( const QString & );
95 void progressUpdate( int ); 96 void progressUpdate( int );
96}; 97};
97 98
98#endif 99#endif