From ca8eb77eb4ce0c5fe7c5e8227fc46c9fe9a627e5 Mon Sep 17 00:00:00 2001 From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com> Date: Mon, 28 Jun 2021 19:09:07 -0400 Subject: [PATCH] swarm: allow exposing the conversation mode through qml Change-Id: I945f42bd43bb939e47f41e4a7a5e3b6f64b19603 --- src/api/conversation.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api/conversation.h b/src/api/conversation.h index dace0784..146dd533 100644 --- a/src/api/conversation.h +++ b/src/api/conversation.h @@ -30,8 +30,11 @@ namespace lrc { namespace api { namespace conversation { +Q_NAMESPACE +Q_CLASSINFO("RegisterEnumClassesUnscoped", "false") enum class Mode { ONE_TO_ONE, ADMIN_INVITES_ONLY, INVITES_ONLY, PUBLIC, NON_SWARM }; +Q_ENUM_NS(Mode) static inline Mode to_mode(const int intMode) -- GitLab