From 816db8f76a1fd8b5cc586dfd5ebf8d6298221801 Mon Sep 17 00:00:00 2001 From: zautrix Date: Wed, 07 Jul 2004 03:28:52 +0000 Subject: Changed some strings. Removed some kdebug --- (limited to 'kabc') diff --git a/kabc/addressbook.cpp b/kabc/addressbook.cpp index 97bd3ef..0838157 100644 --- a/kabc/addressbook.cpp +++ b/kabc/addressbook.cpp @@ -251,7 +251,7 @@ AddressBook::~AddressBook() bool AddressBook::load() { - kdDebug(5700) << "AddressBook::load()" << endl; + clear(); diff --git a/kabc/plugins/file/resourcefile.cpp b/kabc/plugins/file/resourcefile.cpp index 80af841..3920f69 100644 --- a/kabc/plugins/file/resourcefile.cpp +++ b/kabc/plugins/file/resourcefile.cpp @@ -194,7 +194,7 @@ void ResourceFile::doClose() bool ResourceFile::load() { - kdDebug(5700) << "ResourceFile::load(): '" << mFileName << "'" << endl; + QFile file( mFileName ); if ( !file.open( IO_ReadOnly ) ) { @@ -210,7 +210,7 @@ bool ResourceFile::load() bool ResourceFile::save( Ticket *ticket ) { // qDebug("ResourceFile::save format %s, %s", mFileName.latin1(), mFormatName.latin1()); - kdDebug(5700) << "ResourceFile::save()" << endl; + // create backup file QString extension = "_" + QString::number( QDate::currentDate().dayOfWeek() ); @@ -257,7 +257,7 @@ bool ResourceFile::save( Ticket *ticket ) bool ResourceFile::lock( const QString &fileName ) { - kdDebug(5700) << "ResourceFile::lock()" << endl; + QString fn = fileName; @@ -268,7 +268,7 @@ bool ResourceFile::lock( const QString &fileName ) KURL url(fn); QString lockName = locateLocal( "data", "kabc/lock/" + url.fileName() + ".lock" ); - kdDebug(5700) << "-- lock name: " << lockName << endl; + if (QFile::exists( lockName )) return false; diff --git a/kabc/stdaddressbook.cpp b/kabc/stdaddressbook.cpp index 075f12f..1e00cc6 100644 --- a/kabc/stdaddressbook.cpp +++ b/kabc/stdaddressbook.cpp @@ -152,7 +152,7 @@ void StdAddressBook::init( bool ) addResource( res ); } else - kdDebug(5700) << "No resource available!!!" << endl; + qDebug(" No resource available!!!"); } setStandardResource( res ); -- cgit v0.9.0.2