From kdevelop-devel Thu May 07 07:31:04 2009 From: David Nolden Date: Thu, 07 May 2009 07:31:04 +0000 To: kdevelop-devel Subject: Re: MakeBuilder, errors visualization Message-Id: <200905070931.05203.david.nolden.kdevelop () art-master ! de> X-MARC-Message: https://marc.info/?l=kdevelop-devel&m=124168156225610 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 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 _______________________________________________ KDevelop-devel mailing list KDevelop-devel@kdevelop.org https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel