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 34 of file qohosdeviceinfo.cpp.

◆ init()

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

Definition at line 29 of file qohosdeviceinfo.cpp.

References s_deviceInfo.

◆ is2in1()

bool QOhosDeviceInfo::is2in1 ( )

◆ isCurrentDeviceSupported()

bool QOhosDeviceInfo::isCurrentDeviceSupported ( )

Definition at line 81 of file qohosdeviceinfo.cpp.

◆ isPhone()

bool QOhosDeviceInfo::isPhone ( )

Definition at line 71 of file qohosdeviceinfo.cpp.

Referenced by isHandheldDeviceType().

Here is the caller graph for this function:

◆ isTablet()

bool QOhosDeviceInfo::isTablet ( )

Definition at line 61 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 76 of file qohosdeviceinfo.cpp.

Referenced by QOhosDisplayInfo::makeFromOhosDisplayObject(), and QOhosWindowProxy::showWindow().

Here is the caller graph for this function:

◆ tryGetRecognizedDeviceType()

QOhosOptional< RecognizedDeviceType > QOhosDeviceInfo::tryGetRecognizedDeviceType ( )

Definition at line 44 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 27 of file qohosdeviceinfo.cpp.

Referenced by init().