KDevDiffFrontend Class Referenceabstract
#include <kdevdifffrontend.h>
Inherits KDevPlugin.
Public Member Functions | |
KDevDiffFrontend (const KDevPluginInfo *info, TQObject *parent=0, const char *name=0) | |
virtual void | showDiff (const TQString &diff)=0 |
virtual void | openURL (const KURL &url)=0 |
virtual void | showDiff (const KURL &url1, const KURL &url2)=0 |
Detailed Description
KDevelop diff frontend interface.
This is the abstract base class for plugins that want to display differencies between files.
Instances that implement this interface are available through extension architecture:
KDevDiffFrontend *df = extension<KDevDiffFrontend>("TDevelop/DiffFrontend");
if (df) {
// do something
} else {
// fail
}
- See also
- KDevPlugin::extension method documentation.
Definition at line 48 of file kdevdifffrontend.h.
Constructor & Destructor Documentation
◆ KDevDiffFrontend()
|
inline |
Constructor.
- Parameters
-
info Important information about the plugin - plugin internal and generic (GUI) name, description, a list of authors, etc. That information is used to show plugin information in various places like "about application" dialog, plugin selector dialog, etc. Plugin does not take ownership on info object, also its lifetime should be equal to the lifetime of the plugin. parent The parent object for the plugin. Parent object must implement KDevApi interface. Otherwise the plugin will not be constructed. name The internal name which identifies the plugin.
Definition at line 61 of file kdevdifffrontend.h.
Member Function Documentation
◆ openURL()
|
pure virtual |
Displays a patch file.
- Parameters
-
url An url of the patch file.
◆ showDiff() [1/2]
|
pure virtual |
Displays the patch.
- Parameters
-
diff A string which contains a patch in unified format.
◆ showDiff() [2/2]
|
pure virtual |
Displays the difference between the two files.
- Parameters
-
url1 First file to compare. url2 Second file to compare.
The documentation for this class was generated from the following files: