2 #include <tdeabc/addressee.h>
3 #include <vcardconverter.h>
12 Addressee::List l = vCardsAsAddresseeList();
13 TQString vcards = vCardsAsText();
19 if ( l.size() != parsed.size() ) {
20 kdDebug()<<
"\tSize - FAILED : "<<l.size()<<
" vs. parsed "<<parsed.size()<<
endl;
26 Addressee::List::iterator itr1;
27 Addressee::List::iterator itr2;
28 for ( itr1 = l.begin(), itr2 = parsed.begin();
29 itr1 != l.end(); ++itr1, ++itr2 ) {
30 if ( (*itr1).fullEmail() == (*itr2).fullEmail() &&
31 (*itr1).organization() == (*itr2).organization() &&
32 (*itr1).phoneNumbers() == (*itr2).phoneNumbers() &&
33 (*itr1).emails() == (*itr2).emails() &&
34 (*itr1).role() == (*itr2).role() ) {
36 kdDebug()<<
"\t\t"<< (*itr1).fullEmail() <<
" VS. " << (*itr2).fullEmail()<<
endl;
39 kdDebug()<<
">>>>>>>Addressee from code<<<<<<<<"<<
endl;
41 kdDebug()<<
">>>>>>>Addressee from file<<<<<<<<"<<
endl;
Class to converting contact objects into vCard format and vice versa.
Addressee::List parseVCards(const TQString &vcard)
Parses a string in vCard format and returns a list of contact objects.
kndbgstream & endl(kndbgstream &s)
kdbgstream kdDebug(int area=0)
static data, shared by ALL addressee objects