18 #ifndef ACTIONREGISTRY_H
19 #define ACTIONREGISTRY_H
21 #include <QLoggingCategory>
23 #include <QQmlIncubator>
24 #include <QQmlListProperty>
25 #include "PluginIncubator.h"
28 Q_DECLARE_LOGGING_CATEGORY(PLUGIN_ACTION)
33 Q_PROPERTY(QQmlListProperty<QObject> defaultActions READ defaultActions)
34 Q_PROPERTY(QList<QObject *> actions READ actions NOTIFY actionsChanged)
35 Q_PROPERTY(QString location READ location WRITE setLocation NOTIFY locationChanged)
41 QQmlListProperty<QObject> defaultActions();
42 QList<QObject *> actions()
const;
43 QString location()
const;
46 void actionsChanged(QList<QObject *> actions);
47 void locationChanged(QString location);
50 void setLocation(QString location);
58 QList<QObject *> m_actions;
59 QList<QObject *> m_defaults;
61 IncubatorList m_incubators;
64 #endif // ACTIONREGISTRY_H