Account: Don't hardcode WebDAV path

This commit is contained in:
Markus Goetz 2014-03-21 17:14:04 +01:00
parent cc5fabdab0
commit ff95cbd04b
2 changed files with 4 additions and 1 deletions

View file

@ -68,6 +68,7 @@ Account::Account(AbstractSslErrorHandler *sslErrorHandler, QObject *parent)
, _credentials(0)
, _treatSslErrorsAsFailure(false)
, _state(Account::Disconnected)
, _davPath("remote.php/webdav/")
{
qRegisterMetaType<Account*>("Account*");
}

View file

@ -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/";
};
}