KTextEditor
variableinterface.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _KTEXTEDITOR_VARIABLE_INTERFACE_H_
00021 #define _KTEXTEDITOR_VARIABLE_INTERFACE_H_
00022
00023 #include <ktexteditor/ktexteditor_export.h>
00024
00025
00026 #include <QtCore/QObject>
00027
00028 class QString;
00029
00030 namespace KTextEditor {
00031
00032 class Document;
00033
00076 class KTEXTEDITOR_EXPORT VariableInterface
00077 {
00078 public:
00079 VariableInterface();
00080
00084 virtual ~VariableInterface();
00085
00091 virtual QString variable( const QString &name ) const = 0;
00092
00093
00094
00095
00096 public:
00105 virtual void variableChanged( Document* document, const QString &variable, const QString &value ) = 0;
00106
00107 private:
00108 class VariableInterfacePrivate* const d;
00109 };
00110
00111
00112 }
00113
00114 Q_DECLARE_INTERFACE(KTextEditor::VariableInterface, "org.kde.KTextEditor.VariableInterface")
00115
00116 #endif
00117
00118