mirror of
https://github.com/NohamR/RMHook-Win.git
synced 2026-05-26 12:38:23 +00:00
Add Qt libs and headers
This commit is contained in:
57
paho-mqtt3as-proxy/Qt/include/QtCore/qsysinfo.h
Normal file
57
paho-mqtt3as-proxy/Qt/include/QtCore/qsysinfo.h
Normal file
@@ -0,0 +1,57 @@
|
||||
// Copyright (C) 2016 The Qt Company Ltd.
|
||||
// Copyright (C) 2016 Intel Corporation.
|
||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
#include <QtCore/qglobal.h>
|
||||
|
||||
#ifndef QSYSINFO_H
|
||||
#define QSYSINFO_H
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
/*
|
||||
System information
|
||||
*/
|
||||
|
||||
#ifdef Q_QDOC
|
||||
class QByteArray;
|
||||
#endif
|
||||
class QString;
|
||||
class Q_CORE_EXPORT QSysInfo
|
||||
{
|
||||
public:
|
||||
enum Sizes {
|
||||
WordSize = (sizeof(void *)<<3)
|
||||
};
|
||||
|
||||
enum Endian {
|
||||
BigEndian,
|
||||
LittleEndian
|
||||
# ifdef Q_QDOC
|
||||
, ByteOrder = BigEndian or LittleEndian
|
||||
# elif Q_BYTE_ORDER == Q_BIG_ENDIAN
|
||||
, ByteOrder = BigEndian
|
||||
# elif Q_BYTE_ORDER == Q_LITTLE_ENDIAN
|
||||
, ByteOrder = LittleEndian
|
||||
# else
|
||||
# error "Undefined byte order"
|
||||
# endif
|
||||
};
|
||||
|
||||
static QString buildCpuArchitecture();
|
||||
static QString currentCpuArchitecture();
|
||||
static QString buildAbi();
|
||||
|
||||
static QString kernelType();
|
||||
static QString kernelVersion();
|
||||
static QString productType();
|
||||
static QString productVersion();
|
||||
static QString prettyProductName();
|
||||
|
||||
static QString machineHostName();
|
||||
static QByteArray machineUniqueId();
|
||||
static QByteArray bootUniqueId();
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
#endif // QSYSINFO_H
|
||||
Reference in New Issue
Block a user