summaryrefslogtreecommitdiff
path: root/libopie
authoreilers <eilers>2003-08-30 15:28:26 (UTC)
committer eilers <eilers>2003-08-30 15:28:26 (UTC)
commit9f07321949f8baf1a64db0e4caec58041d3f775f (patch) (side-by-side diff)
treec80bf99717bd81ce4393aa40bbbdf11fbb3f7457 /libopie
parentd9b5fcc45b1fef5ac11ef549a47561c7382ff451 (diff)
downloadopie-9f07321949f8baf1a64db0e4caec58041d3f775f.zip
opie-9f07321949f8baf1a64db0e4caec58041d3f775f.tar.gz
opie-9f07321949f8baf1a64db0e4caec58041d3f775f.tar.bz2
Removed some unimportant debug output which causes slow down..
Diffstat (limited to 'libopie') (more/less context) (show whitespace changes)
-rw-r--r--libopie/pim/ocontact.cpp4
-rw-r--r--libopie/pim/ocontactaccessbackend_xml.cpp7
2 files changed, 7 insertions, 4 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
@@ -1104,13 +1104,13 @@ void OContact::setAnniversary( const QDate &v )
/*! \fn QDate OContact::birthday() const
Returns the birthday of the contact.
*/
QDate OContact::birthday() const
{
QString str = find( Qtopia::Birthday );
- qWarning ("Birthday %s", str.latin1() );
+ // qWarning ("Birthday %s", str.latin1() );
if ( !str.isEmpty() )
return OConversion::dateFromString ( str );
else
return QDate();
}
@@ -1119,13 +1119,13 @@ QDate OContact::birthday() const
Returns the anniversary of the contact.
*/
QDate OContact::anniversary() const
{
QDate empty;
QString str = find( Qtopia::Anniversary );
- qWarning ("Anniversary %s", str.latin1() );
+ // qWarning ("Anniversary %s", str.latin1() );
if ( !str.isEmpty() )
return OConversion::dateFromString ( str );
else
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
@@ -14,12 +14,15 @@
*
* =====================================================================
* Version: $Id$
* =====================================================================
* History:
* $Log$
+ * Revision 1.8 2003/08/30 15:28:26 eilers
+ * Removed some unimportant debug output which causes slow down..
+ *
* Revision 1.7 2003/08/01 12:30:16 eilers
* Merging changes from BRANCH_1_0 to HEAD
*
* Revision 1.6 2003/07/07 16:19:47 eilers
* Fixing serious bug in hasQuerySettings()
*
@@ -167,13 +170,13 @@ bool OContactAccessBackend_XML::save()
idx_offset += cstr.length();
out = "";
// Write all contacts
QListIterator<OContact> it( m_contactList );
for ( ; it.current(); ++it ) {
- qWarning(" Uid %d at Offset: %x", (*it)->uid(), idx_offset );
+ // qWarning(" Uid %d at Offset: %x", (*it)->uid(), idx_offset );
out += "<Contact ";
(*it)->save( out );
out += "/>\n";
cstr = out.utf8();
total_written = f.writeBlock( cstr.data(), cstr.length() );
idx_offset += cstr.length();
@@ -699,13 +702,13 @@ bool OContactAccessBackend_XML::load( const QString filename, bool isJournal )
for( it = aMap.begin(); it != aMap.end(); ++it ){
// qWarning ("Read Attribute: %s=%s", it.key().latin1(),it.data().latin1());
int *find = dict[ it.key() ];
/* Unknown attributes will be stored as "Custom" elements */
if ( !find ) {
- qWarning("Attribute %s not known.", it.key().latin1());
+ // qWarning("Attribute %s not known.", it.key().latin1());
//contact.setCustomField(it.key(), it.data());
customMap.insert( it.key(), it.data() );
continue;
}
/* Check if special conversion is needed and add attribute