diff --git a/service.cpp b/service.cpp index c22fc035a..203ee8f74 100644 --- a/service.cpp +++ b/service.cpp @@ -38,6 +38,7 @@ Service::Service(QObject *parent) : QObject(parent), d(new ServicePrivate(this)) { + registerOperationsScheme(); } Service::Service(QObject *parent, const QVariantList &args) @@ -45,6 +46,7 @@ Service::Service(QObject *parent, const QVariantList &args) d(new ServicePrivate(this)) { Q_UNUSED(args); + registerOperationsScheme(); } Service::~Service() diff --git a/service.h b/service.h index fad9b9c73..4adfb061d 100644 --- a/service.h +++ b/service.h @@ -26,6 +26,7 @@ #include #include + class QIODevice; namespace Plasma @@ -183,6 +184,9 @@ private: } // namespace Plasma +/** + * Register a service when it is contained in a loadable module + */ #define K_EXPORT_PLASMA_SERVICE(libname, classname) \ K_PLUGIN_FACTORY(factory, registerPlugin();) \ K_EXPORT_PLUGIN(factory("plasma_service_" #libname))