1 #include "vcardparser.h"
2 #include <tdeabc/addressee.h>
13 addr.setName(
"Frank Dawson" );
14 addr.setOrganization(
"Lotus Development Corporation" );
15 addr.setUrl(
KURL(
"http://home.earthlink.net/~fdawson") );
19 |PhoneNumber::Work ) );
21 Address a( Address::Work | Address::Postal | Address::Parcel );
22 a.setStreet(
"6544 Battleford Drive" );
23 a.setLocality(
"Raleigh" );
25 a.setPostalCode(
"27613-3502" );
26 a.setCountry(
"U.S.A." );
36 addr.setName(
"Tim Howes" );
37 addr.setOrganization(
"Netscape Communications Corp." );
40 |PhoneNumber::Work) );
43 a.setStreet(
"501 E. Middlefield Rd." );
44 a.setLocality(
"Mountain View" );
46 a.setPostalCode(
"94043" );
47 a.setCountry(
"U.S.A." );
57 addr.setName(
"ian geiser" );
58 addr.setOrganization(
"Source eXtreme" );
60 addr.setTitle(
"VP of Engineering" );
69 addr.setName( TQString::fromUtf8(
"Jahn") );
70 addr.setFamilyName( TQString::fromUtf8(
"Böhmermann") );
71 addr.setFormattedName( TQString::fromUtf8(
"Jahn Böhmermann") );
72 addr.setOrganization( TQString::fromUtf8(
"HansWürstel AG") );
73 addr.
insertEmail( TQString::fromUtf8(
"boehmermann@wuerstel.com") );
74 addr.setTitle( TQString::fromUtf8(
"Komödiant") );
77 a.setStreet( TQString::fromUtf8(
"Müllerstrasse 21") );
78 a.setLocality( TQString::fromUtf8(
"Wörthersee") );
79 a.setRegion( TQString::fromUtf8(
"Kärnten") );
80 a.setPostalCode(
"8400" );
81 a.setCountry( TQString::fromUtf8(
"Österreich") );
91 addr.setName( TQString::fromUtf8(
"Иван") );
92 addr.setFamilyName( TQString::fromUtf8(
"Иванов") );
93 addr.setFormattedName( TQString::fromUtf8(
"Иван Иванов") );
94 addr.setOrganization( TQString::fromUtf8(
"България ООД") );
95 addr.
insertEmail( TQString::fromUtf8(
"иван.иванов@българия.com") );
96 addr.setTitle( TQString::fromUtf8(
"Др") );
99 a.setStreet( TQString::fromUtf8(
"Цар Борис III") );
100 a.setLocality( TQString::fromUtf8(
"София") );
101 a.setRegion( TQString::fromUtf8(
"София град") );
102 a.setPostalCode(
"1000" );
103 a.setCountry( TQString::fromUtf8(
"България") );
110 vcardAsText(
const TQString& location )
113 TQFile file( location );
114 if ( file.open( IO_ReadOnly ) ) {
115 TQTextStream stream( &file );
116 stream.setEncoding( TQTextStream::UnicodeUTF8 );
117 if ( !stream.eof() ) {
118 line = stream.read();
126 vCardsAsAddresseeList()
130 l.append( vcard1() );
131 l.append( vcard2() );
132 l.append( vcard3() );
133 l.append( vcard8() );
134 l.append( vcard9() );
142 TQString vcards = vcardAsText(
"tests/vcard1.vcf" );
143 vcards += vcardAsText(
"tests/vcard2.vcf" );
144 vcards += vcardAsText(
"tests/vcard3.vcf" );
145 vcards += vcardAsText(
"tests/vcard8.vcf" );
146 vcards += vcardAsText(
"tests/vcard9.vcf" );
Postal address information.
void insertPhoneNumber(const PhoneNumber &phoneNumber)
Insert a phone number.
void insertEmail(const TQString &email, bool preferred=false)
Insert an email address.
void insertAddress(const Address &address)
Insert an address.
static data, shared by ALL addressee objects