kaddressbook
kaddressbookmain.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef KADDRESSBOOKMAIN_H
00025 #define KADDRESSBOOKMAIN_H
00026
00027 #include <tqptrlist.h>
00028
00029 #include <kaction.h>
00030 #include <kapplication.h>
00031 #include <kmainwindow.h>
00032
00033 #include "kaddressbookiface.h"
00034
00035 class KABCore;
00036
00045 class KAddressBookMain : public KMainWindow, virtual public KAddressBookIface
00046 {
00047 Q_OBJECT
00048
00049 public:
00050 KAddressBookMain( const TQString &file = TQString::null );
00051 virtual ~KAddressBookMain();
00052
00053 public slots:
00054 virtual void addEmail( TQString addr );
00055 virtual void importVCard( const KURL& url );
00056 virtual void importVCardFromData( const TQString& vCard );
00057 virtual ASYNC showContactEditor( TQString uid );
00058 virtual void newContact();
00059 virtual void newDistributionList();
00060 virtual TQString getNameByPhone( TQString phone );
00061 virtual void save();
00062 virtual void exit();
00063 virtual bool handleCommandLine();
00064 virtual void syncAllResources();
00065
00066 protected:
00067 void initActions();
00068
00073 void saveProperties( KConfig* );
00074
00080 void readProperties( KConfig* );
00081
00082 virtual bool queryClose();
00083
00084
00085 void loadProfile( const TQString& path );
00086
00087
00088 void saveToProfile( const TQString& path ) const;
00089
00090 private slots:
00091 void configureKeyBindings();
00092 void configureToolbars();
00093 void newToolbarConfig();
00094
00095 private:
00096 KABCore *mCore;
00097 };
00098
00099 #endif
|