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 Namespace Reference

Enumerations

enum class  Type {
  deviceType , manufacture , brand , marketName ,
  productSeries , productModel , softwareModel , hardwareModel ,
  hardwareProfile , serial , bootloaderVersion , abiList ,
  securityPatchTag , displayVersion , incrementalVersion , osReleaseType ,
  osFullName , majorVersion , seniorVersion , featureVersion ,
  buildVersion , sdkApiVersion , firstApiVersion , versionId ,
  buildType , buildUser , buildHost , buildTime ,
  buildRootHash , udid , distributionOSName , distributionOSVersion ,
  distributionOSApiVersion , distributionOSReleaseType
}
enum class  RecognizedDeviceType { _2in1 , tablet , phone }

Functions

void init (QMap< Type, QVariant > devinfo)
QVariant getProperty (Type prop)
QOhosOptional< RecognizedDeviceTypetryGetRecognizedDeviceType ()
bool isTablet ()
bool is2in1 ()
bool isPhone ()
int sdkApiVersion ()
bool isCurrentDeviceSupported ()

Variables

static QMap< Type, QVariants_deviceInfo = {}

Enumeration Type Documentation

◆ RecognizedDeviceType

Enumerator
_2in1 
tablet 
phone 

Definition at line 63 of file qohosdeviceinfo_p.h.

◆ Type

enum class QOhosDeviceInfo::Type
strong
Enumerator
deviceType 
manufacture 
brand 
marketName 
productSeries 
productModel 
softwareModel 
hardwareModel 
hardwareProfile 
serial 
bootloaderVersion 
abiList 
securityPatchTag 
displayVersion 
incrementalVersion 
osReleaseType 
osFullName 
majorVersion 
seniorVersion 
featureVersion 
buildVersion 
sdkApiVersion 
firstApiVersion 
versionId 
buildType 
buildUser 
buildHost 
buildTime 
buildRootHash 
udid 
distributionOSName 
distributionOSVersion 
distributionOSApiVersion 
distributionOSReleaseType 

Definition at line 26 of file qohosdeviceinfo_p.h.

Function Documentation

◆ getProperty()

QVariant QOhosDeviceInfo::getProperty ( Type prop)

Definition at line 33 of file qohosdeviceinfo.cpp.

◆ init()

void QOhosDeviceInfo::init ( QMap< Type, QVariant > devinfo)

Definition at line 28 of file qohosdeviceinfo.cpp.

References s_deviceInfo.

◆ is2in1()

bool QOhosDeviceInfo::is2in1 ( )

Definition at line 65 of file qohosdeviceinfo.cpp.

Referenced by QT_BEGIN_NAMESPACE::makeWindowPcModeEnabledSupplier(), queryQOhosRuntimeDeviceAndMode(), QOhosWindowProxy::setWindowLimits(), and QOhosWindowProxy::setWindowShadowRadius().

Here is the caller graph for this function:

◆ isCurrentDeviceSupported()

bool QOhosDeviceInfo::isCurrentDeviceSupported ( )

Definition at line 80 of file qohosdeviceinfo.cpp.

◆ isPhone()

bool QOhosDeviceInfo::isPhone ( )

Definition at line 70 of file qohosdeviceinfo.cpp.

Referenced by QOhosView::handleWindowFlagsChange(), isHandheldDeviceType(), QOhosView::recover(), QOhosView::setFullScreen(), and QOhosView::showImmediate().

Here is the caller graph for this function:

◆ isTablet()

bool QOhosDeviceInfo::isTablet ( )

Definition at line 60 of file qohosdeviceinfo.cpp.

Referenced by isHandheldDeviceType(), and QOhosWindowProxy::setWindowShadowRadius().

Here is the caller graph for this function:

◆ sdkApiVersion()

int QOhosDeviceInfo::sdkApiVersion ( )

Definition at line 75 of file qohosdeviceinfo.cpp.

◆ tryGetRecognizedDeviceType()

QOhosOptional< RecognizedDeviceType > QOhosDeviceInfo::tryGetRecognizedDeviceType ( )

Definition at line 43 of file qohosdeviceinfo.cpp.

References _2in1, makeEmptyQOhosOptional(), phone, and tablet.

Here is the call graph for this function:

Variable Documentation

◆ s_deviceInfo

QMap< Type, QVariant > QOhosDeviceInfo::s_deviceInfo = {}
static

Definition at line 26 of file qohosdeviceinfo.cpp.

Referenced by init().