SyncClientHandlers.hpp   SyncClientHandlers.hpp 
skipping to change at line 25 skipping to change at line 25
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#ifndef SYNCCLIENTHANDLERS_HPP_ #ifndef SYNCCLIENTHANDLERS_HPP_
#define SYNCCLIENTHANDLERS_HPP_ #define SYNCCLIENTHANDLERS_HPP_
#include "SyncProtocol.hpp" #include "SyncProtocol.hpp"
#include <QRegularExpression>
class SyncClient; class SyncClient;
class StelCore; class StelCore;
class ClientHandler : public QObject, public SyncMessageHandler class ClientHandler : public QObject, public SyncMessageHandler
{ {
Q_OBJECT Q_OBJECT
Q_INTERFACES(SyncMessageHandler) Q_INTERFACES(SyncMessageHandler)
public: public:
ClientHandler(); ClientHandler();
skipping to change at line 46 skipping to change at line 48
protected: protected:
SyncClient* client; SyncClient* client;
StelCore* core; StelCore* core;
}; };
class ClientErrorHandler : public ClientHandler class ClientErrorHandler : public ClientHandler
{ {
Q_OBJECT Q_OBJECT
public: public:
ClientErrorHandler(SyncClient* client); ClientErrorHandler(SyncClient* client);
bool handleMessage(QDataStream &stream, SyncRemotePeer &peer) Q_DECL _OVERRIDE; bool handleMessage(QDataStream &stream, SyncProtocol::tPayloadSize d ataSize, SyncRemotePeer &peer) Q_DECL_OVERRIDE;
}; };
//! Reacts to Server challenge and challenge OK on the client //! Reacts to Server challenge and challenge OK on the client
class ClientAuthHandler : public ClientHandler class ClientAuthHandler : public ClientHandler
{ {
Q_OBJECT Q_OBJECT
public: public:
ClientAuthHandler(SyncClient* client); ClientAuthHandler(SyncClient* client);
bool handleMessage(QDataStream &stream, SyncRemotePeer &peer) Q_DECL _OVERRIDE; bool handleMessage(QDataStream &stream, SyncProtocol::tPayloadSize d ataSize, SyncRemotePeer &peer) Q_DECL_OVERRIDE;
signals: signals:
void authenticated(); void authenticated();
}; };
class ClientAliveHandler : public SyncMessageHandler class ClientAliveHandler : public SyncMessageHandler
{ {
public: public:
bool handleMessage(QDataStream &stream, SyncRemotePeer &peer) Q_DECL _OVERRIDE; bool handleMessage(QDataStream &stream, SyncProtocol::tPayloadSize d ataSize, SyncRemotePeer &peer) Q_DECL_OVERRIDE;
}; };
class ClientTimeHandler : public ClientHandler class ClientTimeHandler : public ClientHandler
{ {
public: public:
bool handleMessage(QDataStream &stream, SyncRemotePeer &peer) Q_DECL _OVERRIDE; bool handleMessage(QDataStream &stream, SyncProtocol::tPayloadSize d ataSize, SyncRemotePeer &peer) Q_DECL_OVERRIDE;
}; };
class ClientLocationHandler : public ClientHandler class ClientLocationHandler : public ClientHandler
{ {
public: public:
bool handleMessage(QDataStream &stream, SyncRemotePeer &peer) Q_DECL _OVERRIDE; bool handleMessage(QDataStream &stream, SyncProtocol::tPayloadSize d ataSize, SyncRemotePeer &peer) Q_DECL_OVERRIDE;
}; };
class StelObjectMgr; class StelObjectMgr;
class ClientSelectionHandler : public ClientHandler class ClientSelectionHandler : public ClientHandler
{ {
public: public:
ClientSelectionHandler(); ClientSelectionHandler();
bool handleMessage(QDataStream &stream, SyncRemotePeer &peer) Q_DECL _OVERRIDE; bool handleMessage(QDataStream &stream, SyncProtocol::tPayloadSize d ataSize, SyncRemotePeer &peer) Q_DECL_OVERRIDE;
private: private:
StelObjectMgr* objMgr; StelObjectMgr* objMgr;
}; };
class StelPropertyMgr;
class ClientStelPropertyUpdateHandler : public ClientHandler
{
public:
ClientStelPropertyUpdateHandler(bool skipGuiProps, const QStringList
& excludeProps);
bool handleMessage(QDataStream &stream, SyncProtocol::tPayloadSize d
ataSize, SyncRemotePeer &peer) Q_DECL_OVERRIDE;
private:
StelPropertyMgr* propMgr;
QRegularExpression filter;
};
class StelMovementMgr;
class ClientViewHandler : public ClientHandler
{
public:
ClientViewHandler();
bool handleMessage(QDataStream &stream, SyncProtocol::tPayloadSize d
ataSize, SyncRemotePeer &peer) Q_DECL_OVERRIDE;
private:
StelMovementMgr* mvMgr;
};
class ClientFovHandler : public ClientHandler
{
public:
ClientFovHandler();
bool handleMessage(QDataStream &stream, SyncProtocol::tPayloadSize d
ataSize, SyncRemotePeer &peer) Q_DECL_OVERRIDE;
private:
StelMovementMgr* mvMgr;
};
#endif #endif
 End of changes. 9 change blocks. 
7 lines changed or deleted 42 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/