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
24
25namespace QOhosDeviceInfo {
62
68
69void init(QMap<Type, QVariant> devinfo);
71
73bool isTablet();
74bool is2in1();
75bool isPhone();
76int sdkApiVersion();
78
79}
80
81QT_END_NAMESPACE
82
83#endif // QOHOSDEVICEINFO_H
std::enable_if_t< qohosplugincore_h_detail::isQOhosOptional< QOhosInvokeResult< Func, T > >, QOhosInvokeResult< Func, T > > andThen(Func &&func) const
bool isCurrentDeviceSupported()
QVariant getProperty(Type prop)
void init(QMap< Type, QVariant > devinfo)
QOhosOptional< RecognizedDeviceType > tryGetRecognizedDeviceType()
static QMap< Type, QVariant > s_deviceInfo
Combined button and popup list for selecting options.
QOhosOptional< void > makeEmptyQOhosOptional()