#ifndef SERVERAGENT_H #define SERVERAGENT_H #include "agent.h" class ServerAgent : public Agent { Q_OBJECT public: explicit ServerAgent(QSslSocket *socket, const QDir& local_dir, SyncFlags flags, QObject *parent = 0); protected: void handleMessage(MessageType msg, const QByteArray& data); private: void handleClientFileList(const RemoteFileInfoList& list); void handlePullFile(const QString& path); void handlePushedFile(const QByteArray& data); void handlePushedMetadata(const RemoteFileInfoList& list); void handleDeleteFile(const QString& path); }; #endif // SERVERAGENT_H