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
qqmlsysteminformation_p.h
Go to the documentation of this file.
1
// Copyright (C) 2022 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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QQMLSYSTEMINFORMATION_P_H
6
#
define
QQMLSYSTEMINFORMATION_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtCore
/
qobject
.
h
>
20
#
include
<
QtQmlCore
/
private
/
qqmlcoreglobal_p
.
h
>
21
#
include
<
QtQml
/
qqmlregistration
.
h
>
22
23
QT_BEGIN_NAMESPACE
24
class
Q_QMLCORE_EXPORT
QQmlSystemInformation
:
public
QObject
25
{
26
Q_OBJECT
27
QML_SINGLETON
28
QML_NAMED_ELEMENT(SystemInformation)
29
QML_ADDED_IN_VERSION(6, 4)
30
31
Q_PROPERTY(
int
wordSize READ wordSize CONSTANT FINAL)
32
Q_PROPERTY(QQmlSystemInformation::Endian byteOrder READ byteOrder CONSTANT FINAL)
33
Q_PROPERTY(QString buildCpuArchitecture READ buildCpuArchitecture CONSTANT FINAL)
34
Q_PROPERTY(QString currentCpuArchitecture READ currentCpuArchitecture CONSTANT FINAL)
35
Q_PROPERTY(QString buildAbi READ buildAbi CONSTANT FINAL)
36
Q_PROPERTY(QString kernelType READ kernelType CONSTANT FINAL)
37
Q_PROPERTY(QString kernelVersion READ kernelVersion CONSTANT FINAL)
38
Q_PROPERTY(QString productType READ productType CONSTANT FINAL)
39
Q_PROPERTY(QString productVersion READ productVersion CONSTANT FINAL)
40
Q_PROPERTY(QString prettyProductName READ prettyProductName CONSTANT FINAL)
41
Q_PROPERTY(QString machineHostName READ machineHostName CONSTANT FINAL)
42
Q_PROPERTY(QByteArray machineUniqueId READ machineUniqueId CONSTANT FINAL)
43
Q_PROPERTY(QByteArray bootUniqueId READ bootUniqueId CONSTANT FINAL)
44
45
public
:
46
enum
class
Endian { Big, Little };
47
Q_ENUM(Endian)
48
49
explicit
QQmlSystemInformation(QObject *parent =
nullptr
);
50
51
int
wordSize()
const
;
52
Endian byteOrder()
const
;
53
QString buildCpuArchitecture()
const
;
54
QString currentCpuArchitecture()
const
;
55
QString buildAbi()
const
;
56
QString kernelType()
const
;
57
QString kernelVersion()
const
;
58
QString productType()
const
;
59
QString productVersion()
const
;
60
QString prettyProductName()
const
;
61
QString machineHostName()
const
;
62
QByteArray machineUniqueId()
const
;
63
QByteArray bootUniqueId()
const
;
64
};
65
QT_END_NAMESPACE
66
67
#
endif
// QQMLSYSTEMINFORMATION_P_H
QQmlSystemInformation
Definition
qqmlsysteminformation_p.h:25
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtdeclarative
src
core
qqmlsysteminformation_p.h
Generated on
for Qt by
1.18.0