Kontact Plugin Interface Library
core.h
00001 /* 00002 This file is part of the KDE Kontact Plugin Interface Library. 00003 00004 Copyright (c) 2001 Matthias Hoelzer-Kluepfel <mhk@kde.org> 00005 Copyright (c) 2002-2003 Daniel Molkentin <molkentin@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 KONTACTINTERFACE_CORE_H 00024 #define KONTACTINTERFACE_CORE_H 00025 00026 #include "kontactinterface_export.h" 00027 #include <kparts/mainwindow.h> 00028 #include <kparts/part.h> 00029 00030 namespace KontactInterface 00031 { 00032 00033 class Plugin; 00034 00040 class KONTACTINTERFACE_EXPORT Core : public KParts::MainWindow 00041 { 00042 Q_OBJECT 00043 00044 public: 00048 virtual ~Core(); 00049 00056 virtual void selectPlugin( KontactInterface::Plugin *plugin ) = 0; 00057 00064 virtual void selectPlugin( const QString &plugin ) = 0; 00065 00069 virtual QList<KontactInterface::Plugin*> pluginList() const = 0; 00070 00076 KParts::ReadOnlyPart *createPart( const char *library ); 00077 00083 virtual void partLoaded( Plugin *plugin, KParts::ReadOnlyPart *part ) = 0; 00084 00085 Q_SIGNALS: 00091 void dayChanged( const QDate &date ); 00092 00093 protected: 00100 explicit Core( QWidget *parent = 0, Qt::WindowFlags flags = KDE_DEFAULT_WINDOWFLAGS ); 00101 00106 QString lastErrorMessage() const; 00107 00108 private: 00109 //@cond PRIVATE 00110 class Private; 00111 Private *const d; 00112 00113 Q_PRIVATE_SLOT( d, void slotPartDestroyed( QObject * ) ) 00114 Q_PRIVATE_SLOT( d, void checkNewDay() ) 00115 //@endcond 00116 }; 00117 00118 } 00119 00120 #endif 00121 00122 // vim: sw=2 sts=2 et tw=80
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:09:11 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:09:11 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.