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
qohoswant_p.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
QOHOSWANT_P_H
5
#
define
QOHOSWANT_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
/
qflags
.
h
>
19
#
include
<
QtCore
/
qglobal
.
h
>
20
#
include
<
QtCore
/
qhash
.
h
>
21
#
include
<
QtCore
/
qjsonobject
.
h
>
22
#
include
<
QtCore
/
qlist
.
h
>
23
#
include
<
QtCore
/
qstring
.
h
>
24
#
include
<
QtCore
/
qstringlist
.
h
>
25
#
include
<
QtOhosAppKit
/
private
/
qohossharekit_p
.
h
>
26
#
include
<
QtOhosAppKit
/
private
/
qtohosappkitglobal_p
.
h
>
27
#
include
<
memory
>
28
#
include
<
optional
>
29
30
QT_BEGIN_NAMESPACE
31
32
namespace
QtOhosAppKit
{
33
34
enum
class
WantFlag
{
35
AuthReadUriPermission
= 1 << 0,
36
AuthWriteUriPermission
= 1 << 1,
37
InstallOnDemand
= 1 << 2,
38
};
39
Q_DECLARE_FLAGS
(
WantFlags
,
WantFlag
)
40
Q_DECLARE_OPERATORS_FOR_FLAGS
(
WantFlags
)
41
42
struct
Want
43
{
44
QString
deviceId
;
45
QString
bundleName
;
46
QString
moduleName
;
47
QString
abilityName
;
48
QString
uri
;
49
QString
type
;
50
QString
action
;
51
QStringList
entities
;
52
WantFlags
flags
;
53
QJsonObject
parameters
;
54
QHash
<
QString
,
int
>
fds
;
55
};
56
57
class
Q_OHOSAPPKIT_EXPORT
WantInfo
58
{
59
public
:
60
enum
class
LaunchReason
{
61
Unknown
,
62
StartAbility
,
63
Continuation
,
64
PrepareContinuation
,
65
Preload
,
66
};
67
68
struct
ContactInfo
69
{
70
QString
contactType
;
71
QString
contactId
;
72
};
73
74
virtual
~
WantInfo
();
75
76
virtual
Want
want
()
const
= 0;
77
78
virtual
std
::
optional
<
QList
<
std
::
shared_ptr
<
ShareKit
::
SharedRecord
>>>
tryGetSharedRecordsFromShareKit
()
const
= 0;
79
80
virtual
std
::
optional
<
ContactInfo
>
tryGetContactInfo
()
const
= 0;
81
82
virtual
LaunchReason
launchReason
()
const
= 0;
83
84
protected
:
85
WantInfo
();
86
87
private
:
88
Q_DISABLE_COPY
(
WantInfo
)
89
};
90
91
}
92
93
QT_END_NAMESPACE
94
95
#
endif
QtOhosAppKit::WantInfo
\variable QtOhosAppKit::Want::deviceId
Definition
qohoswant_p.h:58
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QtOhosAppKit
Definition
qohosabilitycontext.cpp:33
QtOhosAppKit::WantFlag
WantFlag
Definition
qohoswant_p.h:34
QtOhosAppKit::WantFlag::InstallOnDemand
@ InstallOnDemand
Definition
qohoswant_p.h:37
QtOhosAppKit::WantFlag::AuthWriteUriPermission
@ AuthWriteUriPermission
Definition
qohoswant_p.h:36
QtOhosAppKit::WantFlag::AuthReadUriPermission
@ AuthReadUriPermission
Definition
qohoswant_p.h:35
qtbase
src
plugins
platforms
ohos
ohosappkit
qohoswant_p.h
Generated on
for Qt by
1.16.1