summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/server.h
Unidiff
Diffstat (limited to 'noncore/settings/aqpkg/server.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/server.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/server.h b/noncore/settings/aqpkg/server.h
new file mode 100644
index 0000000..8f8d384
--- a/dev/null
+++ b/noncore/settings/aqpkg/server.h
@@ -0,0 +1,63 @@
1/***************************************************************************
2 server.h - description
3 -------------------
4 begin : Mon Aug 26 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#ifndef SERVER_H
18#define SERVER_H
19
20#include <qstring.h>
21
22#include <vector>
23using namespace std;
24
25#include "package.h"
26#include "destination.h"
27
28class Server
29{
30public:
31 Server() {}
32 Server( const char *name, const char *url );
33 Server( const char *name, const char *url, const char *file );
34 ~Server();
35
36 void cleanUp();
37
38 void readStatusFile( vector<Destination> &v );
39 void readLocalIpks( Server *local );
40 void readPackageFile( Server *local = 0, bool clearAll = true, bool installedToRoot= false );
41 void buildLocalPackages( Server *local );
42 Package *getPackage( const char *name );
43 Package *getPackage( QString &name );
44 QString toString();
45 vector<Package> &getPackageList();
46
47 void setServerName( const QString &name ) { serverName = name; }
48 void setServerUrl( const QString &url ) { serverUrl = url; }
49 QString &getServerName() { return serverName; }
50 QString &getServerUrl() { return serverUrl; }
51
52protected:
53
54private:
55 QString serverName;
56 QString serverUrl;
57 QString packageFile;
58
59
60 vector<Package> packageList;
61};
62
63#endif