Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qohoscloseeventcontext_p.h
Go to the documentation of this file.
1
// Copyright (C) 2025 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
QOHOSCLOSEEVENTCONTEXT_P_H
5
#
define
QOHOSCLOSEEVENTCONTEXT_P_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#
include
<
QtCore
/
private
/
qohoscommon_p
.
h
>
19
#
include
<
QtCore
/
qcoreevent
.
h
>
20
#
include
<
QtCore
/
qglobal
.
h
>
21
#
include
<
functional
>
22
#
include
<
memory
>
23
24
QT_BEGIN_NAMESPACE
25
26
class
QOhosCloseEventContext
27
{
28
public
:
29
enum
class
CloseRootCause
30
{
31
NotSpecified,
32
OnPrepareToTerminate,
33
WindowStageClose,
34
SubWindowClose,
35
};
36
37
enum
class
CloseResolution
38
{
39
Reject,
40
Close,
41
};
42
43
static
CloseRootCause getCloseRootCauseForEventOrDefault(QEvent *event);
44
static
void
runWithCloseRootCauseSet(CloseRootCause rootCause,
const
std::function<
void
()> &task);
45
static
void
runWithCloseRootCauseAndCloseResolutionConsumerSet(
46
CloseRootCause rootCause, QOhosConsumer<CloseResolution> closeResolutionConsumer,
const
std::function<
void
()> &task);
47
static
void
notifyCloseResolutionFromEventIfValid(QEvent *event);
48
};
49
50
QT_END_NAMESPACE
51
52
#
endif
QArkUi::QOhosDisplayManager
Definition
displaymanager.h:17
QArkUi::QOhosDisplayManager::getRegisteredDisplayInfos
std::vector< QOhosDisplayInfo > getRegisteredDisplayInfos()
Definition
displaymanager.cpp:131
QArkUi::QOhosDisplayManager::create
static std::shared_ptr< QOhosDisplayManager > create(QOhosJsState &jsState, CreateInfo createInfo)
Definition
displaymanager.cpp:125
QArkUi::QOhosDisplayManager::JsDisplayId
QOhosDisplayInfo::JsDisplayId JsDisplayId
Definition
displaymanager.h:19
QArkUi
Definition
displaymanager.cpp:17
QArkUi::mapFromDisplayToGlobal
QPoint mapFromDisplayToGlobal(const QPoint &displayOffset, QOhosDisplayInfo::JsDisplayId jsDisplayId)
Definition
displaymanager.cpp:178
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QtOhos
Definition
qcore_ohos.cpp:59
QtOhos::tryGetCodeFromJsBusinessError
std::optional< std::uint32_t > tryGetCodeFromJsBusinessError(const Napi::Error &error)
Definition
qohosjsutils.cpp:82
QtOhos::runIgnoringJsBusinessError
bool runIgnoringJsBusinessError(QOhosJsState &, std::uint32_t suppressedErrorCode, const char *callerContextName, const std::function< void()> &action)
Definition
qohosjsutils.cpp:106
QtOhos::adaptAsyncCallResultToJsPromise
QNapi::Promise adaptAsyncCallResultToJsPromise(QOhosJsState &jsState, std::function< QNapi::Value(QOhosJsState &, T)> promiseValueFactory, const QOhosConsumer< QOhosJsState &, QOhosConsumer< QOhosJsState &, T > > &asyncCallFunc)
Definition
qohosjsutils.h:64
QtOhos::getOptionalProperty
std::optional< T > getOptionalProperty(const QNapi::Object &object, const std::string &propName)
Definition
qohosjsutils.h:81
QtOhos::makeResolvedPromise
QNapi::Promise makeResolvedPromise(QNapi::Value valueForResolve)
Definition
qohosjsutils.cpp:70
QtOhos::rethrowUnlessJsBusinessErrorIs
void rethrowUnlessJsBusinessErrorIs(const Napi::Error &error, std::uint32_t suppressedErrorCode, const char *callerContextName)
Definition
qohosjsutils.cpp:95
QtOhos::setJsTimeout
int setJsTimeout(QOhosJsState &jsState, std::function< void(const QOhosCallbackInfo &)> timeoutFunc, std::chrono::milliseconds delay)
Definition
qohosjsutils.cpp:56
QtOhos::makeOhosConfigValueDataSource
QOhosSupplier< ConfigValue > makeOhosConfigValueDataSource(std::function< ConfigValue(QOhosJsState &)> initValueSupplier, std::function< ConfigValue(QOhosJsState &, const QNapi::Object &)> valueFetcher, QOhosConsumer< ConfigValue > valueChangedHandler)
Definition
qohosjsutils.h:90
QtOhos::clearJsTimeout
void clearJsTimeout(QOhosJsState &jsState, int timerId)
Definition
qohosjsutils.cpp:65
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
QArkUi::QOhosDisplayManager::CreateInfo
Definition
displaymanager.h:22
QArkUi::QOhosDisplayManager::CreateInfo::displayAvailableAreaChangedCb
QOhosConsumer< QOhosJsState &, JsDisplayId, QRectF > displayAvailableAreaChangedCb
Definition
displaymanager.h:24
QOhosDisplayInfo
Definition
qohosdisplayinfo.h:20
qtbase
src
plugins
platforms
ohos
qohoscloseeventcontext_p.h
Generated on
for Qt by
1.18.0