summaryrefslogtreecommitdiffstats
path: root/examples/webdavcommon
diff options
context:
space:
mode:
Diffstat (limited to 'examples/webdavcommon')
-rw-r--r--examples/webdavcommon/webdav.cpp8
-rw-r--r--examples/webdavcommon/webdav.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/webdavcommon/webdav.cpp b/examples/webdavcommon/webdav.cpp
index e13d121..904e1e2 100644
--- a/examples/webdavcommon/webdav.cpp
+++ b/examples/webdavcommon/webdav.cpp
@@ -97,8 +97,8 @@ WebDavSynchronizer::WebDavSynchronizer(const Sink::ResourceContext &context,
97{ 97{
98 auto config = ResourceConfig::getConfiguration(context.instanceId()); 98 auto config = ResourceConfig::getConfiguration(context.instanceId());
99 99
100 server = QUrl::fromUserInput(config.value("server").toString()); 100 mServer = QUrl::fromUserInput(config.value("server").toString());
101 username = config.value("username").toString(); 101 mUsername = config.value("username").toString();
102} 102}
103 103
104QList<Sink::Synchronizer::SyncRequest> WebDavSynchronizer::getSyncRequests(const Sink::QueryBase &query) 104QList<Sink::Synchronizer::SyncRequest> WebDavSynchronizer::getSyncRequests(const Sink::QueryBase &query)
@@ -322,8 +322,8 @@ KDAV2::DavUrl WebDavSynchronizer::serverUrl() const
322 return {}; 322 return {};
323 } 323 }
324 324
325 auto result = server; 325 auto result = mServer;
326 result.setUserName(username); 326 result.setUserName(mUsername);
327 result.setPassword(secret()); 327 result.setPassword(secret());
328 328
329 return KDAV2::DavUrl{ result, protocol }; 329 return KDAV2::DavUrl{ result, protocol };
diff --git a/examples/webdavcommon/webdav.h b/examples/webdavcommon/webdav.h
index ecb6a81..813da60 100644
--- a/examples/webdavcommon/webdav.h
+++ b/examples/webdavcommon/webdav.h
@@ -112,6 +112,6 @@ private:
112 const QByteArray collectionName; 112 const QByteArray collectionName;
113 const QByteArray itemName; 113 const QByteArray itemName;
114 114
115 QUrl server; 115 QUrl mServer;
116 QString username; 116 QString mUsername;
117}; 117};