[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-devel
Subject: Re: MakeBuilder, errors visualization
From: David Nolden <david.nolden.kdevelop () art-master ! de>
Date: 2009-05-07 7:31:04
Message-ID: 200905070931.05203.david.nolden.kdevelop () art-master ! de
[Download RAW message or body]
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
_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic