24 #include "addressee.h"
25 #include "vcardconverter.h"
27 #include "vcardformatplugin.h"
31 VCardFormatPlugin::VCardFormatPlugin()
35 VCardFormatPlugin::~VCardFormatPlugin()
43 TQTextStream t( file );
44 t.setEncoding( TQTextStream::Latin1 );
50 if ( ! l.first().isEmpty() ) {
51 addressee = l.first();
62 TQTextStream t( file );
63 t.setEncoding( TQTextStream::Latin1 );
70 Addressee::List::iterator itr;
71 for ( itr = l.begin(); itr != l.end(); ++itr) {
75 resource->insertAddressee( addressee );
84 Addressee::List vcardlist;
87 vcardlist.append( addressee );
89 TQTextStream t( file );
90 t.setEncoding( TQTextStream::UnicodeUTF8 );
97 Addressee::List vcardlist;
100 for ( it = resource->begin(); it != resource->end(); ++it ) {
101 (*it).setChanged(
false );
102 vcardlist.append( *it );
105 TQTextStream t( file );
106 t.setEncoding( TQTextStream::UnicodeUTF8 );
114 file->readLine( line, 1024 );
115 line = line.stripWhiteSpace();
116 if ( line ==
"BEGIN:VCARD" )