aboutsummaryrefslogtreecommitdiff
path: root/lib/quotient_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/quotient_common.h')
-rw-r--r--lib/quotient_common.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/quotient_common.h b/lib/quotient_common.h
new file mode 100644
index 00000000..bb05af05
--- /dev/null
+++ b/lib/quotient_common.h
@@ -0,0 +1,29 @@
+#pragma once
+
+#include <qobjectdefs.h>
+
+namespace Quotient {
+Q_NAMESPACE
+
+/** 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)
+
+enum UriResolveResult : short {
+ StillResolving = -1,
+ UriResolved = 0,
+ CouldNotResolve,
+ IncorrectAction,
+ InvalidUri,
+ NoAccount
+};
+Q_ENUM_NS(UriResolveResult)
+
+} // namespace Quotient
+/// \deprecated Use namespace Quotient instead
+namespace QMatrixClient = Quotient;