Diffstat (limited to 'kabc/formats/vcardformatplugin2.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kabc/formats/vcardformatplugin2.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kabc/formats/vcardformatplugin2.cpp b/kabc/formats/vcardformatplugin2.cpp index f19e218..41b0c9a 100644 --- a/kabc/formats/vcardformatplugin2.cpp +++ b/kabc/formats/vcardformatplugin2.cpp | |||
@@ -31,12 +31,13 @@ VCardFormatPlugin2::VCardFormatPlugin2() | |||
31 | VCardFormatPlugin2::~VCardFormatPlugin2() | 31 | VCardFormatPlugin2::~VCardFormatPlugin2() |
32 | { | 32 | { |
33 | } | 33 | } |
34 | 34 | ||
35 | bool VCardFormatPlugin2::load( Addressee &addressee, QFile *file ) | 35 | bool VCardFormatPlugin2::load( Addressee &addressee, QFile *file ) |
36 | { | 36 | { |
37 | qDebug("VCardFormatPlugin2::load"); | ||
37 | QString data; | 38 | QString data; |
38 | 39 | ||
39 | QTextStream t( file ); | 40 | QTextStream t( file ); |
40 | t.setEncoding( QTextStream::UnicodeUTF8 ); | 41 | t.setEncoding( QTextStream::UnicodeUTF8 ); |
41 | data = t.read(); | 42 | data = t.read(); |
42 | 43 | ||
@@ -51,12 +52,13 @@ bool VCardFormatPlugin2::load( Addressee &addressee, QFile *file ) | |||
51 | 52 | ||
52 | return false; | 53 | return false; |
53 | } | 54 | } |
54 | 55 | ||
55 | bool VCardFormatPlugin2::loadAll( AddressBook *addressBook, Resource *resource, QFile *file ) | 56 | bool VCardFormatPlugin2::loadAll( AddressBook *addressBook, Resource *resource, QFile *file ) |
56 | { | 57 | { |
58 | qDebug("VCardFormatPlugin2::loadAll"); | ||
57 | QString data; | 59 | QString data; |
58 | 60 | ||
59 | QTextStream t( file ); | 61 | QTextStream t( file ); |
60 | t.setEncoding( QTextStream::UnicodeUTF8 ); | 62 | t.setEncoding( QTextStream::UnicodeUTF8 ); |
61 | data = t.read(); | 63 | data = t.read(); |
62 | 64 | ||
@@ -74,12 +76,13 @@ bool VCardFormatPlugin2::loadAll( AddressBook *addressBook, Resource *resource, | |||
74 | 76 | ||
75 | return true; | 77 | return true; |
76 | } | 78 | } |
77 | 79 | ||
78 | void VCardFormatPlugin2::save( const Addressee &addressee, QFile *file ) | 80 | void VCardFormatPlugin2::save( const Addressee &addressee, QFile *file ) |
79 | { | 81 | { |
82 | qDebug("VCardFormatPlugin2::save"); | ||
80 | VCardTool tool; | 83 | VCardTool tool; |
81 | Addressee::List vcardlist; | 84 | Addressee::List vcardlist; |
82 | 85 | ||
83 | 86 | ||
84 | vcardlist.append( addressee ); | 87 | vcardlist.append( addressee ); |
85 | 88 | ||
@@ -87,12 +90,13 @@ void VCardFormatPlugin2::save( const Addressee &addressee, QFile *file ) | |||
87 | t.setEncoding( QTextStream::UnicodeUTF8 ); | 90 | t.setEncoding( QTextStream::UnicodeUTF8 ); |
88 | t << tool.createVCards( vcardlist ); | 91 | t << tool.createVCards( vcardlist ); |
89 | } | 92 | } |
90 | 93 | ||
91 | void VCardFormatPlugin2::saveAll( AddressBook *ab, Resource *resource, QFile *file ) | 94 | void VCardFormatPlugin2::saveAll( AddressBook *ab, Resource *resource, QFile *file ) |
92 | { | 95 | { |
96 | qDebug("VCardFormatPlugin2::saveAll"); | ||
93 | VCardTool tool; | 97 | VCardTool tool; |
94 | Addressee::List vcardlist; | 98 | Addressee::List vcardlist; |
95 | 99 | ||
96 | AddressBook::Iterator it; | 100 | AddressBook::Iterator it; |
97 | for ( it = ab->begin(); it != ab->end(); ++it ) { | 101 | for ( it = ab->begin(); it != ab->end(); ++it ) { |
98 | if ( (*it).resource() == resource ) { | 102 | if ( (*it).resource() == resource ) { |