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
qsysinfo.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// Copyright (C) 2016 Intel Corporation.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4// Qt-Security score:significant reason:default
5
6#ifndef QSYSINFO_H
7#define QSYSINFO_H
8
9#include <QtCore/qtconfigmacros.h>
10#include <QtCore/qprocessordetection.h>
11#include <QtCore/qtcoreexports.h>
12
13QT_BEGIN_NAMESPACE
14
15/*
16 System information
17*/
18
19class QString;
20class QByteArray;
21
22class Q_CORE_EXPORT QSysInfo
23{
24public:
25 enum Sizes {
26 WordSize = (sizeof(void *)<<3)
27 };
28
29 enum Endian {
30 BigEndian,
31 LittleEndian
32# ifdef Q_QDOC
33 , ByteOrder = BigEndian or LittleEndian
34# elif Q_BYTE_ORDER == Q_BIG_ENDIAN
35 , ByteOrder = BigEndian
36# elif Q_BYTE_ORDER == Q_LITTLE_ENDIAN
37 , ByteOrder = LittleEndian
38# else
39# error "Undefined byte order"
40# endif
41 };
42
43 static QString buildCpuArchitecture();
44 static QString currentCpuArchitecture();
45 static QString buildAbi();
46
47 static QString kernelType();
48 static QString kernelVersion();
49 static QString productType();
50 static QString productVersion();
51 static QString prettyProductName();
52
53 static QString machineHostName();
54 static QByteArray machineUniqueId();
55 static QByteArray bootUniqueId();
56};
57
58QT_END_NAMESPACE
59#endif // QSYSINFO_H
#define ARCH_PROCESSOR
#define ARCH_FULL
\inmodule QtCore
Definition qsysinfo.h:23
Combined button and popup list for selecting options.
#define __has_include(x)
@ UuidStringLen
static QString unknownText()
Definition qsysinfo.cpp:666