ssu
Loading...
Searching...
No Matches
DeclarativeSsuDeviceInfo Class Reference
Inheritance diagram for DeclarativeSsuDeviceInfo:

Public Types

enum  DisplayType { DeviceManufacturer = Ssu::DeviceManufacturer , DeviceModel = Ssu::DeviceModel , DeviceDesignation = Ssu::DeviceDesignation }

Public Member Functions

Q_INVOKABLE QString deviceFamily ()
Q_INVOKABLE QString deviceVariant (bool fallback=false)
Q_INVOKABLE QString deviceModel ()
Q_INVOKABLE QString displayName (int type)

Detailed Description

Definition at line 13 of file declarativessudeviceinfo.h.

Member Enumeration Documentation

◆ DisplayType

A list of types ssu provides shiny values suitable for displaying

Enumerator
DeviceManufacturer 

Manufacturer, like ACME Corp. Board mappings key "deviceManufacturer".

DeviceModel 

Marketed device name, like Pogoblaster 3000. Board mappings key "prettyModel".

DeviceDesignation 

Type designation, like NCC-1701. Beard mappings key "deviceDesignation".

Definition at line 21 of file declarativessudeviceinfo.h.

Constructor & Destructor Documentation

◆ DeclarativeSsuDeviceInfo()

DeclarativeSsuDeviceInfo::DeclarativeSsuDeviceInfo ( )

Definition at line 10 of file declarativessudeviceinfo.cpp.

Member Function Documentation

◆ deviceFamily()

QString DeclarativeSsuDeviceInfo::deviceFamily ( )

Try to find the device family for the system this is running on. This function temporarily changes the detected model, and therefore should not be used in a multithreaded environment, unless you like funny results.

Definition at line 14 of file declarativessudeviceinfo.cpp.

◆ deviceModel()

QString DeclarativeSsuDeviceInfo::deviceModel ( )

Try to find out ond what kind of system this is running

Definition at line 24 of file declarativessudeviceinfo.cpp.

◆ deviceVariant()

QString DeclarativeSsuDeviceInfo::deviceVariant ( bool fallback = false)

Try to find the device variant for the system this is running on. If the device is not a variant it will return an empty string. If fallback is set to true it return the device model in this case.

Definition at line 19 of file declarativessudeviceinfo.cpp.

◆ displayName()

QString DeclarativeSsuDeviceInfo::displayName ( int type)

Return a string suitable for display in dialogs, ...

See DeviceTypes for supported types.

If not configured the model name used by ssu will be returned instead for product and type. If no manufacturer is found UNKNOWN is returned. For an invalid type an empty string is returned.

Definition at line 29 of file declarativessudeviceinfo.cpp.


The documentation for this class was generated from the following files: