From c3a1946675855b299a2b36550cdf2c2f69d153aa Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Mon, 17 Sep 2012 23:03:03 +0200 Subject: initial import --- distfoldd/serveragent.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 distfoldd/serveragent.h (limited to 'distfoldd/serveragent.h') diff --git a/distfoldd/serveragent.h b/distfoldd/serveragent.h new file mode 100644 index 0000000..c692e60 --- /dev/null +++ b/distfoldd/serveragent.h @@ -0,0 +1,23 @@ +#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 -- cgit v1.2.3