KTextEditor
variableinterface.h
Go to the documentation of this file.
00001 /* 00002 This library is free software; you can redistribute it and/or 00003 modify it under the terms of the GNU Library General Public 00004 License as published by the Free Software Foundation; either 00005 version 2 of the License, or (at your option) any later version. 00006 00007 This library is distributed in the hope that it will be useful, 00008 but WITHOUT ANY WARRANTY; without even the implied warranty of 00009 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00010 Library General Public License for more details. 00011 00012 You should have received a copy of the GNU Library General Public License 00013 along with this library; see the file COPYING.LIB. If not, write to 00014 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00015 Boston, MA 02110-1301, USA. 00016 00017 --- 00018 Copyright (C) 2004, Anders Lund <anders@alweb.dk> 00019 Copyright (C) 2005 Dominik Haumann (dhdev@gmx.de) (documentation) 00020 */ 00021 #ifndef _KTEXTEDITOR_VARIABLE_INTERFACE_H_ 00022 #define _KTEXTEDITOR_VARIABLE_INTERFACE_H_ 00023 00024 #include <ktexteditor/ktexteditor_export.h> 00025 00026 00027 #include <QtCore/QObject> 00028 00029 class QString; 00030 00031 namespace KTextEditor { 00032 00033 class Document; 00034 00077 class KTEXTEDITOR_EXPORT VariableInterface 00078 { 00079 public: 00080 VariableInterface(); 00081 00085 virtual ~VariableInterface(); 00086 00092 virtual QString variable( const QString &name ) const = 0; 00093 00094 // 00095 // signals!! 00096 // 00097 public: 00106 virtual void variableChanged( Document* document, const QString &variable, const QString &value ) = 0; 00107 00108 private: 00109 class VariableInterfacePrivate* const d; 00110 }; 00111 00112 00113 } // namespace KTextEditor 00114 00115 Q_DECLARE_INTERFACE(KTextEditor::VariableInterface, "org.kde.KTextEditor.VariableInterface") 00116 00117 #endif 00118 00119 // kate: space-indent on; indent-width 2; replace-tabs on;
KDE 4.6 API Reference