aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/frameworks/4 qt/pluginInterface/plugin_if.h
blob: 97d2800c38b59061482201a7838db8f1cbab0f04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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