diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connection.cpp | 7 | ||||
-rw-r--r-- | lib/connection.h | 13 | ||||
-rw-r--r-- | lib/room.cpp | 1 |
3 files changed, 6 insertions, 15 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp index 04cabf47..79d7ae55 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -6,11 +6,12 @@ #include "connection.h" +#include "accountregistry.h" #include "connectiondata.h" +#include "qt_connection_util.h" #include "room.h" #include "settings.h" #include "user.h" -#include "accountregistry.h" // NB: since Qt 6, moc_connection.cpp needs Room and User fully defined #include "moc_connection.cpp" @@ -20,10 +21,8 @@ #include "csapi/joining.h" #include "csapi/leaving.h" #include "csapi/logout.h" -#include "csapi/receipts.h" #include "csapi/room_send.h" #include "csapi/to_device.h" -#include "csapi/versions.h" #include "csapi/voip.h" #include "csapi/wellknown.h" #include "csapi/whoami.h" @@ -2231,8 +2230,8 @@ PicklingMode Connection::picklingMode() const void Connection::saveOlmAccount() { - qCDebug(E2EE) << "Saving olm account"; #ifdef Quotient_E2EE_ENABLED + qCDebug(E2EE) << "Saving olm account"; if (const auto expectedPickle = d->olmAccount->pickle(d->picklingMode)) d->database->setAccountPickle(*expectedPickle); else diff --git a/lib/connection.h b/lib/connection.h index 5fdc525d..39921938 100644 --- a/lib/connection.h +++ b/lib/connection.h @@ -5,13 +5,12 @@ #pragma once -#include "ssosession.h" -#include "qt_connection_util.h" #include "quotient_common.h" +#include "ssosession.h" #include "util.h" -#include "csapi/login.h" #include "csapi/create_room.h" +#include "csapi/login.h" #include "events/accountdataevents.h" @@ -390,20 +389,12 @@ public: /** * Call this before first sync to load from previously saved file. - * - * \param fromFile A local path to read the state from. Uses QUrl - * to be QML-friendly. Empty parameter means saving to the directory - * defined by stateCachePath() / stateCacheDir(). */ Q_INVOKABLE void loadState(); /** * This method saves the current state of rooms (but not messages * in them) to a local cache file, so that it could be loaded by * loadState() on a next run of the client. - * - * \param toFile A local path to save the state to. Uses QUrl to be - * QML-friendly. Empty parameter means saving to the directory - * defined by stateCachePath() / stateCacheDir(). */ Q_INVOKABLE void saveState() const; diff --git a/lib/room.cpp b/lib/room.cpp index 3ee81dcc..ebc6e6af 100644 --- a/lib/room.cpp +++ b/lib/room.cpp @@ -16,6 +16,7 @@ #include "user.h" #include "eventstats.h" #include "roomstateview.h" +#include "qt_connection_util.h" // NB: since Qt 6, moc_room.cpp needs User fully defined #include "moc_room.cpp" |