MakeBuilder, errors visualization

David Nolden david.nolden.kdevelop at art-master.de
Thu May 7 07:31:04 UTC 2009


Am Donnerstag 07 Mai 2009 09:08:28 schrieb Vladimir Prus:
> After the interface is declared, and implemented, how to get hold of
> an instance of that interface?
>
> Thanks,
> Volodya
Something like this:
QList<IPlugin*> m_plugins=ICore::self()->pluginController()-
>allPluginsForExtension(interfaceName);

Where interfaceName is the interface id. Then you can qobject_cast or 
dynamic_cast the plugins to the interfaces. Ah yeah, I think the plugin that 
implements the interface must be marked in the .desktop file using X-KDevelop-
Interfaces with that interface to make this work.

Greetings, David





More information about the KDevelop-devel mailing list