Diffstat (limited to 'core/pim/addressbook/addressbook.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/addressbook/addressbook.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index 94c0a13..35d0f41 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp @@ -248,13 +248,13 @@ AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name, defaultFont = new QFont( m_abView->font() ); slotSetFont(m_config.fontSize()); m_curFontSize = m_config.fontSize(); setCentralWidget(listContainer); - // Opie::Core::odebug << "adressbook contrsuction: t=" << t.elapsed() << oendl; + // odebug << "adressbook contrsuction: t=" << t.elapsed() << oendl; connect( qApp, SIGNAL( flush() ), this, SLOT( flush() ) ); connect( qApp, SIGNAL( reload() ), this, SLOT( reload() ) ); connect( qApp, SIGNAL( appMessage(const QCString&,const QByteArray&) ), this, SLOT( appMessage(const QCString&,const QByteArray&) ) ); @@ -264,29 +264,29 @@ AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name, void AddressbookWindow::slotConfig() { ConfigDlg* dlg = new ConfigDlg( this, "Config" ); dlg -> setConfig( m_config ); if ( QPEApplication::execDialog( dlg ) ) { - Opie::Core::owarn << "Config Dialog accepted!" << oendl; + owarn << "Config Dialog accepted!" << oendl; m_config = dlg -> getConfig(); if ( m_curFontSize != m_config.fontSize() ){ - Opie::Core::owarn << "Font was changed!" << oendl; + owarn << "Font was changed!" << oendl; m_curFontSize = m_config.fontSize(); emit slotSetFont( m_curFontSize ); } m_abView -> setListOrder( m_config.orderList() ); } delete dlg; } void AddressbookWindow::slotSetFont( int size ) { - Opie::Core::owarn << "void AddressbookWindow::slotSetFont( " << size << " )" << oendl; + owarn << "void AddressbookWindow::slotSetFont( " << size << " )" << oendl; if (size > 2 || size < 0) size = 1; m_config.setFontSize( size ); @@ -322,16 +322,16 @@ void AddressbookWindow::importvCard() { setDocument((const QString&) str ); } } void AddressbookWindow::exportvCard() { - Opie::Core::owarn << "void AddressbookWindow::exportvCard()" << oendl; + owarn << "void AddressbookWindow::exportvCard()" << oendl; QString filename = Opie::Ui::OFileDialog::getSaveFileName( 1,"/home/"); //,"", "*", this ); if( !filename.isEmpty() && ( filename[filename.length()-1] != '/' ) ){ - Opie::Core::owarn << " Save to file " << filename << ", (" << filename.length()-1 << ")" << oendl; + owarn << " Save to file " << filename << ", (" << filename.length()-1 << ")" << oendl; Opie::OPimContact curCont = m_abView->currentEntry(); if ( !curCont.isEmpty() ){ Opie::OPimContactAccessBackend* vcard_backend = new Opie::OPimContactAccessBackend_VCard( QString::null, filename ); Opie::OPimContactAccess* access = new Opie::OPimContactAccess ( "addressbook_exp", QString::null , vcard_backend, true ); if ( access ){ @@ -347,65 +347,65 @@ void AddressbookWindow::exportvCard() QMessageBox::critical( 0, "Export VCard", QString( tr( "You have to set a filename !") ) ); } void AddressbookWindow::setDocument( const QString &filename ) { - Opie::Core::owarn << "void AddressbookWindow::setDocument( " << filename << " )" << oendl; + owarn << "void AddressbookWindow::setDocument( " << filename << " )" << oendl; if ( filename.find(".vcf") != int(filename.length()) - 4 ){ switch( QMessageBox::information( this, tr ( "Right file type ?" ), tr( "The selected file \n does not end with \".vcf\".\n Do you really want to open it?" ), tr( "&Yes" ), tr( "&No" ), QString::null, 0, // Enter == button 0 2 ) ) { // Escape == button 2 case 0: - Opie::Core::owarn << "YES clicked" << oendl; + owarn << "YES clicked" << oendl; break; case 1: - Opie::Core::owarn << "NO clicked" << oendl; + owarn << "NO clicked" << oendl; return; break; } } Opie::OPimContactAccessBackend* vcard_backend = new Opie::OPimContactAccessBackend_VCard( QString::null, filename ); Opie::OPimContactAccess* access = new Opie::OPimContactAccess ( "addressbook", QString::null , vcard_backend, true ); Opie::OPimContactAccess::List allList = access->allRecords(); - Opie::Core::owarn << "Found number of contacts in File: " << allList.count() << oendl; + owarn << "Found number of contacts in File: " << allList.count() << oendl; if ( !allList.count() ) { QMessageBox::information( this, "Import VCard", "It was impossible to import\nthe VCard.\n" "The VCard may be corrupted!" ); } bool doAsk = true; Opie::OPimContactAccess::List::Iterator it; for ( it = allList.begin(); it != allList.end(); ++it ){ - Opie::Core::owarn << "Adding Contact from: " << (*it).fullName() << oendl; + owarn << "Adding Contact from: " << (*it).fullName() << oendl; if ( doAsk ){ switch( QMessageBox::information( this, tr ( "Add Contact?" ), tr( "Do you really want add contact for \n%1?" ) .arg( (*it).fullName().latin1() ), tr( "&Yes" ), tr( "&No" ), tr( "&All Yes"), 0, // Enter == button 0 2 ) ) { // Escape == button 2 case 0: - Opie::Core::owarn << "YES clicked" << oendl; + owarn << "YES clicked" << oendl; m_abView->addEntry( *it ); break; case 1: - Opie::Core::owarn << "NO clicked" << oendl; + owarn << "NO clicked" << oendl; break; case 2: - Opie::Core::owarn << "YesAll clicked" << oendl; + owarn << "YesAll clicked" << oendl; doAsk = false; break; } }else m_abView->addEntry( *it ); @@ -535,25 +535,25 @@ void AddressbookWindow::writeMail() if ( basepath.isEmpty() ) basepath = QString::fromLatin1( getenv("QPEDIR") ); // Try to access the preferred. If not possible, try to // switch to the other one.. if ( m_config.useQtMail() ){ - Opie::Core::owarn << "Accessing: " << (basepath + "/bin/qtmail") << oendl; + owarn << "Accessing: " << (basepath + "/bin/qtmail") << oendl; if ( QFile::exists( basepath + "/bin/qtmail" ) ){ - Opie::Core::owarn << "QCop" << oendl; + owarn << "QCop" << oendl; QCopEnvelope e("QPE/Application/qtmail", "writeMail(QString,QString)"); e << name << email; return; } else m_config.setUseOpieMail( true ); } if ( m_config.useOpieMail() ){ - Opie::Core::owarn << "Accessing: " << (basepath + "/bin/opiemail") << oendl; + owarn << "Accessing: " << (basepath + "/bin/opiemail") << oendl; if ( QFile::exists( basepath + "/bin/opiemail" ) ){ - Opie::Core::owarn << "QCop" << oendl; + owarn << "QCop" << oendl; QCopEnvelope e("QPE/Application/opiemail", "writeMail(QString,QString)"); e << name << email; return; } else m_config.setUseQtMail( true ); } @@ -589,13 +589,13 @@ void AddressbookWindow::slotBeam() access->save(); delete access; beamFilename = beamfile; } - Opie::Core::owarn << "Beaming: " << beamFilename << oendl; + owarn << "Beaming: " << beamFilename << oendl; Ir *ir = new Ir( this ); connect( ir, SIGNAL( done(Ir*) ), this, SLOT( beamDone(Ir*) ) ); QString description = c.fullName(); ir->send( beamFilename, description, "text/x-vCard" ); } @@ -636,13 +636,13 @@ static void parseName( const QString& name, QString *first, QString *middle, } void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data) { bool needShow = FALSE; - Opie::Core::owarn << "Receiving QCop-Call with message " << msg << oendl; + owarn << "Receiving QCop-Call with message " << msg << oendl; if (msg == "editPersonal()") { editPersonal(); } else if (msg == "editPersonalAndClose()") { editPersonal(); @@ -652,13 +652,13 @@ void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data) QString name, email; stream >> name >> email; Opie::OPimContact cnt; QString fn, mn, ln; parseName( name, &fn, &mn, &ln ); - // Opie::Core::odebug << " " << fn << " - " << mn " - " << ln << oendl; + // odebug << " " << fn << " - " << mn " - " << ln << oendl; cnt.setFirstName( fn ); cnt.setMiddleName( mn ); cnt.setLastName( ln ); cnt.insertEmails( email ); cnt.setDefaultEmail( email ); cnt.setFileAs(); @@ -679,13 +679,13 @@ void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data) } else if ( msg == "show(int)" ) { raise(); QDataStream stream(data,IO_ReadOnly); int uid; stream >> uid; - Opie::Core::owarn << "Showing uid: " << uid << oendl; + owarn << "Showing uid: " << uid << oendl; // Deactivate Personal View.. if ( actionPersonal->isOn() ){ actionPersonal->setOn( false ); slotPersonalView(); } @@ -759,13 +759,13 @@ void AddressbookWindow::editPersonal() { Opie::OPimContact entry; // Switch to personal view if not selected // but take care of the menu, too if ( ! actionPersonal->isOn() ){ - Opie::Core::owarn << "*** ++++" << oendl; + owarn << "*** ++++" << oendl; actionPersonal->setOn( true ); slotPersonalView(); } if ( !abEditor ) { abEditor = new ContactEditor( entry, this, "editor" ); @@ -778,29 +778,29 @@ void AddressbookWindow::editPersonal() } void AddressbookWindow::slotPersonalView() { - Opie::Core::owarn << "slotPersonalView()" << oendl; + owarn << "slotPersonalView()" << oendl; if (!actionPersonal->isOn()) { // we just turned it off - Opie::Core::owarn << "slotPersonalView()-> OFF" << oendl; + owarn << "slotPersonalView()-> OFF" << oendl; setCaption( tr("Contacts") ); actionNew->setEnabled(TRUE); actionTrash->setEnabled(TRUE); actionFind->setEnabled(TRUE); actionMail->setEnabled(TRUE); // slotUpdateToolbar(); m_abView->showPersonal( false ); return; } - Opie::Core::owarn << "slotPersonalView()-> ON" << oendl; + owarn << "slotPersonalView()-> ON" << oendl; // XXX need to disable some QActions. actionNew->setEnabled(FALSE); actionTrash->setEnabled(FALSE); actionFind->setEnabled(FALSE); actionMail->setEnabled(FALSE); @@ -884,30 +884,30 @@ void AddressbookWindow::slotSave() } #endif void AddressbookWindow::slotNotFound() { - Opie::Core::owarn << "Got not found signal!" << oendl; + owarn << "Got not found signal!" << oendl; QMessageBox::information( this, tr( "Not Found" ), "<qt>" + tr( "Unable to find a contact for this search pattern!" ) + "</qt>" ); } void AddressbookWindow::slotWrapAround() { - Opie::Core::owarn << "Got wrap signal!" << oendl; + owarn << "Got wrap signal!" << oendl; // if ( doNotifyWrapAround ) // QMessageBox::information( this, tr( "End of list" ), // tr( "End of list. Wrap around now...!" ) + "\n" ); } void AddressbookWindow::slotSetCategory( int c ) { - Opie::Core::owarn << "void AddressbookWindow::slotSetCategory( " << c << " ) from " + owarn << "void AddressbookWindow::slotSetCategory( " << c << " ) from " << catMenu->count() << oendl; QString cat, book; AbView::Views view = AbView::TableView; if ( c <= 0 ) @@ -937,13 +937,13 @@ void AddressbookWindow::slotSetCategory( int c ) // book = tr( "Personal" ); // view = AbView:: PersonalView; }else if ( i == 3 ){ // default All Categories cat = QString::null; }else if ( i == (unsigned int)catMenu->count() - 1 ){ // last menu option (seperator is counted, too) will be Unfiled cat = "Unfiled"; - Opie::Core::owarn << "Unfiled selected!" << oendl; + owarn << "Unfiled selected!" << oendl; }else{ cat = m_abView->categories()[i - 4]; } } } @@ -960,13 +960,13 @@ void AddressbookWindow::slotSetCategory( int c ) setCaption( tr( "Contacts" ) + " - " + book + " - " + tr( cat ) ); } void AddressbookWindow::slotViewSwitched( int view ) { - Opie::Core::owarn << "void AddressbookWindow::slotViewSwitched( " << view << " )" << oendl; + owarn << "void AddressbookWindow::slotViewSwitched( " << view << " )" << oendl; int menu = 0; // Switch to selected view switch ( view ){ case AbView::TableView: menu = 1; |