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)
31 Q_PROPERTY(
bool interactiveBlur READ interactiveBlur CONSTANT)
33 ApplicationArguments(QObject *parent =
nullptr);
35 void setDeviceName(
const QString &deviceName) {
36 if (deviceName != m_deviceName) {
37 m_deviceName = deviceName;
38 Q_EMIT deviceNameChanged(m_deviceName);
41 QString deviceName()
const {
return m_deviceName; }
43 void setMode(
const QString &mode) { m_mode = mode; }
44 QString mode()
const {
return m_mode; }
46 void setInteractiveBlur(
const bool &value) { m_interactiveBlur = value; }
47 bool interactiveBlur() {
return m_interactiveBlur; }
50 void deviceNameChanged(
const QString&);
55 bool m_interactiveBlur;
58 #endif // APPLICATION_ARGUMENTS_H