interfaces Library API Documentation

variableinterface.h

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 version 2 as published by the Free Software Foundation. 00005 00006 This library is distributed in the hope that it will be useful, 00007 but WITHOUT ANY WARRANTY; without even the implied warranty of 00008 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00009 Library General Public License for more details. 00010 00011 You should have received a copy of the GNU Library General Public License 00012 along with this library; see the file COPYING.LIB. If not, write to 00013 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00014 Boston, MA 02111-1307, USA. 00015 00016 --- 00017 Copyright (C) 2004, Anders Lund <anders@alweb.dk> 00018 */ 00019 #ifndef _KTEXTEDITOR_VARIABLE_INTERFACE_H_ 00020 #define _KTEXTEDITOR_VARIABLE_INTERFACE_H_ 00021 00022 class QString; 00023 00024 namespace KTextEditor { 00025 00039 class VariableInterface 00040 { 00041 public: 00042 VariableInterface(); 00043 virtual ~VariableInterface(); 00044 00045 unsigned int variableInterfaceNumber(); 00046 00051 virtual QString variable( const QString &name ) const = 0; 00052 00053 // 00054 // signals!! 00055 // 00056 public: 00060 virtual void variableChanged( const QString &variable, const QString &value ) = 0; 00061 00062 private: 00063 static unsigned int globalVariableInterfaceNumber; 00064 unsigned int myVariableInterfaceNumber; 00065 }; 00066 00067 00068 VariableInterface *variableInterface( class Document * ); 00069 } // namespace KTextEditor 00070 #endif //_KTEXTEDITOR_VARIABLE_INTERFACE_H_
KDE Logo
This file is part of the documentation for interfaces Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Sep 29 09:44:23 2004 by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2003