KTextEditor
texthintinterface.h
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2001 Joseph Wenninger <jowenn@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 #ifndef KDELIBS_KTEXTEDITOR_TEXTHINTINTERFACE_H 00020 #define KDELIBS_KTEXTEDITOR_TEXTHINTINTERFACE_H 00021 00022 #include <QtCore/QString> 00023 #include <QtCore/QStringList> 00024 00025 #include <ktexteditor/ktexteditor_export.h> 00026 00027 #include <ktexteditor/cursor.h> 00028 00029 namespace KTextEditor 00030 { 00031 00036 class KTEXTEDITOR_EXPORT TextHintInterface 00037 { 00038 public: 00039 TextHintInterface(); 00040 virtual ~TextHintInterface(); 00041 00047 virtual void enableTextHints(int timeout)=0; 00048 00052 virtual void disableTextHints()=0; 00053 00054 //signals 00055 00061 virtual void needTextHint(const KTextEditor::Cursor& position, QString &text)=0; 00062 00063 private: 00064 class TextHintInterfacePrivate* const d; 00065 }; 00066 00067 } 00068 00069 Q_DECLARE_INTERFACE(KTextEditor::TextHintInterface, "org.kde.KTextEditor.TextHintInterface") 00070 00071 #endif 00072 00073 // kate: space-indent on; indent-width 2; replace-tabs on;
KDE 4.6 API Reference