plugin.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef KONTACT_PLUGIN_H
00025 #define KONTACT_PLUGIN_H
00026
00027 #include <qobject.h>
00028 #include <kxmlguiclient.h>
00029 #include <qptrlist.h>
00030
00031 class QStringList;
00032 class DCOPClient;
00033 class DCOPObject;
00034 class KAboutData;
00035 class KAction;
00036 class QWidget;
00037 namespace KParts { class Part; }
00038
00043 #define KONTACT_PLUGIN_VERSION 3
00044
00045 namespace Kontact
00046 {
00047
00048 class Core;
00049 class Summary;
00050
00056 class Plugin : public QObject, virtual public KXMLGUIClient
00057 {
00058 Q_OBJECT
00059
00060 public:
00069 Plugin( Core *core, QObject *parent, const char *name );
00070
00071 ~Plugin();
00072
00076 void setIdentifier( const QString &identifier );
00077
00082 QString identifier() const;
00083
00087 void setTitle( const QString &title );
00088
00092 QString title() const;
00093
00097 void setIcon( const QString &icon );
00098
00102 QString icon() const;
00103
00107 void setExecutableName( const QString &bin );
00108
00112 QString executableName() const;
00113
00117 void setPartLibraryName( const QCString & );
00118
00123 virtual bool createDCOPInterface( const QString& ) { return false; }
00124
00129 virtual bool isRunningStandalone() { return false; }
00130
00136 virtual void bringToForeground();
00137
00142 virtual const KAboutData *aboutData();
00143
00149 KParts::Part *part();
00150
00154 virtual QString tipFile() const;
00155
00160 virtual void select();
00161
00166 virtual void configUpdated();
00167
00174 virtual Summary *createSummaryWidget( QWidget * ) { return 0; }
00175
00179 virtual bool showInSideBar() const { return true; }
00180
00190 DCOPClient *dcopClient() const;
00191
00196 virtual int weight() const { return 0; }
00197
00201 void insertNewAction( KAction *action );
00202
00206 QPtrList<KAction>* newActions() const;
00207
00211 virtual QStringList invisibleToolbarActions() const { return QStringList(); }
00212
00216 virtual bool canDecodeDrag( QMimeSource * ) { return false; }
00217
00221 virtual void processDropEvent( QDropEvent * ) {}
00222
00223 Core *core() const;
00224
00225 protected:
00230 virtual KParts::Part *createPart() = 0;
00231
00232 KParts::Part *loadPart();
00233
00234 private slots:
00235 void partDestroyed();
00236
00237 private:
00238 class Private;
00239 Private *d;
00240 };
00241
00242 }
00243
00244 #endif
This file is part of the documentation for kontact Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Apr 26 23:23:36 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003