[PATCH] KPluginSelector new method

Rafael Fernández López ereslibre at gmail.com
Sun Jun 3 02:39:22 BST 2007


Hi,

I attach you a patch with a new feature I would like to add to
KPluginSelector. Porting Kate plugin selector to KPluginSelector I realized
this can be needed by more apps when plugins are added through the method:

void addPlugins(const QList<KPluginInfo*> &pluginInfoList,
const QString &categoryName = QString(),
const QString &categoryKey = QString(),
const KSharedConfig::Ptr &config = KSharedConfig::Ptr());

The new method is:
void updatePluginsState();

(*) Why this change ?

When plugins are added "manually", with this method, probably the user of the
library would like to know the state of the plugins, but probably he/she
doesn't want the state to be saved anywhere (for now), because he/she wants
to do it manually later or whatever. What the library user needed to do
before is to call save() method, which updates the plugins state, but on the
other hand write the configuration to KGlobal::config() if no one set.

This method will only update the state of the plugin, depending on the current
state on the dialog (if it is checked or not).


I would like to commit this on monday 4, if possible, and of course, if no
objections presented.


Bye,
Rafael Fernández López.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kpluginselector.diff
Type: text/x-diff
Size: 5472 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070603/eb6fd50f/attachment.diff>


More information about the kde-core-devel mailing list