core.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KONTACT_CORE_H
00024 #define KONTACT_CORE_H
00025
00026 #include <qdatetime.h>
00027
00028 #include <kparts/mainwindow.h>
00029 #include <kparts/part.h>
00030
00031 class KAction;
00032
00033 namespace Kontact
00034 {
00035
00036 class Plugin;
00037
00041 class Core : public KParts::MainWindow
00042 {
00043 Q_OBJECT
00044 public:
00045 virtual ~Core();
00046
00051 virtual void selectPlugin( Kontact::Plugin *plugin ) = 0;
00052
00057 virtual void selectPlugin( const QString &plugin ) = 0;
00058
00062 virtual QValueList<Kontact::Plugin*> pluginList() const = 0;
00063
00067 KParts::ReadOnlyPart *createPart( const char *libname );
00068
00073 virtual void partLoaded( Plugin* plugin, KParts::Part * part ) = 0;
00074
00075 signals:
00079 void dayChanged( const QDate& );
00080
00081 protected:
00082 Core( QWidget *parentWidget = 0, const char *name = 0 );
00083
00084 private slots:
00085 void slotPartDestroyed( QObject * );
00086 void checkNewDay();
00087
00088 private:
00089 QMap<QCString,KParts::ReadOnlyPart *> mParts;
00090 QDate mLastDate;
00091
00092 class Private;
00093 Private *d;
00094 };
00095
00096 }
00097
00098 #endif
00099
00100
This file is part of the documentation for kontact Library Version 3.2.2.