diff options
| author | Alexis Jeandet <alexis.jeandet@member.fsf.org> | 2017-10-01 16:18:31 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-10-01 20:12:25 +0300 |
| commit | a9258923fac2ab145a94f7c72cc5c0127d50bfe2 (patch) | |
| tree | 9acf5b06d93ae58e52bf956a62981c4a0f3f0aa6 /test cases/frameworks/4 qt/pluginInterface | |
| parent | ae532c807c61afa51c17222d284475c1984e0ec8 (diff) | |
| download | meson-a9258923fac2ab145a94f7c72cc5c0127d50bfe2.tar.gz | |
Added include directory argument for Qt's Moc which is needed to build plugins.
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
Diffstat (limited to 'test cases/frameworks/4 qt/pluginInterface')
| -rw-r--r-- | test cases/frameworks/4 qt/pluginInterface/plugin_if.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test cases/frameworks/4 qt/pluginInterface/plugin_if.h b/test cases/frameworks/4 qt/pluginInterface/plugin_if.h new file mode 100644 index 000000000..97d2800c3 --- /dev/null +++ b/test cases/frameworks/4 qt/pluginInterface/plugin_if.h @@ -0,0 +1,21 @@ +#ifndef PLUGIN_IF_H +#define PLUGIN_IF_H + +#include <QString> +#include <QtPlugin> + +/** + * @brief Interface for a plugin + */ +class PluginInterface +{ +public: + virtual ~PluginInterface() = default; + + /// Initializes the plugin + virtual QString getResource() = 0; +}; + +Q_DECLARE_INTERFACE(PluginInterface, "demo.PluginInterface") + +#endif |
