author | zautrix <zautrix> | 2005-01-06 00:18:02 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-06 00:18:02 (UTC) |
commit | 5e7c3e3e51fa939e97b73e6443089edcec8dc663 (patch) (unidiff) | |
tree | 213be239777ec911d364f736f9e6cef1f62a7c68 /kabc | |
parent | 0618fbee69bfde7f7f3c4a54b5cc45dac446abd3 (diff) | |
download | kdepimpi-5e7c3e3e51fa939e97b73e6443089edcec8dc663.zip kdepimpi-5e7c3e3e51fa939e97b73e6443089edcec8dc663.tar.gz kdepimpi-5e7c3e3e51fa939e97b73e6443089edcec8dc663.tar.bz2 |
kapi pic fix
-rw-r--r-- | kabc/vcardformatimpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kabc/vcardformatimpl.cpp b/kabc/vcardformatimpl.cpp index c31af46..b9fe6ff 100644 --- a/kabc/vcardformatimpl.cpp +++ b/kabc/vcardformatimpl.cpp | |||
@@ -110,33 +110,33 @@ void VCardFormatImpl::save( const Addressee &addressee, QFile *file ) | |||
110 | vcards.setCardList( vcardlist ); | 110 | vcards.setCardList( vcardlist ); |
111 | 111 | ||
112 | QCString vcardData = vcards.asString(); | 112 | QCString vcardData = vcards.asString(); |
113 | file->writeBlock( (const char*)vcardData, vcardData.length() ); | 113 | file->writeBlock( (const char*)vcardData, vcardData.length() ); |
114 | } | 114 | } |
115 | 115 | ||
116 | void VCardFormatImpl::saveAll( AddressBook *ab, Resource *resource, QFile *file ) | 116 | void VCardFormatImpl::saveAll( AddressBook *ab, Resource *resource, QFile *file ) |
117 | { | 117 | { |
118 | VCardEntity vcards; | 118 | VCardEntity vcards; |
119 | VCardList vcardlist; | 119 | VCardList vcardlist; |
120 | vcardlist.setAutoDelete( true ); | 120 | vcardlist.setAutoDelete( true ); |
121 | 121 | ||
122 | AddressBook::Iterator it; | 122 | AddressBook::Iterator it; |
123 | for ( it = ab->begin(); it != ab->end(); ++it ) { | 123 | for ( it = ab->begin(); it != ab->end(); ++it ) { |
124 | if ( (*it).resource() == resource ) { | 124 | if ( (*it).resource() == resource ) { |
125 | VCard *v = new VCard; | 125 | VCard *v = new VCard; |
126 | saveAddressee( (*it), v, false ); | 126 | saveAddressee( (*it), v, true ); |
127 | (*it).setChanged( false ); | 127 | (*it).setChanged( false ); |
128 | vcardlist.append( v ); | 128 | vcardlist.append( v ); |
129 | } | 129 | } |
130 | } | 130 | } |
131 | 131 | ||
132 | vcards.setCardList( vcardlist ); | 132 | vcards.setCardList( vcardlist ); |
133 | 133 | ||
134 | QCString vcardData = vcards.asString(); | 134 | QCString vcardData = vcards.asString(); |
135 | file->writeBlock( (const char*)vcardData, vcardData.length() ); | 135 | file->writeBlock( (const char*)vcardData, vcardData.length() ); |
136 | } | 136 | } |
137 | 137 | ||
138 | bool VCardFormatImpl::loadAddressee( Addressee& addressee, VCard *v ) | 138 | bool VCardFormatImpl::loadAddressee( Addressee& addressee, VCard *v ) |
139 | { | 139 | { |
140 | QPtrList<ContentLine> contentLines = v->contentLineList(); | 140 | QPtrList<ContentLine> contentLines = v->contentLineList(); |
141 | ContentLine *cl; | 141 | ContentLine *cl; |
142 | 142 | ||