Diffstat (limited to 'core/pim/addressbook/addressbook.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/addressbook/addressbook.cpp | 65 |
1 files changed, 33 insertions, 32 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index 9ae66d1..94c0a13 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp @@ -24,3 +24,3 @@ - +#include <opie2/odebug.h> #include <opie2/ofileselector.h> @@ -253,3 +253,3 @@ AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name, - // qDebug("adressbook contrsuction: t=%d", t.elapsed() ); + // Opie::Core::odebug << "adressbook contrsuction: t=" << t.elapsed() << oendl; connect( qApp, SIGNAL( flush() ), this, SLOT( flush() ) ); @@ -269,6 +269,6 @@ void AddressbookWindow::slotConfig() if ( QPEApplication::execDialog( dlg ) ) { - qWarning ("Config Dialog accepted!"); + Opie::Core::owarn << "Config Dialog accepted!" << oendl; m_config = dlg -> getConfig(); if ( m_curFontSize != m_config.fontSize() ){ - qWarning("Font was changed!"); + Opie::Core::owarn << "Font was changed!" << oendl; m_curFontSize = m_config.fontSize(); @@ -285,3 +285,3 @@ void AddressbookWindow::slotSetFont( int size ) { - qWarning("void AddressbookWindow::slotSetFont( %d )", size); + Opie::Core::owarn << "void AddressbookWindow::slotSetFont( " << size << " )" << oendl; @@ -327,6 +327,6 @@ void AddressbookWindow::exportvCard() { - qWarning(" void AddressbookWindow::exportvCard()"); + Opie::Core::owarn << "void AddressbookWindow::exportvCard()" << oendl; QString filename = Opie::Ui::OFileDialog::getSaveFileName( 1,"/home/"); //,"", "*", this ); if( !filename.isEmpty() && ( filename[filename.length()-1] != '/' ) ){ - qWarning(" Save to file %s, (%d)", filename.latin1(), filename.length()-1 ); + Opie::Core::owarn << " Save to file " << filename << ", (" << filename.length()-1 << ")" << oendl; Opie::OPimContact curCont = m_abView->currentEntry(); @@ -352,3 +352,3 @@ void AddressbookWindow::setDocument( const QString &filename ) { - qWarning( "void AddressbookWindow::setDocument( %s )", filename.latin1() ); + Opie::Core::owarn << "void AddressbookWindow::setDocument( " << filename << " )" << oendl; @@ -364,6 +364,6 @@ void AddressbookWindow::setDocument( const QString &filename ) case 0: - qWarning("YES clicked"); + Opie::Core::owarn << "YES clicked" << oendl; break; case 1: - qWarning("NO clicked"); + Opie::Core::owarn << "NO clicked" << oendl; return; @@ -377,3 +377,3 @@ void AddressbookWindow::setDocument( const QString &filename ) Opie::OPimContactAccess::List allList = access->allRecords(); - qWarning( "Found number of contacts in File: %d", allList.count() ); + Opie::Core::owarn << "Found number of contacts in File: " << allList.count() << oendl; @@ -388,3 +388,3 @@ void AddressbookWindow::setDocument( const QString &filename ) for ( it = allList.begin(); it != allList.end(); ++it ){ - qWarning("Adding Contact from: %s", (*it).fullName().latin1() ); + Opie::Core::owarn << "Adding Contact from: " << (*it).fullName() << oendl; if ( doAsk ){ @@ -397,3 +397,3 @@ void AddressbookWindow::setDocument( const QString &filename ) case 0: - qWarning("YES clicked"); + Opie::Core::owarn << "YES clicked" << oendl; m_abView->addEntry( *it ); @@ -401,6 +401,6 @@ void AddressbookWindow::setDocument( const QString &filename ) case 1: - qWarning("NO clicked"); + Opie::Core::owarn << "NO clicked" << oendl; break; case 2: - qWarning("YesAll clicked"); + Opie::Core::owarn << "YesAll clicked" << oendl; doAsk = false; @@ -540,5 +540,5 @@ void AddressbookWindow::writeMail() if ( m_config.useQtMail() ){ - qWarning ("Accessing: %s", (basepath + "/bin/qtmail").latin1()); + Opie::Core::owarn << "Accessing: " << (basepath + "/bin/qtmail") << oendl; if ( QFile::exists( basepath + "/bin/qtmail" ) ){ - qWarning ("QCop"); + Opie::Core::owarn << "QCop" << oendl; QCopEnvelope e("QPE/Application/qtmail", "writeMail(QString,QString)"); @@ -550,5 +550,5 @@ void AddressbookWindow::writeMail() if ( m_config.useOpieMail() ){ - qWarning ("Accessing: %s", (basepath + "/bin/opiemail").latin1()); + Opie::Core::owarn << "Accessing: " << (basepath + "/bin/opiemail") << oendl; if ( QFile::exists( basepath + "/bin/opiemail" ) ){ - qWarning ("QCop"); + Opie::Core::owarn << "QCop" << oendl; QCopEnvelope e("QPE/Application/opiemail", "writeMail(QString,QString)"); @@ -594,3 +594,3 @@ void AddressbookWindow::slotBeam() - qWarning("Beaming: %s", beamFilename.latin1() ); + Opie::Core::owarn << "Beaming: " << beamFilename << oendl; @@ -641,3 +641,3 @@ void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data) bool needShow = FALSE; - qWarning("Receiving QCop-Call with message %s", QString( msg ).latin1() ); + Opie::Core::owarn << "Receiving QCop-Call with message " << msg << oendl; @@ -657,3 +657,3 @@ void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data) parseName( name, &fn, &mn, &ln ); - // qDebug( " %s - %s - %s", fn.latin1(), mn.latin1(), ln.latin1() ); + // Opie::Core::odebug << " " << fn << " - " << mn " - " << ln << oendl; cnt.setFirstName( fn ); @@ -684,3 +684,3 @@ void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data) - qWarning( "Showing uid: %d" , uid ); + Opie::Core::owarn << "Showing uid: " << uid << oendl; @@ -764,3 +764,3 @@ void AddressbookWindow::editPersonal() if ( ! actionPersonal->isOn() ){ - qWarning("*** ++++"); + Opie::Core::owarn << "*** ++++" << oendl; actionPersonal->setOn( true ); @@ -783,6 +783,6 @@ void AddressbookWindow::slotPersonalView() { - qWarning("slotPersonalView()"); + Opie::Core::owarn << "slotPersonalView()" << oendl; if (!actionPersonal->isOn()) { // we just turned it off - qWarning("slotPersonalView()-> OFF"); + Opie::Core::owarn << "slotPersonalView()-> OFF" << oendl; setCaption( tr("Contacts") ); @@ -799,3 +799,3 @@ void AddressbookWindow::slotPersonalView() - qWarning("slotPersonalView()-> ON"); + Opie::Core::owarn << "slotPersonalView()-> ON" << oendl; // XXX need to disable some QActions. @@ -889,3 +889,3 @@ void AddressbookWindow::slotNotFound() { - qWarning("Got notfound signal!"); + Opie::Core::owarn << "Got not found signal!" << oendl; QMessageBox::information( this, tr( "Not Found" ), @@ -897,3 +897,3 @@ void AddressbookWindow::slotWrapAround() { - qWarning("Got wrap signal!"); + Opie::Core::owarn << "Got wrap signal!" << oendl; // if ( doNotifyWrapAround ) @@ -906,3 +906,4 @@ void AddressbookWindow::slotSetCategory( int c ) { - qWarning( "void AddressbookWindow::slotSetCategory( %d ) from %d", c, catMenu->count() ); + Opie::Core::owarn << "void AddressbookWindow::slotSetCategory( " << c << " ) from " + << catMenu->count() << oendl; @@ -941,3 +942,3 @@ void AddressbookWindow::slotSetCategory( int c ) cat = "Unfiled"; - qWarning ("Unfiled selected!"); + Opie::Core::owarn << "Unfiled selected!" << oendl; }else{ @@ -964,3 +965,3 @@ void AddressbookWindow::slotViewSwitched( int view ) { - qWarning( "void AddressbookWindow::slotViewSwitched( %d )", view ); + Opie::Core::owarn << "void AddressbookWindow::slotViewSwitched( " << view << " )" << oendl; int menu = 0; |