From 456604040ce9cf3c22b726e8ef279a1fe4a85f39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Pl=C3=A1=C5=A1il?= Date: Wed, 23 Aug 2017 14:49:06 +0800 Subject: Use QUrl for state save file, create directory if it doesn't exist --- connection.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'connection.h') diff --git a/connection.h b/connection.h index 063018f9..5a5ce3ac 100644 --- a/connection.h +++ b/connection.h @@ -39,7 +39,7 @@ namespace QMatrixClient class Connection: public QObject { Q_OBJECT - Q_PROPERTY(QString stateSaveFile READ getStateSaveFile WRITE setStateSaveFile) + Q_PROPERTY(QUrl stateSaveFile READ getStateSaveFile WRITE setStateSaveFile) public: explicit Connection(const QUrl& server, QObject* parent = nullptr); Connection(); @@ -148,8 +148,8 @@ namespace QMatrixClient /** * Returns the path to file for saving state (rooms, presence, ...) */ - QString getStateSaveFile() const; - void setStateSaveFile(const QString &path); + QUrl getStateSaveFile() const; + void setStateSaveFile(const QUrl &path); /** * Completes loading sync data. -- cgit v1.2.3