25 #ifndef KADDRESSBOOK_PLUGIN_H 26 #define KADDRESSBOOK_PLUGIN_H 28 #include <tdelocale.h> 29 #include <tdeparts/part.h> 31 #include "kaddressbookiface_stub.h" 33 #include <uniqueapphandler.h> 50 KAddressbookPlugin( Kontact::Core *core, const char *name, const TQStringList& ); 51 virtual ~KAddressbookPlugin(); 53 virtual bool createDCOPInterface( const TQString &serviceType ); 54 virtual bool isRunningStandalone(); 55 int weight() const { return 300; } 57 bool canDecodeDrag( TQMimeSource * ); 58 void processDropEvent( TQDropEvent * ); 60 virtual TQStringList configModules() const; 62 virtual TQStringList invisibleToolbarActions() const; 64 virtual void configUpdated(); 66 KAddressBookIface_stub *interface(); 69 void loadProfile( const TQString& directory ); 72 void saveToProfile( const TQString& directory ) const; 75 KParts::ReadOnlyPart *createPart(); 77 void slotNewContact(); 78 void slotNewDistributionList(); 79 void slotSyncContacts(); 82 KAddressBookIface_stub *mStub; If the standalone application is running by itself, we need to watch for when the user closes it...
This class provides the interface to the Kontact core for the plugins.
virtual int newInstance() We can't use k_dcop and dcopidl here, because the data passed to newInstance can't be expressed in te...
Base class for all Plugins in Kontact.
virtual void loadCommandLineOptions()=0 This must be reimplemented so that app-specific command line options can be parsed.
DCOP Object that has the name of the standalone application (e.g.
|