variableinterface.h
/*
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
---
Copyright (C) 2004, Anders Lund <anders@alweb.dk>
*/
#ifndef _KTEXTEDITOR_VARIABLE_INTERFACE_H_
#define _KTEXTEDITOR_VARIABLE_INTERFACE_H_
#include <kdelibs_export.h>
class QString;
namespace KTextEditor {
class KTEXTEDITOR_EXPORT VariableInterface
{
public:
VariableInterface();
virtual ~VariableInterface();
unsigned int variableInterfaceNumber();
virtual QString variable( const QString &name ) const = 0;
//
// signals!!
//
public:
virtual void variableChanged( const QString &variable, const QString &value ) = 0;
private:
static unsigned int globalVariableInterfaceNumber;
unsigned int myVariableInterfaceNumber;
};
KTEXTEDITOR_EXPORT VariableInterface *variableInterface( class Document * );
} // namespace KTextEditor
#endif //_KTEXTEDITOR_VARIABLE_INTERFACE_H_
KTextEditor::VariableInterface
This interface is designed to provide access to "document variables", for example variables defined i...
Definition: variableinterface.h:41
KTextEditor::Document
The main class representing a text document.
Definition: document.h:31

KDE Home | KDE Accessibility Home | Description of Access Keys