00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __CUSTOMSERVERS_H_
00024 #define __CUSTOMSERVERS_H_
00025
00026 #include "masterserver/masterclient.h"
00027 #include <QtContainerFwd>
00028
00029 class IniSection;
00030
00035 class CustomServerInfo
00036 {
00037 public:
00038 QString engine;
00039 QString host;
00040 unsigned short port;
00041 int engineIndex;
00042 };
00043
00048 class CustomServers : public MasterClient
00049 {
00050 Q_OBJECT;
00051
00052 public:
00053 CustomServers() : MasterClient() {}
00054
00064 static void decodeConfigEntries(const QString& str, QList<CustomServerInfo>& outCustomServerInfoList);
00065
00066 const EnginePlugin* plugin() const { return NULL; }
00067
00075 void readConfig(QObject* receiver, const char* slotUpdated, const char* slotBegunRefreshing);
00076
00077 bool readMasterResponse(QByteArray &data) { return false; }
00078
00083 void refresh() {}
00084
00095 void setServers(const QList<CustomServerInfo>& csiList, QObject* receiver, const char* slotUpdated, const char* slotBegunRefreshing);
00096
00097 protected:
00098 bool getServerListRequest(QByteArray &data) { return false; }
00099 };
00100
00101 #endif