* update the storage operations

* add a special case in pluginloader for storage (don't think storage should be made a plugin)

svn path=/trunk/KDE/kdelibs/; revision=1189000
This commit is contained in:
Marco Martin 2010-10-23 17:02:49 +00:00
parent 69acb66426
commit 9fcf5d4980
2 changed files with 8 additions and 2 deletions

View File

@ -3,7 +3,7 @@
"http://www.kde.org/standards/kcfg/1.0/kcfg.xsd"> "http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">
<kcfg> <kcfg>
<group name="save"> <group name="save">
<entry name="source" type="String"> <entry name="group" type="String">
<label>Name of the source</label> <label>Name of the source</label>
</entry> </entry>
<entry name="key" type="String"> <entry name="key" type="String">
@ -20,8 +20,11 @@
</entry> </entry>
</group> </group>
<group name="retrieve"> <group name="retrieve">
<entry name="source" type="String"> <entry name="group" type="String">
<label>Name of the source</label> <label>Name of the source</label>
</entry> </entry>
<entry name="key" type="String">
<label>Fill</label>
</entry>
</group> </group>
</kcfg> </kcfg>

View File

@ -34,6 +34,7 @@
#include "private/applet_p.h" #include "private/applet_p.h"
#include "private/extenderapplet_p.h" #include "private/extenderapplet_p.h"
#include "private/service_p.h" // for NullService #include "private/service_p.h" // for NullService
#include "private/storage_p.h"
namespace Plasma { namespace Plasma {
@ -205,6 +206,8 @@ Service *PluginLoader::loadService(const QString &name, const QVariantList &args
//TODO: scripting API support //TODO: scripting API support
if (name.isEmpty()) { if (name.isEmpty()) {
return new NullService(QString(), parent); return new NullService(QString(), parent);
} else if (name == "org.kde.servicestorage") {
return new Storage(parent);
} }
QString constraint = QString("[X-KDE-PluginInfo-Name] == '%1'").arg(name); QString constraint = QString("[X-KDE-PluginInfo-Name] == '%1'").arg(name);