vendored-meson/meson/test cases/frameworks/4 qt/pluginInterface/plugin_if.h
raw| 1 | #ifndef PLUGIN_IF_H |
| 2 | #define PLUGIN_IF_H |
| 3 | |
| 4 | #include <QString> |
| 5 | #include <QtPlugin> |
| 6 | |
| 7 | /** |
| 8 | * @brief Interface for a plugin |
| 9 | */ |
| 10 | class PluginInterface |
| 11 | { |
| 12 | public: |
| 13 | virtual ~PluginInterface() = default; |
| 14 | |
| 15 | /// Initializes the plugin |
| 16 | virtual QString getResource() = 0; |
| 17 | }; |
| 18 | |
| 19 | Q_DECLARE_INTERFACE(PluginInterface, "demo.PluginInterface") |
| 20 | |
| 21 | #endif |