24#ifndef KONTACT_PLUGIN_H 
   25#define KONTACT_PLUGIN_H 
   28#include <kxmlguiclient.h> 
   39namespace KParts { 
class ReadOnlyPart; }
 
   45#define KONTACT_PLUGIN_VERSION 6 
   58class TDE_EXPORT 
Plugin : 
public TQObject, 
virtual public KXMLGUIClient
 
   71    Plugin( 
Core *core, TQObject *parent, 
const char *name );
 
   78    void setIdentifier( 
const TQString &identifier );
 
   84    TQString identifier() 
const;
 
   89    void setTitle( 
const TQString &title );
 
   94    TQString title() 
const;
 
   99    void setIcon( 
const TQString &icon );
 
  104    TQString icon() 
const;
 
  109    void setExecutableName( 
const TQString &bin );
 
  114    TQString executableName() 
const;
 
  119    void setPartLibraryName( 
const TQCString & );
 
  138    virtual void bringToForeground();
 
  144    virtual const TDEAboutData *aboutData();
 
  151    KParts::ReadOnlyPart *part();
 
  156    virtual TQString tipFile() 
const;
 
  162    virtual void select();
 
  168    virtual void configUpdated();
 
  179    virtual bool showInSideBar() 
const;
 
  184    void setShowInSideBar( 
bool hasPart );
 
  202    DCOPClient *dcopClient() 
const;
 
  213    void insertNewAction( TDEAction *action );
 
  218    void insertSyncAction( TDEAction *action );
 
  223    TQPtrList<TDEAction>* newActions() 
const;
 
  228    TQPtrList<TDEAction>* syncActions() 
const;
 
  245    virtual void loadProfile( 
const TQString& directoryPath );
 
  247    virtual void saveToProfile( 
const TQString& directoryPath ) 
const;
 
  261    bool disabled() 
const;
 
  262    void setDisabled( 
bool v );
 
  268    void slotConfigUpdated();
 
  277    KParts::ReadOnlyPart *loadPart();
 
  279    virtual void virtual_hook(  
int id, 
void* data );
 
  282    void partDestroyed();
 
This class provides the interface to the Kontact core for the plugins.
Base class for all Plugins in Kontact.
virtual TQStringList invisibleToolbarActions() const
Returns a list of action name which shall be hidden in the main toolbar.
virtual bool isRunningStandalone()
Reimplement this method and return whether a standalone application is still running This is only req...
virtual bool createDCOPInterface(const TQString &)
Create the DCOP interface for the given serviceType, if this plugin provides it.
virtual bool canDecodeDrag(TQMimeSource *)
Return, if the plugin can handle the drag object of the given mime type.
virtual bool queryClose() const
Reimplement this method if you want to add checks before closing down the main kontact window.
virtual void processDropEvent(TQDropEvent *)
Process drop event.
virtual Summary * createSummaryWidget(TQWidget *)
Reimplement this method if you want to add a widget for your application to Kontact's summary page.
virtual int weight() const
Return the weight of the plugin.
virtual void saveProperties(TDEConfig *)
Session management: save properties.
virtual void readProperties(TDEConfig *)
Session management: read properties.
virtual KParts::ReadOnlyPart * createPart()=0
Reimplement and return the part here.
Summary widget for display in the Summary View plugin.