Diffstat (limited to 'noncore/settings/aqpkg/server.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/server.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/noncore/settings/aqpkg/server.h b/noncore/settings/aqpkg/server.h index f524ed6..b62f1f2 100644 --- a/noncore/settings/aqpkg/server.h +++ b/noncore/settings/aqpkg/server.h | |||
@@ -12,50 +12,48 @@ | |||
12 | ._= =} : or (at your option) any later version. | 12 | ._= =} : or (at your option) any later version. |
13 | .%`+i> _;_. | 13 | .%`+i> _;_. |
14 | .i_,=:_. -<s. This file is distributed in the hope that | 14 | .i_,=:_. -<s. This file is distributed in the hope that |
15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
16 | : .. .:, . . . without even the implied warranty of | 16 | : .. .:, . . . without even the implied warranty of |
17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General |
19 | ..}^=.= = ; Public License for more details. | 19 | ..}^=.= = ; Public License for more details. |
20 | ++= -. .` .: | 20 | ++= -. .` .: |
21 | : = ...= . :.=- You should have received a copy of the GNU | 21 | : = ...= . :.=- You should have received a copy of the GNU |
22 | -. .:....=;==+<; General Public License along with this file; | 22 | -. .:....=;==+<; General Public License along with this file; |
23 | -_. . . )=. = see the file COPYING. If not, write to the | 23 | -_. . . )=. = see the file COPYING. If not, write to the |
24 | -- :-=` Free Software Foundation, Inc., | 24 | -- :-=` Free Software Foundation, Inc., |
25 | 59 Temple Place - Suite 330, | 25 | 59 Temple Place - Suite 330, |
26 | Boston, MA 02111-1307, USA. | 26 | Boston, MA 02111-1307, USA. |
27 | 27 | ||
28 | */ | 28 | */ |
29 | 29 | ||
30 | #ifndef SERVER_H | 30 | #ifndef SERVER_H |
31 | #define SERVER_H | 31 | #define SERVER_H |
32 | 32 | ||
33 | #include <qlist.h> | 33 | #include <qlist.h> |
34 | #include <qstring.h> | 34 | #include <qstring.h> |
35 | 35 | ||
36 | using namespace std; | ||
37 | |||
38 | #include "package.h" | 36 | #include "package.h" |
39 | #include "destination.h" | 37 | #include "destination.h" |
40 | 38 | ||
41 | class Server | 39 | class Server |
42 | { | 40 | { |
43 | public: | 41 | public: |
44 | Server() {} | 42 | Server() {} |
45 | Server( const char *name, const char *url ); | 43 | Server( const char *name, const char *url ); |
46 | Server( const char *name, const char *url, const char *file ); | 44 | Server( const char *name, const char *url, const char *file ); |
47 | ~Server(); | 45 | ~Server(); |
48 | 46 | ||
49 | void cleanUp(); | 47 | void cleanUp(); |
50 | 48 | ||
51 | void readStatusFile( QList<Destination> &v ); | 49 | void readStatusFile( QList<Destination> &v ); |
52 | void readLocalIpks( Server *local ); | 50 | void readLocalIpks( Server *local ); |
53 | void readPackageFile( Server *local = 0, bool clearAll = true, bool installedToRoot= false, Destination *dest = 0 ); | 51 | void readPackageFile( Server *local = 0, bool clearAll = true, bool installedToRoot= false, Destination *dest = 0 ); |
54 | void buildLocalPackages( Server *local ); | 52 | void buildLocalPackages( Server *local ); |
55 | Package *getPackage( const char *name ); | 53 | Package *getPackage( const char *name ); |
56 | Package *getPackage( QString &name ); | 54 | Package *getPackage( QString &name ); |
57 | QString toString(); | 55 | QString toString(); |
58 | QList<Package> &getPackageList(); | 56 | QList<Package> &getPackageList(); |
59 | bool isServerActive() { return active; } | 57 | bool isServerActive() { return active; } |
60 | 58 | ||
61 | void setServerName( const QString &name ) { serverName = name; } | 59 | void setServerName( const QString &name ) { serverName = name; } |