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
qohosappbundleinfo.cpp
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
#
include
"qohosappbundleinfo_p.h"
5
6
QT_BEGIN_NAMESPACE
7
8
namespace
QtOhosAppKit
{
9
10
using
namespace
Private
;
11
12
namespace
{
13
14
class
QOhosBundleInfoImpl :
public
BundleInfo
15
{
16
public
:
17
QOhosBundleInfoImpl(
int
versionCode);
18
19
int
versionCode()
const
override;
20
21
private
:
22
int
m_versionCode;
23
};
24
25
QOhosBundleInfoImpl::QOhosBundleInfoImpl(
int
versionCode)
26
: BundleInfo()
27
, m_versionCode(versionCode)
28
{
29
}
30
31
/*!
32
\fn int QtOhosAppKit::BundleInfo::versionCode() const
33
34
Returns application's version code.
35
See \l {https://developer.huawei.com/consumer/en/doc/harmonyos-references/js-apis-bundlemanager-bundleinfo}
36
{BundleInfo's versionCode}
37
*/
38
int
QOhosBundleInfoImpl::versionCode()
const
39
{
40
return
m_versionCode;
41
}
42
43
}
44
45
/*!
46
\class QtOhosAppKit::BundleInfo
47
\inmodule QtOhosAppKit
48
\since 5.12.12
49
\brief The BundleInfo class contains API to provide native application bundle info.
50
51
To learn more about bundle info in HarmonyOS, see
52
\l{https://developer.huawei.com/consumer/en/doc/harmonyos-references/js-apis-bundlemanager-bundleinfo}
53
{Bundle Info}.
54
*/
55
56
BundleInfo
::
BundleInfo
() =
default
;
57
BundleInfo
::~
BundleInfo
() =
default
;
58
59
std
::
shared_ptr
<
BundleInfo
>
Private
::
createBundleInfo
(
int
versionCode)
60
{
61
return
std
::make_shared<QOhosBundleInfoImpl>(versionCode);
62
}
63
64
}
65
66
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QtOhosAppKit::Private
Definition
qohosjsenv_p.h:38
QtOhosAppKit::Private::createBundleInfo
std::shared_ptr< BundleInfo > createBundleInfo(int versionCode)
Definition
qohosappbundleinfo.cpp:59
QtOhosAppKit
Definition
qohosabilitycontext.cpp:33
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtbase
src
plugins
platforms
ohos
ohosappkit
qohosappbundleinfo.cpp
Generated on
for Qt by
1.16.1