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
qohosdeviceinfo_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
QOHOSDEVICEINFO_H
5
#
define
QOHOSDEVICEINFO_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
/
qmap
.
h
>
20
#
include
<
QtCore
/
qvariant
.
h
>
21
#
include
<
qohosplugincore
.
h
>
22
23
QT_BEGIN_NAMESPACE
24
25
namespace
QOhosDeviceInfo
{
26
enum
class
Type
{
27
deviceType
,
28
manufacture
,
29
brand
,
30
marketName
,
31
productSeries
,
32
productModel
,
33
softwareModel
,
34
hardwareModel
,
35
hardwareProfile
,
36
serial
,
37
bootloaderVersion
,
38
abiList
,
39
securityPatchTag
,
40
displayVersion
,
41
incrementalVersion
,
42
osReleaseType
,
43
osFullName
,
44
majorVersion
,
45
seniorVersion
,
46
featureVersion
,
47
buildVersion
,
48
sdkApiVersion
,
49
firstApiVersion
,
50
versionId
,
51
buildType
,
52
buildUser
,
53
buildHost
,
54
buildTime
,
55
buildRootHash
,
56
udid
,
57
distributionOSName
,
58
distributionOSVersion
,
59
distributionOSApiVersion
,
60
distributionOSReleaseType
,
61
};
62
63
enum
class
RecognizedDeviceType
{
64
_2in1
,
65
tablet
,
66
phone
,
67
};
68
69
void
init
(QMap<Type, QVariant> devinfo);
70
QVariant
getProperty
(
Type
prop);
71
72
QOhosOptional
<
RecognizedDeviceType
>
tryGetRecognizedDeviceType
();
73
bool
isTablet
();
74
bool
is2in1
();
75
bool
isPhone
();
76
int
sdkApiVersion
();
77
bool
isCurrentDeviceSupported
();
78
79
}
80
81
QT_END_NAMESPACE
82
83
#
endif
// QOHOSDEVICEINFO_H
QOhosOptional::andThen
std::enable_if_t< qohosplugincore_h_detail::isQOhosOptional< QOhosInvokeResult< Func, T > >, QOhosInvokeResult< Func, T > > andThen(Func &&func) const
Definition
qohosplugincore.h:630
QOhosDeviceInfo
Definition
qohosdeviceinfo.cpp:9
QOhosDeviceInfo::isCurrentDeviceSupported
bool isCurrentDeviceSupported()
Definition
qohosdeviceinfo.cpp:81
QOhosDeviceInfo::sdkApiVersion
int sdkApiVersion()
Definition
qohosdeviceinfo.cpp:76
QOhosDeviceInfo::getProperty
QVariant getProperty(Type prop)
Definition
qohosdeviceinfo.cpp:34
QOhosDeviceInfo::init
void init(QMap< Type, QVariant > devinfo)
Definition
qohosdeviceinfo.cpp:29
QOhosDeviceInfo::Type
Type
Definition
qohosdeviceinfo_p.h:26
QOhosDeviceInfo::Type::distributionOSName
@ distributionOSName
Definition
qohosdeviceinfo_p.h:57
QOhosDeviceInfo::Type::distributionOSReleaseType
@ distributionOSReleaseType
Definition
qohosdeviceinfo_p.h:60
QOhosDeviceInfo::Type::buildRootHash
@ buildRootHash
Definition
qohosdeviceinfo_p.h:55
QOhosDeviceInfo::Type::buildUser
@ buildUser
Definition
qohosdeviceinfo_p.h:52
QOhosDeviceInfo::Type::displayVersion
@ displayVersion
Definition
qohosdeviceinfo_p.h:40
QOhosDeviceInfo::Type::seniorVersion
@ seniorVersion
Definition
qohosdeviceinfo_p.h:45
QOhosDeviceInfo::Type::firstApiVersion
@ firstApiVersion
Definition
qohosdeviceinfo_p.h:49
QOhosDeviceInfo::Type::osFullName
@ osFullName
Definition
qohosdeviceinfo_p.h:43
QOhosDeviceInfo::Type::buildTime
@ buildTime
Definition
qohosdeviceinfo_p.h:54
QOhosDeviceInfo::Type::deviceType
@ deviceType
Definition
qohosdeviceinfo_p.h:27
QOhosDeviceInfo::Type::sdkApiVersion
@ sdkApiVersion
Definition
qohosdeviceinfo_p.h:48
QOhosDeviceInfo::Type::hardwareProfile
@ hardwareProfile
Definition
qohosdeviceinfo_p.h:35
QOhosDeviceInfo::Type::softwareModel
@ softwareModel
Definition
qohosdeviceinfo_p.h:33
QOhosDeviceInfo::Type::distributionOSApiVersion
@ distributionOSApiVersion
Definition
qohosdeviceinfo_p.h:59
QOhosDeviceInfo::Type::abiList
@ abiList
Definition
qohosdeviceinfo_p.h:38
QOhosDeviceInfo::Type::bootloaderVersion
@ bootloaderVersion
Definition
qohosdeviceinfo_p.h:37
QOhosDeviceInfo::Type::serial
@ serial
Definition
qohosdeviceinfo_p.h:36
QOhosDeviceInfo::Type::versionId
@ versionId
Definition
qohosdeviceinfo_p.h:50
QOhosDeviceInfo::Type::productModel
@ productModel
Definition
qohosdeviceinfo_p.h:32
QOhosDeviceInfo::Type::brand
@ brand
Definition
qohosdeviceinfo_p.h:29
QOhosDeviceInfo::Type::buildVersion
@ buildVersion
Definition
qohosdeviceinfo_p.h:47
QOhosDeviceInfo::Type::productSeries
@ productSeries
Definition
qohosdeviceinfo_p.h:31
QOhosDeviceInfo::Type::osReleaseType
@ osReleaseType
Definition
qohosdeviceinfo_p.h:42
QOhosDeviceInfo::Type::securityPatchTag
@ securityPatchTag
Definition
qohosdeviceinfo_p.h:39
QOhosDeviceInfo::Type::buildType
@ buildType
Definition
qohosdeviceinfo_p.h:51
QOhosDeviceInfo::Type::featureVersion
@ featureVersion
Definition
qohosdeviceinfo_p.h:46
QOhosDeviceInfo::Type::buildHost
@ buildHost
Definition
qohosdeviceinfo_p.h:53
QOhosDeviceInfo::Type::majorVersion
@ majorVersion
Definition
qohosdeviceinfo_p.h:44
QOhosDeviceInfo::Type::distributionOSVersion
@ distributionOSVersion
Definition
qohosdeviceinfo_p.h:58
QOhosDeviceInfo::Type::hardwareModel
@ hardwareModel
Definition
qohosdeviceinfo_p.h:34
QOhosDeviceInfo::Type::udid
@ udid
Definition
qohosdeviceinfo_p.h:56
QOhosDeviceInfo::Type::manufacture
@ manufacture
Definition
qohosdeviceinfo_p.h:28
QOhosDeviceInfo::Type::incrementalVersion
@ incrementalVersion
Definition
qohosdeviceinfo_p.h:41
QOhosDeviceInfo::Type::marketName
@ marketName
Definition
qohosdeviceinfo_p.h:30
QOhosDeviceInfo::tryGetRecognizedDeviceType
QOhosOptional< RecognizedDeviceType > tryGetRecognizedDeviceType()
Definition
qohosdeviceinfo.cpp:44
QOhosDeviceInfo::isPhone
bool isPhone()
Definition
qohosdeviceinfo.cpp:71
QOhosDeviceInfo::RecognizedDeviceType
RecognizedDeviceType
Definition
qohosdeviceinfo_p.h:63
QOhosDeviceInfo::RecognizedDeviceType::_2in1
@ _2in1
Definition
qohosdeviceinfo_p.h:64
QOhosDeviceInfo::RecognizedDeviceType::tablet
@ tablet
Definition
qohosdeviceinfo_p.h:65
QOhosDeviceInfo::RecognizedDeviceType::phone
@ phone
Definition
qohosdeviceinfo_p.h:66
QOhosDeviceInfo::s_deviceInfo
static QMap< Type, QVariant > s_deviceInfo
Definition
qohosdeviceinfo.cpp:27
QOhosDeviceInfo::is2in1
bool is2in1()
Definition
qohosdeviceinfo.cpp:66
QOhosDeviceInfo::isTablet
bool isTablet()
Definition
qohosdeviceinfo.cpp:61
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
makeEmptyQOhosOptional
QOhosOptional< void > makeEmptyQOhosOptional()
Definition
qohosplugincore.h:651
qtbase
src
plugins
platforms
ohos
qohosdeviceinfo_p.h
Generated on
for Qt by
1.16.1