Kontact Plugin Interface Library
24 #ifndef KONTACTINTERFACE_PLUGIN_H
25 #define KONTACTINTERFACE_PLUGIN_H
27 #include "kontactinterface_export.h"
29 #include <kpluginfactory.h>
30 #include <kxmlguiclient.h>
32 #include <QtCore/QList>
33 #include <QtCore/QObject>
50 #define EXPORT_KONTACT_PLUGIN( pluginclass, pluginname ) \
54 static QObject *createInstance( QWidget *, QObject *parent, const QVariantList &list ) \
55 { return new pluginclass( static_cast<KontactInterface::Core*>( parent ), list ); } \
57 K_PLUGIN_FACTORY( KontactPluginFactory, registerPlugin< pluginclass > \
58 ( QString(), Instance::createInstance ); ) \
59 K_EXPORT_PLUGIN( KontactPluginFactory( "kontact_" #pluginname "plugin" ) )
64 #define KONTACT_PLUGIN_VERSION 9
66 namespace KontactInterface {
77 class KONTACTINTERFACE_EXPORT
Plugin :
public QObject,
virtual public KXMLGUIClient
92 Plugin(
Core *core,
QObject *parent,
const char *appName,
const char *pluginName = 0 );
102 void setIdentifier(
const QString &identifier );
112 void setTitle(
const QString &title );
122 void setIcon(
const QString &icon );
132 void setExecutableName(
const QString &name );
137 QString executableName()
const;
142 void setPartLibraryName(
const QByteArray &name );
149 virtual bool createDBUSInterface(
const QString &serviceType );
156 virtual bool isRunningStandalone()
const;
163 virtual void bringToForeground();
169 virtual const KAboutData *aboutData()
const;
176 KParts::ReadOnlyPart *part();
183 virtual QString tipFile()
const;
189 virtual void select();
196 void aboutToSelect();
202 virtual void configUpdated();
215 virtual bool showInSideBar()
const;
221 void setShowInSideBar(
bool hasPart );
229 virtual bool queryClose()
const;
240 virtual int weight()
const;
246 void insertNewAction( KAction *action );
252 void insertSyncAction( KAction *action );
267 virtual QStringList invisibleToolbarActions()
const;
272 virtual bool canDecodeMimeData(
const QMimeData *data )
const;
277 virtual void processDropEvent(
QDropEvent * );
282 virtual void readProperties(
const KConfigGroup & );
287 virtual void saveProperties( KConfigGroup & );
297 void setDisabled(
bool value );
302 bool disabled()
const;
307 virtual void shortcutChanged();
315 void slotConfigUpdated();
322 virtual KParts::ReadOnlyPart *createPart() = 0;
327 KParts::ReadOnlyPart *loadPart();
332 virtual void virtual_hook(
int id,
void *data );
339 Q_PRIVATE_SLOT( d,
void partDestroyed() )
Base class for summary widgets in Kontact.
Base class for all Plugins in Kontact.
The abstract interface that represents the Kontact core.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:55 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.