Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qohosplugincore.h
Go to the documentation of this file.
1// Copyright (C) 2026 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QOHOSPLUGINCORE_H
5#define QOHOSPLUGINCORE_H
6
7#include <QtCore/private/qcore_ohos_p.h>
8#include <QtCore/private/qnapi_p.h>
9#include <QtCore/private/qohoscommon_p.h>
10#include <QtCore/qobject.h>
11#include <atomic>
12#include <chrono>
13#include <cstdlib>
14#include <functional>
15#include <map>
16#include <memory>
17#include <optional>
18#include <qohosenums.h>
19#ifndef QT_NO_EXCEPTIONS
20#include <stdexcept>
21#endif
22#include <string>
23#include <type_traits>
24#include <typeinfo>
25#include <utility>
26#include <vector>
27
28QT_BEGIN_NAMESPACE
29
31
32template<typename A, typename B, typename = void>
34
35template<typename A, typename B>
36struct HasEqualityComparatorT<A, B, decltype(void(std::declval<A>() == std::declval<B>()))>
37 : std::true_type {};
38
39template<typename A, typename B>
41
42template<typename>
44
45template<typename T>
46struct IsStdOptional<std::optional<T>> : std::true_type {};
47
48template<typename T>
50
51}
52
53template<typename T>
54using QOhosOptional = std::optional<T>;
55
56template<typename T, typename Func>
57std::enable_if_t<
58 qohosplugincore_h_detail::isStdOptional<QOhosInvokeResult<Func, T>>,
59 QOhosInvokeResult<Func, T>>
60qAndThen(const std::optional<T> &opt, Func &&func);
61
62template<typename T, typename Func>
63std::optional<std::remove_cv_t<QOhosInvokeResult<Func, T>>> qTransform(const std::optional<T> &opt, Func &&func);
64
65template<typename T>
66std::optional<T> makeQOhosOptional(const T &value);
67
68std::nullopt_t makeEmptyQOhosOptional();
69
70namespace QtOhos {
71
73{
74public:
75 static void tagWindowAsClosing(QNapi::Object jsWindow, const char *logContext);
76 static bool isWindowClosing(QNapi::Object jsWindow);
77
78 JsWindowsTracker() = delete;
79};
80
82{
83public:
84 virtual ~QAbilityPeer();
85
86 virtual std::string instanceId() = 0;
87 virtual QNapi::Object uiContext() = 0;
88 virtual QNapi::Object qAbility() = 0;
89 virtual QNapi::Object launchWant() = 0;
92 virtual void forceResolveQWindowDestroyPromiseIfPresent(Napi::Env env) = 0;
93 virtual std::shared_ptr<std::atomic_bool> destroyAllowedFlag() = 0;
94 virtual bool isTerminating() = 0;
95
96 virtual void setQWindow(Napi::Env env, QObjectThreadSafeRef qwindow) = 0;
97
98 virtual void *tryCastWithTypeIdObject(const void *matchTypeIdObject) = 0;
99
100protected:
102};
103
105{
106 std::string name;
109};
110
112{
113public:
114 virtual ~QAbilityEngine();
115
116 virtual QAbilityInfo readAbilityInfo(const QNapi::Object &ability) const = 0;
117
118protected:
120};
121
122class JsState;
123
125{
126public:
127 virtual ~AppFunctions();
128
130 QNapi::Object baseQAbility, QObjectThreadSafeRef qwindow,
131 QNapi::Object optStartOptions,
132 std::function<void(JsState &, std::shared_ptr<QAbilityPeer>)> startupNotifyFunc) = 0;
133
134 virtual void startAppProcess(
135 QNapi::Object baseQAbility, const std::string &processId, QNapi::Object want,
136 QNapi::Object optStartOptions, std::function<void(JsState &)> continueFunc) = 0;
137
138 virtual void startNoUiChildProcess(JsState &jsState, const std::string &libraryName, const std::vector<std::string> &args) = 0;
139
140 virtual void tagWidgetOrWindowAsFloatWindow(QObject *widgetOrWindow, bool floatWindowEnabled) = 0;
141};
142
148
149class JsState : public QOhosJsState
150{
151public:
152 JsState(const JsState &) = delete;
153 JsState &operator=(const JsState &) = delete;
154
156
158
159 virtual std::shared_ptr<QAbilityPeer> defaultQAbilityPeer() = 0;
160 virtual std::shared_ptr<QAbilityPeer> tryGetQAbilityPeerByInstanceId(const std::string &instanceId) = 0;
161 virtual std::shared_ptr<QAbilityPeer> tryGetQAbilityPeerByInstance(QNapi::Object qAbility) = 0;
162 virtual std::shared_ptr<QAbilityPeer> tryGetQAbilityPeerByQWindow(QObjectThreadSafeRef qwindow) = 0;
163
164 virtual void visitEachQAbilityPeer(const std::function<void(std::shared_ptr<QAbilityPeer>)> &visitor) = 0;
165
167 std::shared_ptr<QAbilityPeer> baseQAbilityPeer, QObjectThreadSafeRef qwindow,
168 QNapi::Object optStartOptions,
169 std::function<void(JsState &, std::shared_ptr<QAbilityPeer>)> startupNotifyFunc) = 0;
170
171 virtual QtRunMode qtRunMode() = 0;
172
173 template<typename T>
175
176 template<typename T>
178
179protected:
181
182private:
184 const std::type_info &objectTypeInfo, QOhosSupplier<std::shared_ptr<void>> objectFactory) = 0;
185
186 virtual QNapi::Symbol getJsSymbolForType(const std::type_info &typeInfo) = 0;
187};
188
190
192{
193public:
194 static std::shared_ptr<QUiAbilityPeer> tryCastFromQAbilityPeerOrNull(std::shared_ptr<QAbilityPeer> qAbilityPeer);
195
196 ~QUiAbilityPeer() override;
197
198 virtual QNapi::Object launchParam() = 0;
199
200 virtual QNapi::Object windowStage() = 0;
201 virtual QNapi::Object window() = 0;
202
204 std::function<void(JsState &, QNapi::Object, QOhosConsumer<JsState &, QOhosAbilityOnContinueResult>)> requestsHandler) = 0;
205
206protected:
208
209private:
210 static const nullptr_t typeIdObject;
211
212 void *tryCastWithTypeIdObject(const void *matchTypeIdObject) final;
213};
214
216{
217public:
219
220 JsState &jsState() const;
221};
222
223// this function should be called once from JS thread at some point during startup
227
228// this function should be called from JS thread for each UIAbility when it's ready
229void addJsQAbilityPeer(std::shared_ptr<QAbilityPeer> qAbilityPeer);
230
231// this function should be called from JS thread when WindowStage of UIAbility is destroyed
232void removeMatchingJsQAbilityPeer(QNapi::Object qAbility);
233
234// this function should be called from JS thread when new Want object is received
235void dispatchNewWant(QNapi::Object want, QNapi::Object launchParam);
236
237// invokes the task inside the JS thread, can be called from Qt thread at any time
238void invokeInJsThread(std::function<void(JsState &)> task);
239
240// Invokes the task inside the JS thread and blocks the caller's thread until
241// the "continue" function (std::function<void()>, passed as second argument to
242// the task) is called on the JS side.
243// It can be called from the Qt thread at any time, calling it from the JS
244// thread is illegal.
246 std::function<void(JsState &, QOhosTaskPromise<>)> &&task,
247 std::string callerContextName = {});
248
249// Runs the task inside the JS thread and waits until its execution ends.
250// When called from the JS thread, it calls the task directly. For other threads
251// it behaves like a wrapper around the invokeInJsThreadAndWaitForContinue().
253 const std::function<void(JsState &)> &task,
254 std::string callerContextName = {});
255
256template<typename Func>
257auto evalInJsThread(Func &&func, std::string callerContextName = {}) -> decltype(func(std::declval<JsState &>()));
258
259template<typename T>
260T evalInJsThreadWithConsumer(std::function<void(QtOhos::JsState &, std::function<void(T)>)> evalFunc);
261
262template<typename T>
264 std::function<void(QtOhos::JsState &, QOhosTaskPromise<T>)> evalFunc,
265 std::string callerContextName = {});
266
267// Invokes the task inside the Qt thread and blocks the caller's thread until either:
268// - the "continue" function (std::function<void()>, passed as second argument to
269// the task) is called on the Qt side and returns,
270// - timeout occurs (we don't receive response from the finished task within the
271// specified time limit),
272// - deadlock is detected (both Qt and JS thread use synchronous calls at the same
273// time).
274// It can be called from the JS thread. Calling it from the Qt thread is illegal.
275//
276// Returns true iff the caller receives confirmation about finishing the task within
277// the time limit.
278//
279// Note:
280// If the function returns false then:
281// - either the task wasn't started at all (timeout or deadlock)
282// - or the task was still running (and may be still running!) in the Qt thread
283// after reaching the timeout.
285 std::function<void(std::function<void()>)> &&task,
286 std::chrono::nanoseconds timeout);
287
288template<typename T>
290{
291 auto *objectPtr = reinterpret_cast<T *>(
292 getAttachedObjectWithLazyCreate(typeid(T), &std::make_shared<T>));
293 return *objectPtr;
294}
295
296template<typename T>
298{
299 return getJsSymbolForType(typeid(T));
300}
301
302template<typename Func>
303auto evalInJsThread(Func &&func, std::string callerContextName) -> decltype(func(std::declval<JsState &>()))
304{
305 Q_UNUSED(callerContextName);
306 return QOhosJsThreadGateway::eval(
307 [&func](QOhosJsState &jsState) {
308 return func(static_cast<JsState &>(jsState));
309 });
310}
311
312template<typename T>
313T evalInJsThreadWithConsumer(std::function<void(QtOhos::JsState &, std::function<void(T)>)> evalFunc)
314{
315 return QOhosJsThreadGateway::evalWithConsumer<T>(
316 [evalFunc = std::move(evalFunc)](QOhosJsState &jsState, std::function<void(T)> consumer) {
317 evalFunc(static_cast<JsState &>(jsState), std::move(consumer));
318 });
319}
320
321template<typename T>
323 std::function<void(QtOhos::JsState &, QOhosTaskPromise<T>)> evalFunc,
324 std::string callerContextName)
325{
326 return evalInJsThreadWithConsumer<T>(
327 [evalFunc = std::move(evalFunc), callerContextName](QtOhos::JsState &jsState, std::function<void(T)> consumer) {
328 evalFunc(jsState, QOhosTaskPromise<T>(std::move(consumer), {}, callerContextName));
329 });
330}
331
332}
333
334template<typename T, typename Func>
335std::enable_if_t<
336 qohosplugincore_h_detail::isStdOptional<QOhosInvokeResult<Func, T>>,
337 QOhosInvokeResult<Func, T>>
338qAndThen(const std::optional<T> &opt, Func &&func)
339{
340 return opt.has_value() ? func(*opt) : QOhosInvokeResult<Func, T>();
341}
342
343template<typename T, typename Func>
344std::optional<std::remove_cv_t<QOhosInvokeResult<Func, T>>> qTransform(const std::optional<T> &opt, Func &&func)
345{
346 using TransformedT = std::remove_cv_t<QOhosInvokeResult<Func, T>>;
347 return opt.has_value()
348 ? std::optional<TransformedT>(func(*opt))
349 : std::optional<TransformedT>();
350}
351
352template<typename T>
353std::optional<T> makeQOhosOptional(const T &value)
354{
355 return std::optional<T>(value);
356}
357
358inline std::nullopt_t makeEmptyQOhosOptional()
359{
360 return std::nullopt;
361}
362
363QT_END_NAMESPACE
364
365#endif
QNapi::Object jsObject()
Definition window.cpp:90
JsWindowRef(JsWindowRef &&)=delete
JsWindowRef(std::string owningQAbilityInstanceId, JsWindowId windowId, QNapi::Object jsWindow, QtOhos::QObjectThreadSafeRef owningQWindowRef)
Definition window.cpp:45
bool isFocused() const
Definition window.cpp:68
JsWindowRef(const JsWindowRef &)=delete
QtOhos::QObjectThreadSafeRef owningQWindowRef() const
Definition window.cpp:85
JsWindowRef & operator=(JsWindowRef &&)=delete
Result eval(const std::string &expr, const std::vector< QNapi::ValueWrapper > &exprArgs={}) const
Definition window.h:69
bool isWindowShown() const
Definition window.cpp:55
JsWindowId id() const
Definition window.cpp:80
JsWindowRef & operator=(const JsWindowRef &)=delete
const std::string & owningQAbilityInstanceId() const
Definition window.cpp:75
QNapi::Promise evalToPromiseOrRejectOnThrow(const std::string &expr, const std::vector< QNapi::ValueWrapper > &exprArgs={}) const
Definition window.h:74
virtual void startQAbilityInstance(QNapi::Object baseQAbility, QObjectThreadSafeRef qwindow, QNapi::Object optStartOptions, std::function< void(JsState &, std::shared_ptr< QAbilityPeer >)> startupNotifyFunc)=0
virtual void tagWidgetOrWindowAsFloatWindow(QObject *widgetOrWindow, bool floatWindowEnabled)=0
virtual void startAppProcess(QNapi::Object baseQAbility, const std::string &processId, QNapi::Object want, QNapi::Object optStartOptions, std::function< void(JsState &)> continueFunc)=0
virtual void startNoUiChildProcess(JsState &jsState, const std::string &libraryName, const std::vector< std::string > &args)=0
JsState & jsState() const
JsState & operator=(const JsState &)=delete
virtual QtRunMode qtRunMode()=0
JsState(const JsState &)=delete
virtual std::shared_ptr< QAbilityPeer > tryGetQAbilityPeerByInstanceId(const std::string &instanceId)=0
virtual void * getAttachedObjectWithLazyCreate(const std::type_info &objectTypeInfo, QOhosSupplier< std::shared_ptr< void > > objectFactory)=0
~JsState() override
virtual std::shared_ptr< QAbilityPeer > tryGetQAbilityPeerByQWindow(QObjectThreadSafeRef qwindow)=0
virtual void visitEachQAbilityPeer(const std::function< void(std::shared_ptr< QAbilityPeer >)> &visitor)=0
QNapi::Symbol getJsSymbolForType()
virtual std::shared_ptr< QAbilityPeer > defaultQAbilityPeer()=0
virtual std::shared_ptr< QAbilityPeer > tryGetQAbilityPeerByInstance(QNapi::Object qAbility)=0
std::enable_if_t< std::is_default_constructible< T >::value, T > & getAttachedObjectWithLazyCreate()
virtual QNapi::Symbol getJsSymbolForType(const std::type_info &typeInfo)=0
virtual void startNewQAbilityInstance(std::shared_ptr< QAbilityPeer > baseQAbilityPeer, QObjectThreadSafeRef qwindow, QNapi::Object optStartOptions, std::function< void(JsState &, std::shared_ptr< QAbilityPeer >)> startupNotifyFunc)=0
static void tagWindowAsClosing(QNapi::Object jsWindow, const char *logContext)
static bool isWindowClosing(QNapi::Object jsWindow)
virtual QAbilityInfo readAbilityInfo(const QNapi::Object &ability) const =0
virtual QOhosOptional< QNapi::Promise > qWindowDestroyPromise()=0
virtual std::string instanceId()=0
virtual QObjectThreadSafeRef qWindowRef()=0
virtual QNapi::Object launchWant()=0
virtual bool isTerminating()=0
virtual void setQWindow(Napi::Env env, QObjectThreadSafeRef qwindow)=0
virtual void * tryCastWithTypeIdObject(const void *matchTypeIdObject)=0
virtual std::shared_ptr< std::atomic_bool > destroyAllowedFlag()=0
virtual QNapi::Object qAbility()=0
virtual QNapi::Object uiContext()=0
virtual void forceResolveQWindowDestroyPromiseIfPresent(Napi::Env env)=0
virtual void setOnContinueRequestsHandler(std::function< void(JsState &, QNapi::Object, QOhosConsumer< JsState &, QOhosAbilityOnContinueResult >)> requestsHandler)=0
virtual QNapi::Object launchParam()=0
virtual QNapi::Object windowStage()=0
void * tryCastWithTypeIdObject(const void *matchTypeIdObject) final
static std::shared_ptr< QUiAbilityPeer > tryCastFromQAbilityPeerOrNull(std::shared_ptr< QAbilityPeer > qAbilityPeer)
~QUiAbilityPeer() override
virtual QNapi::Object window()=0
std::optional< WindowProperties > tryGetWindowProperties(JsWindowId jsWindowId)
Definition window.cpp:27
Combined button and popup list for selecting options.
void invokeInJsThread(std::function< void(JsState &)> task)
void dispatchNewWant(QNapi::Object want, QNapi::Object launchParam)
void removeMatchingJsQAbilityPeer(QNapi::Object qAbility)
T evalInJsThreadWithPromise(std::function< void(QtOhos::JsState &, QOhosTaskPromise< T >)> evalFunc, std::string callerContextName={})
T evalInJsThreadWithConsumer(std::function< void(QtOhos::JsState &, std::function< void(T)>)> evalFunc)
void runInJsThreadAndWait(const std::function< void(JsState &)> &task, std::string callerContextName={})
void initJsThreadState(napi_env env, std::map< std::string, QNapi::Reference< QNapi::Function > > &&jsModulesFactories, std::shared_ptr< AppFunctions > appFunctions, QtRunMode qtRunMode)
Q_REQUIRED_RESULT bool tryInvokeInQtThreadAndTryWaitForContinue(std::function< void(std::function< void()>)> &&task, std::chrono::nanoseconds timeout)
void invokeInJsThreadAndWaitForContinue(std::function< void(JsState &, QOhosTaskPromise<>)> &&task, std::string callerContextName={})
auto evalInJsThread(Func &&func, std::string callerContextName={}) -> decltype(func(std::declval< JsState & >()))
enums::ohos::app::ability::AbilityConstant::OnContinueResult QOhosAbilityOnContinueResult
void addJsQAbilityPeer(std::shared_ptr< QAbilityPeer > qAbilityPeer)
constexpr bool hasEqualityComparator
QT_END_NAMESPACE Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::kit::ShareKit::systemShare::SelectionMode))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::inputMethod::TextInputType))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::kit::ShareKit::systemShare::ShareAbilityType))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::inputMethod::RequestKeyboardReason))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::window::AvoidAreaType))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::bundle::bundleManager::SupportWindowMode))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::multimodalInput::pointer::PointerStyle))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::app::ability::AbilityConstant::WindowMode))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::app::ability::contextConstant::ProcessMode))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::display::DisplaySourceMode))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::window::AnimationType))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::kit::ShareKit::systemShare::SharePreviewMode))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::file::picker::DocumentSelectMode))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::app::ability::contextConstant::StartupVisibility))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::app::ability::wantConstant::Flags))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::display::Orientation))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::abilityAccessCtrl::PermissionStatus))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::window::RectChangeReason))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::window::ModalityType))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::inputMethod::Direction))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::window::WindowStatusType))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::app::ability::AbilityConstant::OnContinueResult))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::app::ability::ConfigurationConstant::ColorMode))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::window::WindowEventType))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::window::MaximizePresentation))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::inputMethod::EnterKeyType))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::app::ability::AbilityConstant::LaunchReason))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::app::ability::AbilityConstant::ContinueState))
Q_DECLARE_METATYPE(QT_PREPEND_NAMESPACE(QtOhos::enums::ohos::notificationManager::ContentType))
std::optional< std::remove_cv_t< QOhosInvokeResult< Func, T > > > qTransform(const std::optional< T > &opt, Func &&func)
std::nullopt_t makeEmptyQOhosOptional()
std::optional< T > QOhosOptional
std::optional< T > makeQOhosOptional(const T &value)
std::optional< QOhosDisplayInfo::JsDisplayId > displayId
Definition window.h:29
bool isDisplayMainOrExtended() const
std::optional< DisplaySourceMode > sourceMode
QSizeF physicalSize() const
QtOhos::enums::ohos::display::Orientation JsDisplayOrientation
QRect displayGeometryPixels() const
std::optional< QPoint > topLeftOffsetPixels
static QOhosDisplayInfo makeFromOhosDisplayObject(QtOhos::JsState &jsState, QNapi::Object displayObject)
std::optional< JsDisplayOrientation > orientation
QtOhos::enums::ohos::display::DisplaySourceMode DisplaySourceMode
static std::optional< QNapi::Object > tryGetDisplayById(QtOhos::JsState &jsState, QOhosDisplayInfo::JsDisplayId displayId)
bool shouldIgnoreDisplay() const
enums::kit::ShareKit::systemShare::SelectionMode Enum
static constexpr std::array< std::pair< Enum, const char * >, 2 > enumeratorsNames
static constexpr std::array< std::pair< Enum, const char * >, 5 > enumeratorsNames
enums::kit::ShareKit::systemShare::ShareAbilityType Enum
enums::kit::ShareKit::systemShare::SharePreviewMode Enum
static constexpr std::array< std::pair< Enum, const char * >, 2 > enumeratorsNames
static constexpr std::array< std::pair< Enum, const char * >, 5 > enumeratorsNames
Definition qohosenums.h:444
enums::ohos::abilityAccessCtrl::PermissionStatus Enum
Definition qohosenums.h:442
static constexpr std::array< std::pair< Enum, const char * >, 2 > enumeratorsNames
enums::ohos::app::ability::AbilityConstant::ContinueState Enum
static constexpr std::array< std::pair< Enum, const char * >, 10 > enumeratorsNames
enums::ohos::app::ability::AbilityConstant::LaunchReason Enum
static constexpr std::array< std::pair< Enum, const char * >, 3 > enumeratorsNames
enums::ohos::app::ability::AbilityConstant::OnContinueResult Enum
static constexpr std::array< std::pair< Enum, const char * >, 3 > enumeratorsNames
enums::ohos::app::ability::AbilityConstant::WindowMode Enum
static constexpr std::array< std::pair< Enum, const char * >, 3 > enumeratorsNames
enums::ohos::app::ability::ConfigurationConstant::ColorMode Enum
static constexpr std::array< std::pair< Enum, const char * >, 3 > enumeratorsNames
enums::ohos::app::ability::contextConstant::ProcessMode Enum
enums::ohos::app::ability::contextConstant::StartupVisibility Enum
static constexpr std::array< std::pair< Enum, const char * >, 2 > enumeratorsNames
static constexpr std::array< std::pair< Enum, const char * >, 6 > enumeratorsNames
Definition qohosenums.h:547
enums::ohos::app::ability::wantConstant::Flags Enum
Definition qohosenums.h:545
static constexpr std::array< std::pair< Enum, const char * >, 3 > enumeratorsNames
enums::ohos::bundle::bundleManager::SupportWindowMode Enum
static constexpr std::array< std::pair< Enum, const char * >, 5 > enumeratorsNames
Definition qohosenums.h:574
static constexpr std::array< std::pair< Enum, const char * >, 4 > enumeratorsNames
Definition qohosenums.h:588
static constexpr std::array< std::pair< Enum, const char * >, 3 > enumeratorsNames
Definition qohosenums.h:601
enums::ohos::file::picker::DocumentSelectMode Enum
Definition qohosenums.h:599
static constexpr std::array< std::pair< Enum, const char * >, 4 > enumeratorsNames
Definition qohosenums.h:613
static constexpr std::array< std::pair< Enum, const char * >, 9 > enumeratorsNames
Definition qohosenums.h:626
static constexpr std::array< std::pair< Enum, const char * >, 4 > enumeratorsNames
Definition qohosenums.h:644
enums::ohos::inputMethod::RequestKeyboardReason Enum
Definition qohosenums.h:642
static constexpr std::array< std::pair< Enum, const char * >, 15 > enumeratorsNames
Definition qohosenums.h:657
enums::ohos::multimodalInput::pointer::PointerStyle Enum
Definition qohosenums.h:679
static constexpr std::array< std::pair< Enum, const char * >, 53 > enumeratorsNames
Definition qohosenums.h:681
static constexpr std::array< std::pair< Enum, const char * >, 5 > enumeratorsNames
Definition qohosenums.h:759
static constexpr std::array< std::pair< Enum, const char * >, 7 > enumeratorsNames
Definition qohosenums.h:773
enums::ohos::notificationManager::ContentType Enum
Definition qohosenums.h:741
static constexpr std::array< std::pair< Enum, const char * >, 7 > enumeratorsNames
Definition qohosenums.h:743
static constexpr std::array< std::pair< Enum, const char * >, 1 > enumeratorsNames
static constexpr std::array< std::pair< Enum, const char * >, 5 > enumeratorsNames
Definition qohosenums.h:799
static constexpr std::array< std::pair< Enum, const char * >, 4 > enumeratorsNames
Definition qohosenums.h:813
static constexpr std::array< std::pair< Enum, const char * >, 2 > enumeratorsNames
Definition qohosenums.h:826
static constexpr std::array< std::pair< Enum, const char * >, 7 > enumeratorsNames
Definition qohosenums.h:837
static constexpr std::array< std::pair< Enum, const char * >, 5 > enumeratorsNames
Definition qohosenums.h:853
static constexpr std::array< std::pair< Enum, const char * >, 6 > enumeratorsNames
Definition qohosenums.h:867