[Pkg-owncloud-commits] [owncloud-client] 197/333: Account: Don't hardcode WebDAV path
Sandro Knauß
hefee-guest at moszumanska.debian.org
Thu Apr 17 23:16:52 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit ff95cbd04bd6bd4188fbec9acb19eca277e850ff
Author: Markus Goetz <markus at woboq.com>
Date: Fri Mar 21 17:14:04 2014 +0100
Account: Don't hardcode WebDAV path
---
src/mirall/account.cpp | 1 +
src/mirall/account.h | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/mirall/account.cpp b/src/mirall/account.cpp
index 5cbdc4d..8740527 100644
--- a/src/mirall/account.cpp
+++ b/src/mirall/account.cpp
@@ -68,6 +68,7 @@ Account::Account(AbstractSslErrorHandler *sslErrorHandler, QObject *parent)
, _credentials(0)
, _treatSslErrorsAsFailure(false)
, _state(Account::Disconnected)
+ , _davPath("remote.php/webdav/")
{
qRegisterMetaType<Account*>("Account*");
}
diff --git a/src/mirall/account.h b/src/mirall/account.h
index 6b2f39a..a7bcead 100644
--- a/src/mirall/account.h
+++ b/src/mirall/account.h
@@ -72,7 +72,8 @@ public:
InvalidCredidential /// The credidential are invalids and we are asking for them to the user
};
- static QString davPath() { return "remote.php/webdav/"; }
+ QString davPath() const { return _davPath; }
+ void setDavPath(const QString&s) { _davPath = s; }
Account(AbstractSslErrorHandler *sslErrorHandler = 0, QObject *parent = 0);
~Account();
@@ -157,6 +158,7 @@ private:
bool _treatSslErrorsAsFailure;
int _state;
static QString _configFileName;
+ QString _davPath; // default "remote.php/webdav/";
};
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list