ssu
declarativessudeviceinfo.h
1 
8 #ifndef _DECLARATIVESSUDEVICEINFO_H
9 #define _DECLARATIVESSUDEVICEINFO_H
10 
11 #include "../libssu/ssudeviceinfo.h"
12 
13 class DeclarativeSsuDeviceInfo : public QObject
14 {
15  Q_OBJECT
16  Q_ENUMS(DisplayType)
17 public:
21  enum DisplayType {
25  };
26 
28 
34  Q_INVOKABLE QString deviceFamily();
35 
41  Q_INVOKABLE QString deviceVariant(bool fallback = false);
42 
46  Q_INVOKABLE QString deviceModel();
47 
58  Q_INVOKABLE QString displayName(int type);
59 
60 private:
61  SsuDeviceInfo info;
62 };
63 
64 #endif
65 
66 
DeclarativeSsuDeviceInfo::deviceVariant
Q_INVOKABLE QString deviceVariant(bool fallback=false)
Definition: declarativessudeviceinfo.cpp:19
DeclarativeSsuDeviceInfo::DeviceManufacturer
@ DeviceManufacturer
Manufacturer, like ACME Corp. Board mappings key "deviceManufacturer".
Definition: declarativessudeviceinfo.h:22
DeclarativeSsuDeviceInfo::DeviceModel
@ DeviceModel
Marketed device name, like Pogoblaster 3000. Board mappings key "prettyModel".
Definition: declarativessudeviceinfo.h:23
DeclarativeSsuDeviceInfo::deviceFamily
Q_INVOKABLE QString deviceFamily()
Definition: declarativessudeviceinfo.cpp:14
DeclarativeSsuDeviceInfo::DeviceDesignation
@ DeviceDesignation
Type designation, like NCC-1701. Beard mappings key "deviceDesignation".
Definition: declarativessudeviceinfo.h:24
DeclarativeSsuDeviceInfo::DisplayType
DisplayType
Definition: declarativessudeviceinfo.h:21
DeclarativeSsuDeviceInfo::displayName
Q_INVOKABLE QString displayName(int type)
Definition: declarativessudeviceinfo.cpp:29
DeclarativeSsuDeviceInfo::deviceModel
Q_INVOKABLE QString deviceModel()
Definition: declarativessudeviceinfo.cpp:24
SsuDeviceInfo
Definition: ssudeviceinfo.h:17
Ssu::DeviceModel
@ DeviceModel
Marketed device name, like Pogoblaster 3000. Board mappings key "prettyModel".
Definition: ssu.h:83
Ssu::DeviceManufacturer
@ DeviceManufacturer
Manufacturer, like ACME Corp. Board mappings key "deviceManufacturer".
Definition: ssu.h:82
DeclarativeSsuDeviceInfo
Definition: declarativessudeviceinfo.h:13
Ssu::DeviceDesignation
@ DeviceDesignation
Type designation, like NCC-1701. Beard mappings key "deviceDesignation".
Definition: ssu.h:84