20 #ifndef SYNCCLIENT_HPP_ 21 #define SYNCCLIENT_HPP_ 39 QString errorString()
const {
return errorStr; }
42 void connectToServer(
const QString& host,
const int port);
43 void disconnectFromServer();
46 void timerEvent(QTimerEvent* evt) Q_DECL_OVERRIDE;
50 void connectionError();
53 void socketConnected();
54 void socketDisconnected();
55 void socketError(QAbstractSocket::SocketError err);
56 void emitError(
const QString& msg);
65 QVector<SyncMessageHandler*> handlerList;
A client which can connect to a SyncServer to receive state changes, and apply them.
bool isConnected() const
True if the connection has been established completely.
Base interface for message handlers, i.e. reacting to messages.
Handling the connection to a remote peer (i.e. all clients on the server, and the server on the clien...