aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/connection.h')
-rw-r--r--lib/connection.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/connection.h b/lib/connection.h
index e8373a10..47d1844e 100644
--- a/lib/connection.h
+++ b/lib/connection.h
@@ -21,6 +21,7 @@
#include "ssosession.h"
#include "joinstate.h"
#include "qt_connection_util.h"
+#include "quotient_common.h"
#include "csapi/login.h"
#include "csapi/create_room.h"
@@ -41,7 +42,6 @@ class Account;
Q_DECLARE_METATYPE(Quotient::GetLoginFlowsJob::LoginFlow)
namespace Quotient {
-Q_NAMESPACE
class Room;
class User;
@@ -114,15 +114,6 @@ static inline user_factory_t defaultUserFactory()
return [](Connection* c, const QString& id) { return new T(id, c); };
}
-/** Enumeration with flags defining the network job running policy
- * So far only background/foreground flags are available.
- *
- * \sa Connection::callApi, Connection::run
- */
-enum RunningPolicy { ForegroundRequest = 0x0, BackgroundRequest = 0x1 };
-
-Q_ENUM_NS(RunningPolicy)
-
// Room ids, rather than room pointers, are used in the direct chat
// map types because the library keeps Invite rooms separate from
// rooms in Join and Leave state; and direct chats in account data