• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • KDevelop Extension Interfaces Library
 

KDevelop Extension Interfaces Library

Public Member Functions | List of all members
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()

KDevDiffFrontend::KDevDiffFrontend ( const KDevPluginInfo *  info,
TQObject *  parent = 0,
const char *  name = 0 
)
inline

Constructor.

Parameters
infoImportant 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.
parentThe parent object for the plugin. Parent object must implement KDevApi interface. Otherwise the plugin will not be constructed.
nameThe internal name which identifies the plugin.

Definition at line 61 of file kdevdifffrontend.h.

Member Function Documentation

◆ openURL()

virtual void KDevDiffFrontend::openURL ( const KURL &  url)
pure virtual

Displays a patch file.

Parameters
urlAn url of the patch file.

◆ showDiff() [1/2]

virtual void KDevDiffFrontend::showDiff ( const TQString &  diff)
pure virtual

Displays the patch.

Parameters
diffA string which contains a patch in unified format.

◆ showDiff() [2/2]

virtual void KDevDiffFrontend::showDiff ( const KURL &  url1,
const KURL &  url2 
)
pure virtual

Displays the difference between the two files.

Parameters
url1First file to compare.
url2Second file to compare.

The documentation for this class was generated from the following files:
  • kdevdifffrontend.h
  • kdevdifffrontend.cpp

KDevelop Extension Interfaces Library

Skip menu "KDevelop Extension Interfaces Library"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members

KDevelop Extension Interfaces Library

Skip menu "KDevelop Extension Interfaces Library"
  • buildtools
  •   lib
  •     base
  •     parsers
  •       autotools
  •       qmake
  •     widgets
  •   api
  • languages
  •   lib
  •     debugger
  •     designer_integration
  •     interfaces
  • lib
  •   catalog
  •   interfaces
  •     extensions
  •     external
  •     extras
  •   util
  •   widgets
  •     propeditor
  • parts
  •   documentation
  •     interfaces
  • src
  •   profileengine
  •     lib
Generated for KDevelop Extension Interfaces Library by doxygen 1.8.13
This website is maintained by Timothy Pearson.