17 #ifndef UNITY_ACTION_ACTION 18 #define UNITY_ACTION_ACTION 28 #include <QScopedPointer> 36 Q_PROPERTY(QString name
40 Q_PROPERTY(QString text
44 Q_PROPERTY(QString iconName
47 NOTIFY iconNameChanged)
48 Q_PROPERTY(QString description
51 NOTIFY descriptionChanged)
52 Q_PROPERTY(QString keywords
55 NOTIFY keywordsChanged)
56 Q_PROPERTY(
bool enabled
59 NOTIFY enabledChanged)
62 WRITE setParameterType
63 NOTIFY parameterTypeChanged)
75 explicit Action(QObject *parent = 0);
79 void setName(
const QString &value);
82 void setText(
const QString &value);
84 QString iconName()
const;
85 void setIconName(
const QString &value);
87 QString description()
const;
88 void setDescription(
const QString &value);
90 QString keywords()
const;
91 void setKeywords(
const QString &value);
94 void setEnabled(
bool value);
96 Type parameterType()
const;
97 void setParameterType(
Type value);
100 void trigger(QVariant value = QVariant());
103 void nameChanged(
const QString &value);
104 void textChanged(
const QString &value);
105 void iconNameChanged(
const QString &value);
106 void descriptionChanged(
const QString &value);
107 void keywordsChanged(
const QString &value);
108 void enabledChanged(
bool value);
111 void triggered(QVariant value);
115 QScopedPointer<Private> d;
Definition: unity-action.h:68
Definition: unity-action-context.h:20
Definition: unity-action.h:70
Definition: unity-action.h:69
Definition: unity-action.h:71
The main action class.
Definition: unity-action.h:30
Type
Available parameter types.
Definition: unity-action.h:67