KTextEditor
Plugin Extension Interfaces
A KTextEditor Plugin can use extension interfaces, but it does not need to. More...
Classes | |
class | KTextEditor::SessionConfigInterface |
Session config interface extension for the Document, View and Plugin. More... |
Detailed Description
A KTextEditor Plugin can use extension interfaces, but it does not need to.
So as a KTextEditor implementator you have to cast the Plugin to the desired interface and then check, whether the cast returns NULL or the valid interface.
Use qobject_cast to cast a Plugin plugin into the DesiredExtensionInterface, example:
// plugin is of type KTextEditor::Plugin* KTextEditor::DesiredExtensionInterface *iface = qobject_cast<KTextEditor::DesiredExtensionInterface*>( plugin ); if( iface ) { // the implementation supports the interface // do stuff } else { // the implementation does not support the interface }
- See also:
- KTextEditor::Plugin
The following classes are a list of all available Plugin extension interfaces.