Interfaces
kregexpeditorinterface.h
Go to the documentation of this file.
00001 /* 00002 * kregexpeditorinterface.h - KDE RegExp Editor Interface 00003 * 00004 * Copyright (c) 2002 Jesper K. Pedersen <blackie@kdab.net> 00005 * Copyright (c) 2002 Simon Hausmann <hausmann@kde.org> 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Library General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Library General Public License 00018 * along with this library; see the file COPYING.LIB. If not, write to 00019 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 * Boston, MA 02110-1301, USA. 00021 */ 00022 00023 #ifndef __kregexpeditorinterface_h__ 00024 #define __kregexpeditorinterface_h__ 00025 00026 #include <QtCore/QString> 00027 #include <QtCore/QObject> 00028 00094 class KRegExpEditorInterface 00095 { 00096 public: 00101 virtual QString regExp() const = 0; 00102 00103 virtual ~KRegExpEditorInterface(){} 00104 00105 protected: 00106 // These are signals: in classes that actually implement the interface. 00107 00111 virtual void canUndo( bool ) = 0; 00112 00116 virtual void canRedo( bool ) = 0; 00117 00124 virtual void changes( bool ) = 0; 00125 00126 public: 00127 // These are public slots: in classes that implement the interface. 00128 00133 virtual void setRegExp( const QString ®exp ) = 0; 00134 virtual void redo() = 0; 00135 virtual void undo() = 0; 00136 00144 virtual void setMatchText( const QString& ) = 0; 00145 00158 virtual void doSomething( QString method, void* arguments ) = 0; 00159 }; 00160 00161 Q_DECLARE_INTERFACE(KRegExpEditorInterface, "org.kde.KRegExpEditorInterface/1.0") 00162 00163 #endif 00164
KDE 4.6 API Reference