|
ssu
|
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) |
Definition at line 13 of file declarativessudeviceinfo.h.
A list of types ssu provides shiny values suitable for displaying
Definition at line 21 of file declarativessudeviceinfo.h.
| DeclarativeSsuDeviceInfo::DeclarativeSsuDeviceInfo | ( | ) |
Definition at line 10 of file declarativessudeviceinfo.cpp.
| 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.
| QString DeclarativeSsuDeviceInfo::deviceModel | ( | ) |
Try to find out ond what kind of system this is running
Definition at line 24 of file declarativessudeviceinfo.cpp.
| 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.
| 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.