diff options
Diffstat (limited to 'src/interfaces.h')
-rw-r--r-- | src/interfaces.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/interfaces.h b/src/interfaces.h index 8cf02fc..033a65a 100644 --- a/src/interfaces.h +++ b/src/interfaces.h @@ -25,6 +25,7 @@ class QString; class QWidget; +class QAction; class PluginInterface { @@ -35,11 +36,18 @@ public: class GuiInterface { public: - virtual QWidget widget() const = 0; + // The widget that should be displayed for this plugin + virtual QWidget *widget() = 0; + // The action that should trigger displaying the widget + virtual QAction *action() = 0; }; #define PluginInterface_iid "net.iserlohn-fortress.poi.PluginInterface" Q_DECLARE_INTERFACE(PluginInterface, PluginInterface_iid) +#define GuiInterface_iid "net.iserlohn-fortress.poi.GuiInterface" + +Q_DECLARE_INTERFACE(GuiInterface, GuiInterface_iid) + #endif // INTERFACES_H |