aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/connection.h')
-rw-r--r--lib/connection.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/connection.h b/lib/connection.h
index 05a3bb7f..6729b23d 100644
--- a/lib/connection.h
+++ b/lib/connection.h
@@ -21,10 +21,6 @@
#include <functional>
-namespace QtOlm {
-class Account;
-}
-
Q_DECLARE_METATYPE(Quotient::GetLoginFlowsJob::LoginFlow)
namespace Quotient {
@@ -48,6 +44,8 @@ class SendToDeviceJob;
class SendMessageJob;
class LeaveRoomJob;
+class QOlmAccount;
+
using LoginFlow = GetLoginFlowsJob::LoginFlow;
/// Predefined login flows
@@ -310,7 +308,7 @@ public:
QByteArray accessToken() const;
bool isLoggedIn() const;
#ifdef Quotient_E2EE_ENABLED
- QtOlm::Account* olmAccount() const;
+ QOlmAccount* olmAccount() const;
#endif // Quotient_E2EE_ENABLED
Q_INVOKABLE Quotient::SyncJob* syncJob() const;
Q_INVOKABLE int millisToReconnect() const;