Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/QtCore/qsysinfo.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // Copyright (C) 2016 Intel Corporation.
0003 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0004 
0005 #ifndef QSYSINFO_H
0006 #define QSYSINFO_H
0007 
0008 #include <QtCore/qtconfigmacros.h>
0009 #include <QtCore/qprocessordetection.h>
0010 #include <QtCore/qtcoreexports.h>
0011 
0012 QT_BEGIN_NAMESPACE
0013 
0014 /*
0015    System information
0016 */
0017 
0018 class QString;
0019 class QByteArray;
0020 
0021 class Q_CORE_EXPORT QSysInfo
0022 {
0023 public:
0024     enum Sizes {
0025         WordSize = (sizeof(void *)<<3)
0026     };
0027 
0028     enum Endian {
0029         BigEndian,
0030         LittleEndian
0031 #  ifdef Q_QDOC
0032         , ByteOrder = BigEndian or LittleEndian
0033 #  elif Q_BYTE_ORDER == Q_BIG_ENDIAN
0034         , ByteOrder = BigEndian
0035 #  elif Q_BYTE_ORDER == Q_LITTLE_ENDIAN
0036         , ByteOrder = LittleEndian
0037 #  else
0038 #    error "Undefined byte order"
0039 #  endif
0040     };
0041 
0042     static QString buildCpuArchitecture();
0043     static QString currentCpuArchitecture();
0044     static QString buildAbi();
0045 
0046     static QString kernelType();
0047     static QString kernelVersion();
0048     static QString productType();
0049     static QString productVersion();
0050     static QString prettyProductName();
0051 
0052     static QString machineHostName();
0053     static QByteArray machineUniqueId();
0054     static QByteArray bootUniqueId();
0055 };
0056 
0057 QT_END_NAMESPACE
0058 #endif // QSYSINFO_H