KDE/kdebase/workspace/libs/plasma

Alex Merry huntedhacker at tiscali.co.uk
Wed Jul 16 19:04:40 CEST 2008


SVN commit 833339 by alexmerry:

Actually call registerOperationScheme().  Also document a macro.

CCMAIL:panel-devel at kde.org
Can someone backport this to the 4.1 branch, please?  Otherwise no-one can write services in 4.1.



 M  +2 -0      service.cpp  
 M  +4 -0      service.h  


--- trunk/KDE/kdebase/workspace/libs/plasma/service.cpp #833338:833339
@@ -38,6 +38,7 @@
     : QObject(parent),
       d(new ServicePrivate(this))
 {
+    registerOperationsScheme();
 }
 
 Service::Service(QObject *parent, const QVariantList &args)
@@ -45,6 +46,7 @@
       d(new ServicePrivate(this))
 {
     Q_UNUSED(args);
+    registerOperationsScheme();
 }
 
 Service::~Service()
--- trunk/KDE/kdebase/workspace/libs/plasma/service.h #833338:833339
@@ -26,6 +26,7 @@
 
 #include <KDE/KConfigGroup>
 #include <plasma/plasma_export.h>
+
 class QIODevice;
 
 namespace Plasma
@@ -183,6 +184,9 @@
 
 } // 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<classname>();) \
 K_EXPORT_PLUGIN(factory("plasma_service_" #libname))


More information about the Panel-devel mailing list