30
namespace notifications
34
class Action : public QObject
39
Q_PROPERTY(QString id READ id NOTIFY idChanged);
40
Q_PROPERTY(QString label READ label NOTIFY labelChanged);
42
Action(QObject* = 0) : d(new Private())
46
Action(const Action& rhs) = delete;
47
Action& operator=(const Action& rhs) = delete;
49
virtual QString id() const;
50
virtual QString label() const;
52
virtual void setId(Type type);
53
virtual void setLabel(Type type);
55
Q_SIGNAL void idChanged(const QString&);
56
Q_SIGNAL void labelChanged(const QString&);
58
Q_INVOKABLE virtual void invoke() = 0;
59
Q_INVOKABLE virtual QString label() = 0;
30
namespace notifications
34
class Action : public QObject
39
Q_PROPERTY(QString id READ id NOTIFY idChanged);
40
Q_PROPERTY(QString label READ label NOTIFY labelChanged);
42
Action(QObject* = 0) {}
45
Action(const Action& rhs) = delete;
46
Action& operator=(const Action& rhs) = delete;
48
virtual QString id() const;
49
virtual QString label() const;
51
virtual void setId(Type type);
52
virtual void setLabel(Type type);
54
Q_SIGNAL void idChanged(const QString&);
55
Q_SIGNAL void labelChanged(const QString&);
57
Q_INVOKABLE virtual void invoke() = 0;
58
Q_INVOKABLE virtual QString label() = 0;
60
} // namespace notifications
63
#endif // PLUGINS_NOTIFICATIONS_ACTION_H