20 #ifndef SYNCCLIENT_HPP_ 21 #define SYNCCLIENT_HPP_ 23 #include <QLoggingCategory> 27 Q_DECLARE_LOGGING_CATEGORY(syncClient)
44 SyncLocation = 0x0002,
45 SyncSelection = 0x0004,
46 SyncStelProperty= 0x0008,
49 SkipGUIProps = 0x0040,
54 SyncClient(SyncOptions options,
const QStringList& excludeProperties, QObject* parent = Q_NULLPTR);
57 QString errorString()
const {
return errorStr; }
60 void connectToServer(
const QString& host,
const int port);
61 void disconnectFromServer();
64 void timerEvent(QTimerEvent* evt) Q_DECL_OVERRIDE;
67 void disconnected(
bool cleanExit);
69 void serverDisconnected(
bool clean);
70 void socketConnected();
71 void emitServerError(
const QString& errorStr);
77 QStringList stelPropFilter;
80 SyncRemotePeer* server;
82 QVector<SyncMessageHandler*> handlerList;
87 Q_DECLARE_OPERATORS_FOR_FLAGS(SyncClient::SyncOptions)
A client which can connect to a SyncServer to receive state changes, and apply them.
SyncOption
Bitflag-enum which determines the message types the client instance reacts to, and other boolean opti...
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...