delete _am;
}
+QString Account::davPath() const
+{
+ // make sure to have a trailing slash
+ if( !_davPath.endsWith('/') ) {
+ QString dp(_davPath);
+ dp.append('/');
+ return dp;
+ }
+ return _davPath;
+}
+
void Account::setSharedThis(AccountPtr sharedThis)
{
_sharedThis = sharedThis.toWeakRef();
class OWNCLOUDSYNC_EXPORT Account : public QObject {
Q_OBJECT
public:
- QString davPath() const { return _davPath; }
+ /**
+ * @brief The possibly themed dav path for the account. Is has
+ * a trailing slash.
+ * @returns the (themeable) dav path for the account.
+ */
+ QString davPath() const;
void setDavPath(const QString&s) { _davPath = s; }
static AccountPtr create();