KTextEditor

Plugin Extension Interfaces

Classes

class  KTextEditor::SessionConfigInterface
 

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*
auto 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
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:15:44 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.