diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-09-30 19:41:17 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-09-30 19:41:17 +0200 |
commit | 15253d1995ea49b114ef5c627e15b661dbd602b2 (patch) | |
tree | 1111441406a0b043f45ab19fe42e567be36d4d09 /distfoldd/clientagent.h | |
parent | c8f89279026af6bb03ef3d66e44e859fb7208925 (diff) | |
download | distfold-15253d1995ea49b114ef5c627e15b661dbd602b2.tar.gz distfold-15253d1995ea49b114ef5c627e15b661dbd602b2.zip |
add some trivial authentication
Diffstat (limited to 'distfoldd/clientagent.h')
-rw-r--r-- | distfoldd/clientagent.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/distfoldd/clientagent.h b/distfoldd/clientagent.h index d54bc69..85cb9dc 100644 --- a/distfoldd/clientagent.h +++ b/distfoldd/clientagent.h @@ -10,10 +10,11 @@ class ClientAgent : public Agent { Q_OBJECT public: - explicit ClientAgent(const QHostAddress& addr, uint port, const QDir& local_dir, SyncFlags flags, QObject *parent = 0); + explicit ClientAgent(const QHostAddress& addr, uint port, const QDir& local_dir, const QString& passwd, SyncFlags flags, QObject *parent = 0); enum State { STATE_HELLO, + STATE_AUTH, STATE_FILE_LIST, STATE_FILE_ACTIONS }; @@ -32,6 +33,7 @@ private: private: State _state; RemoteActionInfoList _pendingActions; + QByteArray _challenge; }; #endif // CLIENTAGENT_H |