* 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">
<kcfg>
<group name="save">
<entry name="source" type="String">
<entry name="group" type="String">
<label>Name of the source</label>
</entry>
<entry name="key" type="String">
@ -20,8 +20,11 @@
</entry>
</group>
<group name="retrieve">
<entry name="source" type="String">
<entry name="group" type="String">
<label>Name of the source</label>
</entry>
<entry name="key" type="String">
<label>Fill</label>
</entry>
</group>
</kcfg>

View File

@ -34,6 +34,7 @@
#include "private/applet_p.h"
#include "private/extenderapplet_p.h"
#include "private/service_p.h" // for NullService
#include "private/storage_p.h"
namespace Plasma {
@ -205,6 +206,8 @@ Service *PluginLoader::loadService(const QString &name, const QVariantList &args
//TODO: scripting API support
if (name.isEmpty()) {
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);