Dynamic creation of XMLGuiClients (plugins)

David Faure dfaure at klaralvdalens-datakonsult.se
Sat Jan 4 21:41:31 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 04 January 2003 21:25, Matthias Kretz wrote:
> This is what KView does for loading and merging:
> 
> KConfigGroup cfgGroup( config, "KParts Plugins" );
> 
> for( QValueList<KPluginSelectorPrivate::PluginInfo>::Iterator it =
> d->pluginInfos.begin(); it != d->pluginInfos.end(); ++
> it )
>   cfgGroup.writeEntry( ( *it ).pluginname + "Enabled", ( *it ).item->isOn() );

Sounds like we should have an updatePlugins() method that compares the
loaded plugins with the enabled/disabled ones, and adds/removes those that
need to be added/removed...

- -- 
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Klarälvdalens Datakonsult AB, Platform-independent software solutions
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2.1 is available - http://download.kde.org/stable/koffice-1.2.1/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+F1UL72KcVAmwbhARAtieAKCKxuIoioAnHpsbL8+icekUlsw3uACfVLhx
T0a2PB8cQ0Szpg7+o/b29SY=
=KntP
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list