23 #ifndef KADDRESSBOOK_PART_H
24 #define KADDRESSBOOK_PART_H
26 #include <tdeparts/event.h>
27 #include <tdeparts/factory.h>
28 #include <tdeparts/part.h>
30 #include "kaddressbookiface.h"
37 class KAddressbookPart: public KParts::ReadOnlyPart, virtual public KAddressBookIface
43 KAddressbookPart( TQWidget *parentWidget, const char *widgetName,
44 TQObject *parent, const char *name, const TQStringList& );
45 virtual ~KAddressbookPart();
47 static TDEAboutData *createAboutData();
49 virtual void saveToProfile( const TQString& path ) const;
50 virtual void loadProfile( const TQString& path );
52 virtual void addEmail( TQString addr );
53 virtual void importVCard( const KURL& url );
54 virtual void importVCardFromData( const TQString& vCard );
56 virtual ASYNC showContactEditor( TQString uid );
58 virtual void showContactEditor( TQString uid );
60 virtual void newContact();
61 virtual void newDistributionList();
62 virtual TQString getNameByPhone( TQString phone );
65 virtual bool openURL( const KURL &url );
66 virtual bool handleCommandLine();
67 virtual void syncAllResources();
70 virtual bool openFile();
71 virtual void guiActivateEvent( KParts::GUIActivateEvent* );
|