author | eilers <eilers> | 2003-08-30 15:28:26 (UTC) |
---|---|---|
committer | eilers <eilers> | 2003-08-30 15:28:26 (UTC) |
commit | 9f07321949f8baf1a64db0e4caec58041d3f775f (patch) (unidiff) | |
tree | c80bf99717bd81ce4393aa40bbbdf11fbb3f7457 | |
parent | d9b5fcc45b1fef5ac11ef549a47561c7382ff451 (diff) | |
download | opie-9f07321949f8baf1a64db0e4caec58041d3f775f.zip opie-9f07321949f8baf1a64db0e4caec58041d3f775f.tar.gz opie-9f07321949f8baf1a64db0e4caec58041d3f775f.tar.bz2 |
Removed some unimportant debug output which causes slow down..
-rw-r--r-- | libopie/pim/ocontact.cpp | 4 | ||||
-rw-r--r-- | libopie/pim/ocontactaccessbackend_xml.cpp | 7 | ||||
-rw-r--r-- | libopie2/opiepim/backend/ocontactaccessbackend_xml.cpp | 7 | ||||
-rw-r--r-- | libopie2/opiepim/ocontact.cpp | 4 |
4 files changed, 14 insertions, 8 deletions
diff --git a/libopie/pim/ocontact.cpp b/libopie/pim/ocontact.cpp index e34feeb..0f05b65 100644 --- a/libopie/pim/ocontact.cpp +++ b/libopie/pim/ocontact.cpp | |||
@@ -1106,9 +1106,9 @@ void OContact::setAnniversary( const QDate &v ) | |||
1106 | */ | 1106 | */ |
1107 | QDate OContact::birthday() const | 1107 | QDate OContact::birthday() const |
1108 | { | 1108 | { |
1109 | QString str = find( Qtopia::Birthday ); | 1109 | QString str = find( Qtopia::Birthday ); |
1110 | qWarning ("Birthday %s", str.latin1() ); | 1110 | // qWarning ("Birthday %s", str.latin1() ); |
1111 | if ( !str.isEmpty() ) | 1111 | if ( !str.isEmpty() ) |
1112 | return OConversion::dateFromString ( str ); | 1112 | return OConversion::dateFromString ( str ); |
1113 | else | 1113 | else |
1114 | return QDate(); | 1114 | return QDate(); |
@@ -1121,9 +1121,9 @@ QDate OContact::birthday() const | |||
1121 | QDate OContact::anniversary() const | 1121 | QDate OContact::anniversary() const |
1122 | { | 1122 | { |
1123 | QDate empty; | 1123 | QDate empty; |
1124 | QString str = find( Qtopia::Anniversary ); | 1124 | QString str = find( Qtopia::Anniversary ); |
1125 | qWarning ("Anniversary %s", str.latin1() ); | 1125 | // qWarning ("Anniversary %s", str.latin1() ); |
1126 | if ( !str.isEmpty() ) | 1126 | if ( !str.isEmpty() ) |
1127 | return OConversion::dateFromString ( str ); | 1127 | return OConversion::dateFromString ( str ); |
1128 | else | 1128 | else |
1129 | return empty; | 1129 | return empty; |
diff --git a/libopie/pim/ocontactaccessbackend_xml.cpp b/libopie/pim/ocontactaccessbackend_xml.cpp index 1c21619..1b5af2f 100644 --- a/libopie/pim/ocontactaccessbackend_xml.cpp +++ b/libopie/pim/ocontactaccessbackend_xml.cpp | |||
@@ -16,8 +16,11 @@ | |||
16 | * Version: $Id$ | 16 | * Version: $Id$ |
17 | * ===================================================================== | 17 | * ===================================================================== |
18 | * History: | 18 | * History: |
19 | * $Log$ | 19 | * $Log$ |
20 | * Revision 1.8 2003/08/30 15:28:26 eilers | ||
21 | * Removed some unimportant debug output which causes slow down.. | ||
22 | * | ||
20 | * Revision 1.7 2003/08/01 12:30:16 eilers | 23 | * Revision 1.7 2003/08/01 12:30:16 eilers |
21 | * Merging changes from BRANCH_1_0 to HEAD | 24 | * Merging changes from BRANCH_1_0 to HEAD |
22 | * | 25 | * |
23 | * Revision 1.6 2003/07/07 16:19:47 eilers | 26 | * Revision 1.6 2003/07/07 16:19:47 eilers |
@@ -169,9 +172,9 @@ bool OContactAccessBackend_XML::save() | |||
169 | 172 | ||
170 | // Write all contacts | 173 | // Write all contacts |
171 | QListIterator<OContact> it( m_contactList ); | 174 | QListIterator<OContact> it( m_contactList ); |
172 | for ( ; it.current(); ++it ) { | 175 | for ( ; it.current(); ++it ) { |
173 | qWarning(" Uid %d at Offset: %x", (*it)->uid(), idx_offset ); | 176 | // qWarning(" Uid %d at Offset: %x", (*it)->uid(), idx_offset ); |
174 | out += "<Contact "; | 177 | out += "<Contact "; |
175 | (*it)->save( out ); | 178 | (*it)->save( out ); |
176 | out += "/>\n"; | 179 | out += "/>\n"; |
177 | cstr = out.utf8(); | 180 | cstr = out.utf8(); |
@@ -701,9 +704,9 @@ bool OContactAccessBackend_XML::load( const QString filename, bool isJournal ) | |||
701 | 704 | ||
702 | int *find = dict[ it.key() ]; | 705 | int *find = dict[ it.key() ]; |
703 | /* Unknown attributes will be stored as "Custom" elements */ | 706 | /* Unknown attributes will be stored as "Custom" elements */ |
704 | if ( !find ) { | 707 | if ( !find ) { |
705 | qWarning("Attribute %s not known.", it.key().latin1()); | 708 | // qWarning("Attribute %s not known.", it.key().latin1()); |
706 | //contact.setCustomField(it.key(), it.data()); | 709 | //contact.setCustomField(it.key(), it.data()); |
707 | customMap.insert( it.key(), it.data() ); | 710 | customMap.insert( it.key(), it.data() ); |
708 | continue; | 711 | continue; |
709 | } | 712 | } |
diff --git a/libopie2/opiepim/backend/ocontactaccessbackend_xml.cpp b/libopie2/opiepim/backend/ocontactaccessbackend_xml.cpp index 1c21619..1b5af2f 100644 --- a/libopie2/opiepim/backend/ocontactaccessbackend_xml.cpp +++ b/libopie2/opiepim/backend/ocontactaccessbackend_xml.cpp | |||
@@ -16,8 +16,11 @@ | |||
16 | * Version: $Id$ | 16 | * Version: $Id$ |
17 | * ===================================================================== | 17 | * ===================================================================== |
18 | * History: | 18 | * History: |
19 | * $Log$ | 19 | * $Log$ |
20 | * Revision 1.8 2003/08/30 15:28:26 eilers | ||
21 | * Removed some unimportant debug output which causes slow down.. | ||
22 | * | ||
20 | * Revision 1.7 2003/08/01 12:30:16 eilers | 23 | * Revision 1.7 2003/08/01 12:30:16 eilers |
21 | * Merging changes from BRANCH_1_0 to HEAD | 24 | * Merging changes from BRANCH_1_0 to HEAD |
22 | * | 25 | * |
23 | * Revision 1.6 2003/07/07 16:19:47 eilers | 26 | * Revision 1.6 2003/07/07 16:19:47 eilers |
@@ -169,9 +172,9 @@ bool OContactAccessBackend_XML::save() | |||
169 | 172 | ||
170 | // Write all contacts | 173 | // Write all contacts |
171 | QListIterator<OContact> it( m_contactList ); | 174 | QListIterator<OContact> it( m_contactList ); |
172 | for ( ; it.current(); ++it ) { | 175 | for ( ; it.current(); ++it ) { |
173 | qWarning(" Uid %d at Offset: %x", (*it)->uid(), idx_offset ); | 176 | // qWarning(" Uid %d at Offset: %x", (*it)->uid(), idx_offset ); |
174 | out += "<Contact "; | 177 | out += "<Contact "; |
175 | (*it)->save( out ); | 178 | (*it)->save( out ); |
176 | out += "/>\n"; | 179 | out += "/>\n"; |
177 | cstr = out.utf8(); | 180 | cstr = out.utf8(); |
@@ -701,9 +704,9 @@ bool OContactAccessBackend_XML::load( const QString filename, bool isJournal ) | |||
701 | 704 | ||
702 | int *find = dict[ it.key() ]; | 705 | int *find = dict[ it.key() ]; |
703 | /* Unknown attributes will be stored as "Custom" elements */ | 706 | /* Unknown attributes will be stored as "Custom" elements */ |
704 | if ( !find ) { | 707 | if ( !find ) { |
705 | qWarning("Attribute %s not known.", it.key().latin1()); | 708 | // qWarning("Attribute %s not known.", it.key().latin1()); |
706 | //contact.setCustomField(it.key(), it.data()); | 709 | //contact.setCustomField(it.key(), it.data()); |
707 | customMap.insert( it.key(), it.data() ); | 710 | customMap.insert( it.key(), it.data() ); |
708 | continue; | 711 | continue; |
709 | } | 712 | } |
diff --git a/libopie2/opiepim/ocontact.cpp b/libopie2/opiepim/ocontact.cpp index e34feeb..0f05b65 100644 --- a/libopie2/opiepim/ocontact.cpp +++ b/libopie2/opiepim/ocontact.cpp | |||
@@ -1106,9 +1106,9 @@ void OContact::setAnniversary( const QDate &v ) | |||
1106 | */ | 1106 | */ |
1107 | QDate OContact::birthday() const | 1107 | QDate OContact::birthday() const |
1108 | { | 1108 | { |
1109 | QString str = find( Qtopia::Birthday ); | 1109 | QString str = find( Qtopia::Birthday ); |
1110 | qWarning ("Birthday %s", str.latin1() ); | 1110 | // qWarning ("Birthday %s", str.latin1() ); |
1111 | if ( !str.isEmpty() ) | 1111 | if ( !str.isEmpty() ) |
1112 | return OConversion::dateFromString ( str ); | 1112 | return OConversion::dateFromString ( str ); |
1113 | else | 1113 | else |
1114 | return QDate(); | 1114 | return QDate(); |
@@ -1121,9 +1121,9 @@ QDate OContact::birthday() const | |||
1121 | QDate OContact::anniversary() const | 1121 | QDate OContact::anniversary() const |
1122 | { | 1122 | { |
1123 | QDate empty; | 1123 | QDate empty; |
1124 | QString str = find( Qtopia::Anniversary ); | 1124 | QString str = find( Qtopia::Anniversary ); |
1125 | qWarning ("Anniversary %s", str.latin1() ); | 1125 | // qWarning ("Anniversary %s", str.latin1() ); |
1126 | if ( !str.isEmpty() ) | 1126 | if ( !str.isEmpty() ) |
1127 | return OConversion::dateFromString ( str ); | 1127 | return OConversion::dateFromString ( str ); |
1128 | else | 1128 | else |
1129 | return empty; | 1129 | return empty; |