Diffstat (limited to 'core/pim/addressbook/abview.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/addressbook/abview.cpp | 61 |
1 files changed, 32 insertions, 29 deletions
diff --git a/core/pim/addressbook/abview.cpp b/core/pim/addressbook/abview.cpp index aa242b7..52e5f59 100644 --- a/core/pim/addressbook/abview.cpp +++ b/core/pim/addressbook/abview.cpp @@ -19,2 +19,3 @@ #include <opie2/ocontactaccessbackend_vcard.h> +#include <opie2/odebug.h> @@ -53,3 +54,3 @@ AbView::AbView ( QWidget* parent, const QValueList<int>& ordered ): { - qWarning("AbView::c'tor"); + Opie::Core::owarn << "AbView::c'tor" << oendl; // Load default database and handle syncing myself.. ! @@ -101,3 +102,3 @@ void AbView::setView( Views view ) { - qWarning("AbView::setView( Views view )"); + Opie::Core::owarn << "AbView::setView( Views view )" << oendl; m_curr_View = view; @@ -108,3 +109,3 @@ void AbView::addEntry( const Opie::OPimContact &newContact ) { - qWarning("abview:AddContact"); + Opie::Core::owarn << "AbView::AddContact" << oendl; m_contactdb->add ( newContact ); @@ -115,3 +116,3 @@ void AbView::removeEntry( const int UID ) { - qWarning("abview:RemoveContact"); + Opie::Core::owarn << "AbView;:RemoveContact" << oendl; m_contactdb->remove( UID ); @@ -122,3 +123,3 @@ void AbView::replaceEntry( const Opie::OPimContact &contact ) { - qWarning("abview:ReplaceContact"); + Opie::Core::owarn << "AbView::ReplaceContact" << oendl; m_contactdb->replace( contact ); @@ -146,3 +147,3 @@ bool AbView::save() { - // qWarning("abView:Save data"); + // Opie::Core::owarn << "AbView::Save data" << oendl; @@ -153,3 +154,3 @@ void AbView::load() { - qWarning("abView:Load data"); + Opie::Core::owarn << "AbView::Load data" << oendl; @@ -167,3 +168,3 @@ void AbView::load() - qWarning ("Number of contacts: %d", m_list.count()); + Opie::Core::owarn << "Number of contacts: " << m_list.count() << oendl; @@ -175,3 +176,3 @@ void AbView::reload() { - qWarning( "void AbView::reload()" ); + Opie::Core::owarn << "AbView::::reload()" << oendl; @@ -188,3 +189,3 @@ void AbView::setShowByCategory( const QString& cat ) { - qWarning("AbView::setShowCategory( const QString& cat )"); + Opie::Core::owarn << "AbView::setShowCategory( const QString& cat )" << oendl; @@ -200,3 +201,4 @@ void AbView::setShowByCategory( const QString& cat ) if ( intCat != m_curr_category ){ - // qWarning ("Categories: Selected %s.. Number: %d", cat.latin1(), m_curr_category); + // Opie::Core::owarn << "Categories: Selected " << cat << ".. Number: " + // << m_curr_category << oendl; @@ -212,6 +214,6 @@ void AbView::setShowToView( Views view ) { - qWarning("void AbView::setShowToView( View %d )", view); + Opie::Core::owarn << "void AbView::setShowToView( View " << view << " )" << oendl; if ( m_curr_View != view ){ - qWarning ("Change the View (Category is: %d)", m_curr_category); + Opie::Core::owarn << "Change the View (Category is: " << m_curr_category << ")" << oendl; m_prev_View = m_curr_View; @@ -226,3 +228,3 @@ void AbView::setShowByLetter( char c, AbConfig::LPSearchMode mode ) { - qWarning("void AbView::setShowByLetter( %c, %d )", c, mode ); + Opie::Core::owarn << "void AbView::setShowByLetter( " << c << ", " << mode << " )" << oendl; @@ -249,4 +251,4 @@ void AbView::setShowByLetter( char c, AbConfig::LPSearchMode mode ) default: - qWarning( "Unknown Searchmode for AbView::setShowByLetter ! -> %d", mode ); - qWarning( "I will ignore it.." ); + Opie::Core::owarn << "Unknown Searchmode for AbView::setShowByLetter ! -> " << mode << oendl + << "I will ignore it.." << oendl; return; @@ -279,3 +281,3 @@ void AbView::showPersonal( bool personal ) { - qWarning ("void AbView::showPersonal( %d )", personal); + Opie::Core::owarn << "void AbView::showPersonal( " << personal << " )" << oendl; @@ -335,3 +337,3 @@ void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, { - // qWarning( "void AbView::slotDoFind" ); + // Opie::Core::owarn << "void AbView::slotDoFind" << oendl; @@ -349,3 +351,3 @@ void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, - // qWarning ("Find in Category %d", category); + // Opie::Core::owarn << "Find in Category " << category << oendl; @@ -358,3 +360,3 @@ void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, - // qWarning( "found: %d", m_list.count() ); + // Opie::Core::owarn << "Found: " << m_list.count() << oendl; if ( m_list.count() == 0 ){ @@ -382,3 +384,3 @@ void AbView::offSearch() void AbView::slotSwitch(){ - // qWarning("AbView::slotSwitch()"); + // Opie::Core::owarn << "AbView::slotSwitch()" << oendl; @@ -387,3 +389,3 @@ void AbView::slotSwitch(){ case TableView: - qWarning("Switching to CardView"); + Opie::Core::owarn << "Switching to CardView" << oendl; m_curr_View = CardView; @@ -391,3 +393,3 @@ void AbView::slotSwitch(){ case CardView: - qWarning("Switching to TableView"); + Opie::Core::owarn << "Switching to TableView" << oendl; m_curr_View = TableView; @@ -410,3 +412,3 @@ void AbView::clearForCategory() if ( !contactCompare( *it, m_curr_category ) ){ - // qWarning("Removing %d", (*it).uid()); + //Opie::Core::owarn << "Removing " << (*it).uid() << oendl; m_list.remove( (*it).uid() ); @@ -420,3 +422,4 @@ bool AbView::contactCompare( const Opie::OPimContact &cnt, int category ) { - // qWarning ("bool AbView::contactCompare( const Opie::OPimContact &cnt, %d )", category); + // Opie::Core::owarn << "bool AbView::contactCompare( const Opie::OPimContact &cnt, " + // << category << " )" << oendl; @@ -426,3 +429,3 @@ bool AbView::contactCompare( const Opie::OPimContact &cnt, int category ) - // qWarning ("Number of categories: %d", cats.count() ); + // Opie::Core::owarn << "Number of categories: " << cats.count() << oendl; @@ -435,3 +438,3 @@ bool AbView::contactCompare( const Opie::OPimContact &cnt, int category ) for ( i = 0; i < int(cats.count()); i++ ) { - // qWarning("Comparing %d with %d",cats[i],category ); + //Opie::Core::owarn << "Comparing " << cats[i] << " with " << category << oendl; if ( cats[i] == category ) { @@ -442,3 +445,3 @@ bool AbView::contactCompare( const Opie::OPimContact &cnt, int category ) } - // qWarning ("Return: %d", returnMe); + // Opie::Core::owarn << "Return: " << returnMe << oendl; return returnMe; @@ -455,3 +458,3 @@ void AbView::updateView( bool newdata ) { - // qWarning("AbView::updateView()"); + // Opie::Core::owarn << "AbView::updateView()" << oendl; |