Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/shell/tests/plugins/nonguiinterfaceplugin.cpp
- This file was moved from kdevplatform/shell/tests/nonguiinterfaceplugin.cpp.
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 | #include "nonguiinterfaceplugin.h" | 22 | #include "nonguiinterface.h" | ||
23 | 23 | | |||
24 | #include <kpluginfactory.h> | 24 | #include <interfaces/iplugin.h> | ||
25 | 25 | | |||
26 | K_PLUGIN_FACTORY_WITH_JSON(KDevProblemReporterFactory, "kdevnonguiinterfaceplugin.json", registerPlugin<NonGuiInterfacePlugin>();) | 26 | #include <KPluginFactory> | ||
27 | | ||||
28 | class NonGuiInterfacePlugin : public KDevelop::IPlugin, ITestNonGuiInterface | ||||
29 | { | ||||
30 | Q_OBJECT | ||||
31 | Q_INTERFACES(ITestNonGuiInterface) | ||||
32 | public: | ||||
33 | NonGuiInterfacePlugin(QObject* parent, const QVariantList&); | ||||
mwolff: explicit | |||||
34 | }; | ||||
27 | 35 | | |||
28 | NonGuiInterfacePlugin::NonGuiInterfacePlugin( QObject* parent, const QVariantList& ) | 36 | NonGuiInterfacePlugin::NonGuiInterfacePlugin(QObject* parent, const QVariantList&) | ||
29 | : IPlugin( QStringLiteral("kdevnonguiinterfaceplugin"), parent ) | 37 | : IPlugin(QStringLiteral("nonguiinterfaceplugin"), parent) | ||
30 | { | 38 | { | ||
31 | } | 39 | } | ||
32 | 40 | | |||
41 | K_PLUGIN_FACTORY_WITH_JSON(NonGuiInterfacePluginFactory, "nonguiinterfaceplugin.testpluginjson", | ||||
42 | registerPlugin<NonGuiInterfacePlugin>();) | ||||
43 | | ||||
33 | #include "nonguiinterfaceplugin.moc" | 44 | #include "nonguiinterfaceplugin.moc" | ||
34 | 45 | |
explicit