KTextEditor
Command Extension Interfaces
Classes | |
| class | KTextEditor::CommandExtension |
| Extension interface for a Command. More... | |
| class | KTextEditor::RangeCommand |
| Extension interface for a Command making the exec method take a line range. More... | |
Detailed Description
A KTextEditor command-line Command can use extension interfaces, but it does not need to.
So as a KTextEditor implementator you have to cast the Command to the desired interface and then check, whether the cast returns NULL or the valid interface.
Use qobject_cast to cast a Command cmd into the DesiredExtensionInterface, example:
// cmd is of type KTextEditor::Command* KTextEditor::DesiredExtensionInterface *iface = qobject_cast<KTextEditor::DesiredExtensionInterface*>( cmd ); if( iface ) { // the implementation supports the interface // do stuff } else { // the implementation does not support the interface }
- See also:
- KTextEditor::Command
The following classes are a list of all available Command extension interfaces.
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 21:01:24 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 21:01:24 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.