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