libtdepim

kaddrbook.h
1 /* Simple Addressbook for KMail
2  * Author: Stefan Taferner <taferner@kde.org>
3  * This code is under GPL
4  */
5 #ifndef KAddrBook_h
6 #define KAddrBook_h
7 
8 #include <tqstringlist.h>
9 
10 #include <tdeversion.h>
11 #include <tdeabc/addressee.h>
12 #include <tdemacros.h>
13 
14 namespace TDEABC {
15  class AddressBook;
16 }
17 
18 class TQWidget;
19 
20 class TDE_EXPORT KAddrBookExternal {
21 public:
22  static void addEmail( const TQString &addr, TQWidget *parent );
23  static void addNewAddressee( TQWidget* );
24  static void openEmail( const TQString &addr, TQWidget *parent );
25  static void openAddressBook( TQWidget *parent );
26 
27  static bool addVCard( const TDEABC::Addressee& addressee, TQWidget *parent );
28 
29  static TQString expandDistributionList( const TQString& listName );
30 
39  static TDEABC::Resource* selectResourceForSaving( TDEABC::AddressBook *addressBook );
40 
41 private:
42  static bool addAddressee( const TDEABC::Addressee& addressee );
43 };
44 
45 #endif /*KAddrBook_h*/