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