Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/shell/tests/plugins/nonguiinterface.h
- This file was copied from kdevplatform/shell/tests/nonguiinterfaceplugin.h.
Show All 13 Lines | |||||
14 | * GNU General Public License for more details. | 14 | * GNU General Public License for more details. | ||
15 | * | 15 | * | ||
16 | * You should have received a copy of the GNU General Public | 16 | * You should have received a copy of the GNU General Public | ||
17 | * License along with this program; if not, write to the | 17 | * License along with this program; if not, write to the | ||
18 | * Free Software Foundation, Inc., | 18 | * Free Software Foundation, Inc., | ||
19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | #ifndef NONGUIINTERFACEPLUGIN | 22 | #ifndef ITESTNONGUIINTERFACE | ||
23 | #define NONGUIINTERFACEPLUGIN | 23 | #define ITESTNONGUIINTERFACE | ||
24 | 24 | | |||
25 | #include <interfaces/iplugin.h> | 25 | #include <QObject> | ||
26 | | ||||
27 | #include <QVariant> | | |||
28 | 26 | | |||
29 | class ITestNonGuiInterface | 27 | class ITestNonGuiInterface | ||
30 | { | 28 | { | ||
31 | public: | 29 | public: | ||
32 | virtual ~ITestNonGuiInterface() {} | 30 | virtual ~ITestNonGuiInterface() {} | ||
33 | }; | 31 | }; | ||
34 | 32 | | |||
35 | Q_DECLARE_INTERFACE( ITestNonGuiInterface, "org.kdevelop.ITestNonGuiInterface" ) | 33 | Q_DECLARE_INTERFACE( ITestNonGuiInterface, "org.kdevelop.ITestNonGuiInterface" ) | ||
36 | 34 | | |||
37 | 35 | | |||
38 | class NonGuiInterfacePlugin : public KDevelop::IPlugin, ITestNonGuiInterface | | |||
39 | { | | |||
40 | Q_OBJECT | | |||
41 | Q_INTERFACES(ITestNonGuiInterface) | | |||
42 | public: | | |||
43 | explicit NonGuiInterfacePlugin( QObject* parent, const QVariantList& = QVariantList() ); | | |||
44 | }; | | |||
45 | | ||||
46 | #endif | 36 | #endif | ||
47 | 37 | |