summaryrefslogtreecommitdiff
path: root/distfoldd/distfolder.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-09-30 19:41:17 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-09-30 19:41:17 +0200
commit15253d1995ea49b114ef5c627e15b661dbd602b2 (patch)
tree1111441406a0b043f45ab19fe42e567be36d4d09 /distfoldd/distfolder.h
parentc8f89279026af6bb03ef3d66e44e859fb7208925 (diff)
downloaddistfold-15253d1995ea49b114ef5c627e15b661dbd602b2.tar.gz
distfold-15253d1995ea49b114ef5c627e15b661dbd602b2.zip
add some trivial authentication
Diffstat (limited to 'distfoldd/distfolder.h')
-rw-r--r--distfoldd/distfolder.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/distfoldd/distfolder.h b/distfoldd/distfolder.h
index ae7a0ea..c3ba57a 100644
--- a/distfoldd/distfolder.h
+++ b/distfoldd/distfolder.h
@@ -14,6 +14,7 @@
class DistFolder : public QObject
{
Q_OBJECT
+ Q_PROPERTY(QString password READ password WRITE setPassword)
Q_PROPERTY(bool readOnlySync READ readOnlySync WRITE setReadOnlySync)
Q_PROPERTY(bool pullMode READ pullMode WRITE setPullMode)
Q_PROPERTY(bool compress READ compress WRITE setCompress)
@@ -21,6 +22,8 @@ class DistFolder : public QObject
public:
explicit DistFolder(const QUuid& uuid, const QString& path, QObject *parent = 0);
+ void setPassword(const QString& passwd);
+ QString password() const;
bool readOnlySync() const;
void setReadOnlySync(bool read_only);
bool pullMode() const;
@@ -50,6 +53,7 @@ private:
Watcher *_watcher;
Server *_server;
Discoverer *_discoverer;
+ QString _password;
Agent::SyncFlags _syncFlags;
int _numAgents;
};