KTextEditor
sessionconfiginterface.h
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org> 00003 Copyright (C) 2005 Dominik Haumann (dhdev@gmx.de) (documentation) 00004 Copyright (C) 2009 Michel Ludwig (michel.ludwig@kdemail.net) 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 Boston, MA 02110-1301, USA. 00020 */ 00021 00022 #ifndef KDELIBS_KTEXTEDITOR_SESSIONCONFIGINTERFACE_H 00023 #define KDELIBS_KTEXTEDITOR_SESSIONCONFIGINTERFACE_H 00024 00025 #include <ktexteditor/ktexteditor_export.h> 00026 00027 class KConfigGroup; 00028 00029 #include <QtCore/QObject> 00030 00031 namespace KTextEditor 00032 { 00033 00082 class KTEXTEDITOR_EXPORT SessionConfigInterface 00083 { 00084 public: 00085 SessionConfigInterface(); 00086 00090 virtual ~SessionConfigInterface(); 00091 00092 // 00093 // SLOTS !!! 00094 // 00095 public: 00110 virtual void readSessionConfig (const KConfigGroup& config) = 0; 00111 00119 virtual void writeSessionConfig (KConfigGroup& config) = 0; 00120 00121 private: 00122 class SessionConfigInterfacePrivate* const d; 00123 }; 00124 00125 00176 class KTEXTEDITOR_EXPORT ParameterizedSessionConfigInterface 00177 { 00178 public: 00179 ParameterizedSessionConfigInterface(); 00180 00184 virtual ~ParameterizedSessionConfigInterface(); 00185 00186 public: 00187 00191 enum SessionConfigParameter { 00192 SkipNone = 0, 00193 SkipUrl = 1 << 0, 00194 SkipMode = 1 << 1, 00195 SkipHighlighting = 1 << 2, 00196 SkipEncoding = 1 << 3 00197 }; 00198 00215 virtual void readParameterizedSessionConfig (const KConfigGroup& config, 00216 unsigned long parameters) = 0; 00217 00227 virtual void writeParameterizedSessionConfig (KConfigGroup& config, 00228 unsigned long parameters) = 0; 00229 }; 00230 00231 00232 } 00233 00234 Q_DECLARE_INTERFACE(KTextEditor::SessionConfigInterface, "org.kde.KTextEditor.SessionConfigInterface") 00235 Q_DECLARE_INTERFACE(KTextEditor::ParameterizedSessionConfigInterface, "org.kde.KTextEditor.ParameterizedSessionConfigInterface") 00236 00237 #endif 00238 00239 // kate: space-indent on; indent-width 2; replace-tabs on;
KDE 4.6 API Reference