diff options
author | Roman Plášil <me@rplasil.name> | 2017-08-23 14:49:06 +0800 |
---|---|---|
committer | Roman Plášil <me@rplasil.name> | 2017-08-23 14:49:06 +0800 |
commit | 456604040ce9cf3c22b726e8ef279a1fe4a85f39 (patch) | |
tree | 1c91e72fdde62c43eead3647f0bb15f3dd4a01cd /connection.h | |
parent | f3d893150f3991db2aed7a890d6156a576ae2e42 (diff) | |
download | libquotient-456604040ce9cf3c22b726e8ef279a1fe4a85f39.tar.gz libquotient-456604040ce9cf3c22b726e8ef279a1fe4a85f39.zip |
Use QUrl for state save file, create directory if it doesn't exist
Diffstat (limited to 'connection.h')
-rw-r--r-- | connection.h | 6 |
1 files changed, 3 insertions, 3 deletions
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. |