diff options
Diffstat (limited to 'lib/connection.h')
-rw-r--r-- | lib/connection.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/connection.h b/lib/connection.h index 2ff27ea6..cc2feed8 100644 --- a/lib/connection.h +++ b/lib/connection.h @@ -29,7 +29,6 @@ #include <QtCore/QDir> #include <functional> -#include <memory> namespace QMatrixClient { @@ -96,9 +95,6 @@ namespace QMatrixClient class Connection: public QObject { Q_OBJECT - /** Whether or not the rooms state should be cached locally - * \sa loadState(), saveState() - */ Q_PROPERTY(User* localUser READ user NOTIFY stateChanged) Q_PROPERTY(QString localUserId READ userId NOTIFY stateChanged) Q_PROPERTY(QString deviceId READ deviceId NOTIFY stateChanged) @@ -341,6 +337,9 @@ namespace QMatrixClient */ QDir stateCacheDir() const; + /** Whether or not the rooms state should be cached locally + * \sa loadState(), saveState() + */ bool cacheState() const; void setCacheState(bool newValue); @@ -744,7 +743,7 @@ namespace QMatrixClient private: class Private; - std::unique_ptr<Private> d; + QScopedPointer<Private> d; /** * A single entry for functions that need to check whether the |