19 #ifndef APPLICATION_ARGUMENTS_H
20 #define APPLICATION_ARGUMENTS_H
26 class ApplicationArguments :
public QObject
29 Q_PROPERTY(QString deviceName READ deviceName NOTIFY deviceNameChanged)
30 Q_PROPERTY(QString mode READ mode CONSTANT)
32 ApplicationArguments(QObject *parent =
nullptr);
34 void setDeviceName(
const QString &deviceName) {
35 if (deviceName != m_deviceName) {
36 m_deviceName = deviceName;
37 Q_EMIT deviceNameChanged(m_deviceName);
40 QString deviceName()
const {
return m_deviceName; }
42 void setMode(
const QString &mode) { m_mode = mode; }
43 QString mode()
const {
return m_mode; }
46 void deviceNameChanged(
const QString&);
53 #endif // APPLICATION_ARGUMENTS_H