summary refs log tree commit diff
path: root/src/encryption
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2024-03-16 03:55:57 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2024-03-16 11:50:39 +0100
commitaef9617d1ec7f73a394ed4bb43b4436e27225176 (patch)
treecd34e86e42c22b8ab3f8c93b0098645fcce9acca /src/encryption
parentInclude moc files for a tiny speedup on incremental builds (diff)
downloadnheko-aef9617d1ec7f73a394ed4bb43b4436e27225176.tar.xz
Make a few headers forward declarations
Diffstat (limited to 'src/encryption')
-rw-r--r--src/encryption/DeviceVerificationFlow.cpp1
-rw-r--r--src/encryption/DeviceVerificationFlow.h6
-rw-r--r--src/encryption/VerificationManager.cpp3
3 files changed, 5 insertions, 5 deletions
diff --git a/src/encryption/DeviceVerificationFlow.cpp b/src/encryption/DeviceVerificationFlow.cpp

index ac228669..cb595df0 100644 --- a/src/encryption/DeviceVerificationFlow.cpp +++ b/src/encryption/DeviceVerificationFlow.cpp
@@ -15,6 +15,7 @@ #include "Cache_p.h" #include "ChatPage.h" #include "Logging.h" +#include "MatrixClient.h" #include "Utils.h" #include "timeline/TimelineModel.h" diff --git a/src/encryption/DeviceVerificationFlow.h b/src/encryption/DeviceVerificationFlow.h
index 6f8f413e..f78f0dbd 100644 --- a/src/encryption/DeviceVerificationFlow.h +++ b/src/encryption/DeviceVerificationFlow.h
@@ -5,13 +5,11 @@ #pragma once #include <QObject> +#include <QQmlEngine> -#include <mtx/responses/crypto.hpp> #include <mtxclient/crypto/client.hpp> #include "CacheCryptoStructs.h" -#include "Logging.h" -#include "MatrixClient.h" class QTimer; class TimelineModel; @@ -152,8 +150,6 @@ public: bool isSelfVerification() const; bool isMultiDeviceVerification() const { return deviceIds.size() > 1; } - void callback_fn(const UserKeyCache &res, mtx::http::RequestErr err, std::string user_id); - public slots: //! unverifies a device void unverify(); diff --git a/src/encryption/VerificationManager.cpp b/src/encryption/VerificationManager.cpp
index 985bd619..2b5b7f20 100644 --- a/src/encryption/VerificationManager.cpp +++ b/src/encryption/VerificationManager.cpp
@@ -9,6 +9,9 @@ #include "Cache.h" #include "ChatPage.h" #include "DeviceVerificationFlow.h" +#include "Logging.h" +#include "timeline/RoomlistModel.h" +#include "timeline/TimelineModel.h" #include "timeline/TimelineViewManager.h" VerificationManager::VerificationManager(TimelineViewManager *o)