23 #ifndef __MASTERMANAGER_H__ 24 #define __MASTERMANAGER_H__ 26 #include "serverapi/masterclient.h" 27 #include "serverapi/message.h" 28 #include <QSharedPointer> 32 class MasterClientSignalProxy;
49 QList<ServerPtr> allServers()
const;
52 int numMasters()
const {
return masters.size(); }
56 MasterClient *operator[](
int index) {
return masters[index]; }
59 void refreshStarts()
override;
67 void masterMessage(
MasterClient *pSender,
const QString &title,
const QString &content,
bool isError);
72 QList<MasterClient *> masters;
73 QSet<MasterClient *> mastersBeingRefreshed;
77 QByteArray createServerListRequest()
override {
return QByteArray(); }
78 Response readMasterResponse(
const QByteArray &data)
override;
79 void timeoutRefreshEx()
override;
82 void masterListUpdated();
84 void forwardMasterMessage(
const QString &title,
const QString &content,
bool isError)
87 emit masterMessage(master, title, content, isError);
93 emit masterMessageImportant(master, message);
Message object used to pass messages throughout the Doomseeker's system.
void message(const QString &title, const QString &content, bool isError)
const EnginePlugin * plugin() const override
Manager class for a number of MasterClient instances.
void listUpdatedForMaster(MasterClient *pSender)
Emitted for every MasterClient that emits listUpdated() signal.
Abstract base for all MasterClients.