Diffstat (limited to 'core/pim/addressbook/abview.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/addressbook/abview.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/core/pim/addressbook/abview.cpp b/core/pim/addressbook/abview.cpp index 52e5f59..7a5b6d4 100644 --- a/core/pim/addressbook/abview.cpp +++ b/core/pim/addressbook/abview.cpp | |||
@@ -53,5 +53,5 @@ AbView::AbView ( QWidget* parent, const QValueList<int>& ordered ): | |||
53 | m_orderedFields( ordered ) | 53 | m_orderedFields( ordered ) |
54 | { | 54 | { |
55 | Opie::Core::owarn << "AbView::c'tor" << oendl; | 55 | owarn << "AbView::c'tor" << oendl; |
56 | // Load default database and handle syncing myself.. ! | 56 | // Load default database and handle syncing myself.. ! |
57 | m_contactdb = new Opie::OPimContactAccess ( "addressbook", 0l, 0l, false ); | 57 | m_contactdb = new Opie::OPimContactAccess ( "addressbook", 0l, 0l, false ); |
@@ -101,5 +101,5 @@ AbView::~AbView() | |||
101 | void AbView::setView( Views view ) | 101 | void AbView::setView( Views view ) |
102 | { | 102 | { |
103 | Opie::Core::owarn << "AbView::setView( Views view )" << oendl; | 103 | owarn << "AbView::setView( Views view )" << oendl; |
104 | m_curr_View = view; | 104 | m_curr_View = view; |
105 | load(); | 105 | load(); |
@@ -108,5 +108,5 @@ void AbView::setView( Views view ) | |||
108 | void AbView::addEntry( const Opie::OPimContact &newContact ) | 108 | void AbView::addEntry( const Opie::OPimContact &newContact ) |
109 | { | 109 | { |
110 | Opie::Core::owarn << "AbView::AddContact" << oendl; | 110 | owarn << "AbView::AddContact" << oendl; |
111 | m_contactdb->add ( newContact ); | 111 | m_contactdb->add ( newContact ); |
112 | load(); | 112 | load(); |
@@ -115,5 +115,5 @@ void AbView::addEntry( const Opie::OPimContact &newContact ) | |||
115 | void AbView::removeEntry( const int UID ) | 115 | void AbView::removeEntry( const int UID ) |
116 | { | 116 | { |
117 | Opie::Core::owarn << "AbView;:RemoveContact" << oendl; | 117 | owarn << "AbView;:RemoveContact" << oendl; |
118 | m_contactdb->remove( UID ); | 118 | m_contactdb->remove( UID ); |
119 | load(); | 119 | load(); |
@@ -122,5 +122,5 @@ void AbView::removeEntry( const int UID ) | |||
122 | void AbView::replaceEntry( const Opie::OPimContact &contact ) | 122 | void AbView::replaceEntry( const Opie::OPimContact &contact ) |
123 | { | 123 | { |
124 | Opie::Core::owarn << "AbView::ReplaceContact" << oendl; | 124 | owarn << "AbView::ReplaceContact" << oendl; |
125 | m_contactdb->replace( contact ); | 125 | m_contactdb->replace( contact ); |
126 | load(); | 126 | load(); |
@@ -146,5 +146,5 @@ Opie::OPimContact AbView::currentEntry() | |||
146 | bool AbView::save() | 146 | bool AbView::save() |
147 | { | 147 | { |
148 | //Opie::Core::owarn << "AbView::Save data" << oendl; | 148 | //owarn << "AbView::Save data" << oendl; |
149 | 149 | ||
150 | return m_contactdb->save(); | 150 | return m_contactdb->save(); |
@@ -153,5 +153,5 @@ bool AbView::save() | |||
153 | void AbView::load() | 153 | void AbView::load() |
154 | { | 154 | { |
155 | Opie::Core::owarn << "AbView::Load data" << oendl; | 155 | owarn << "AbView::Load data" << oendl; |
156 | 156 | ||
157 | // Letter Search is stopped at this place | 157 | // Letter Search is stopped at this place |
@@ -167,5 +167,5 @@ void AbView::load() | |||
167 | } | 167 | } |
168 | 168 | ||
169 | Opie::Core::owarn << "Number of contacts: " << m_list.count() << oendl; | 169 | owarn << "Number of contacts: " << m_list.count() << oendl; |
170 | 170 | ||
171 | updateView( true ); | 171 | updateView( true ); |
@@ -175,5 +175,5 @@ void AbView::load() | |||
175 | void AbView::reload() | 175 | void AbView::reload() |
176 | { | 176 | { |
177 | Opie::Core::owarn << "AbView::::reload()" << oendl; | 177 | owarn << "AbView::::reload()" << oendl; |
178 | 178 | ||
179 | m_contactdb->reload(); | 179 | m_contactdb->reload(); |
@@ -188,5 +188,5 @@ void AbView::clear() | |||
188 | void AbView::setShowByCategory( const QString& cat ) | 188 | void AbView::setShowByCategory( const QString& cat ) |
189 | { | 189 | { |
190 | Opie::Core::owarn << "AbView::setShowCategory( const QString& cat )" << oendl; | 190 | owarn << "AbView::setShowCategory( const QString& cat )" << oendl; |
191 | 191 | ||
192 | int intCat = 0; | 192 | int intCat = 0; |
@@ -200,5 +200,5 @@ void AbView::setShowByCategory( const QString& cat ) | |||
200 | // Just do anything if we really change the category | 200 | // Just do anything if we really change the category |
201 | if ( intCat != m_curr_category ){ | 201 | if ( intCat != m_curr_category ){ |
202 | // Opie::Core::owarn << "Categories: Selected " << cat << ".. Number: " | 202 | // owarn << "Categories: Selected " << cat << ".. Number: " |
203 | // << m_curr_category << oendl; | 203 | // << m_curr_category << oendl; |
204 | 204 | ||
@@ -213,8 +213,8 @@ void AbView::setShowByCategory( const QString& cat ) | |||
213 | void AbView::setShowToView( Views view ) | 213 | void AbView::setShowToView( Views view ) |
214 | { | 214 | { |
215 | Opie::Core::owarn << "void AbView::setShowToView( View " << view << " )" << oendl; | 215 | owarn << "void AbView::setShowToView( View " << view << " )" << oendl; |
216 | 216 | ||
217 | if ( m_curr_View != view ){ | 217 | if ( m_curr_View != view ){ |
218 | Opie::Core::owarn << "Change the View (Category is: " << m_curr_category << ")" << oendl; | 218 | owarn << "Change the View (Category is: " << m_curr_category << ")" << oendl; |
219 | m_prev_View = m_curr_View; | 219 | m_prev_View = m_curr_View; |
220 | m_curr_View = view; | 220 | m_curr_View = view; |
@@ -227,5 +227,5 @@ void AbView::setShowToView( Views view ) | |||
227 | void AbView::setShowByLetter( char c, AbConfig::LPSearchMode mode ) | 227 | void AbView::setShowByLetter( char c, AbConfig::LPSearchMode mode ) |
228 | { | 228 | { |
229 | Opie::Core::owarn << "void AbView::setShowByLetter( " << c << ", " << mode << " )" << oendl; | 229 | owarn << "void AbView::setShowByLetter( " << c << ", " << mode << " )" << oendl; |
230 | 230 | ||
231 | assert( mode < AbConfig::LASTELEMENT ); | 231 | assert( mode < AbConfig::LASTELEMENT ); |
@@ -250,5 +250,5 @@ void AbView::setShowByLetter( char c, AbConfig::LPSearchMode mode ) | |||
250 | break; | 250 | break; |
251 | default: | 251 | default: |
252 | Opie::Core::owarn << "Unknown Searchmode for AbView::setShowByLetter ! -> " << mode << oendl | 252 | owarn << "Unknown Searchmode for AbView::setShowByLetter ! -> " << mode << oendl |
253 | << "I will ignore it.." << oendl; | 253 | << "I will ignore it.." << oendl; |
254 | return; | 254 | return; |
@@ -280,5 +280,5 @@ QString AbView::showCategory() const | |||
280 | void AbView::showPersonal( bool personal ) | 280 | void AbView::showPersonal( bool personal ) |
281 | { | 281 | { |
282 | Opie::Core::owarn << "void AbView::showPersonal( " << personal << " )" << oendl; | 282 | owarn << "void AbView::showPersonal( " << personal << " )" << oendl; |
283 | 283 | ||
284 | if ( personal ){ | 284 | if ( personal ){ |
@@ -336,5 +336,5 @@ void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, | |||
336 | bool , QString cat ) | 336 | bool , QString cat ) |
337 | { | 337 | { |
338 | //Opie::Core::owarn << "void AbView::slotDoFind" << oendl; | 338 | //owarn << "void AbView::slotDoFind" << oendl; |
339 | 339 | ||
340 | // We reloading the data: Deselect Letterpicker | 340 | // We reloading the data: Deselect Letterpicker |
@@ -350,5 +350,5 @@ void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, | |||
350 | } | 350 | } |
351 | 351 | ||
352 | //Opie::Core::owarn << "Find in Category " << category << oendl; | 352 | //owarn << "Find in Category " << category << oendl; |
353 | 353 | ||
354 | QRegExp r( str ); | 354 | QRegExp r( str ); |
@@ -359,5 +359,5 @@ void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, | |||
359 | m_list = m_contactdb->matchRegexp( r ); | 359 | m_list = m_contactdb->matchRegexp( r ); |
360 | 360 | ||
361 | //Opie::Core::owarn << "Found: " << m_list.count() << oendl; | 361 | //owarn << "Found: " << m_list.count() << oendl; |
362 | if ( m_list.count() == 0 ){ | 362 | if ( m_list.count() == 0 ){ |
363 | emit signalNotFound(); | 363 | emit signalNotFound(); |
@@ -383,14 +383,14 @@ void AbView::offSearch() | |||
383 | 383 | ||
384 | void AbView::slotSwitch(){ | 384 | void AbView::slotSwitch(){ |
385 | //Opie::Core::owarn << "AbView::slotSwitch()" << oendl; | 385 | //owarn << "AbView::slotSwitch()" << oendl; |
386 | 386 | ||
387 | m_prev_View = m_curr_View; | 387 | m_prev_View = m_curr_View; |
388 | switch ( (int) m_curr_View ){ | 388 | switch ( (int) m_curr_View ){ |
389 | case TableView: | 389 | case TableView: |
390 | Opie::Core::owarn << "Switching to CardView" << oendl; | 390 | owarn << "Switching to CardView" << oendl; |
391 | m_curr_View = CardView; | 391 | m_curr_View = CardView; |
392 | break; | 392 | break; |
393 | case CardView: | 393 | case CardView: |
394 | Opie::Core::owarn << "Switching to TableView" << oendl; | 394 | owarn << "Switching to TableView" << oendl; |
395 | m_curr_View = TableView; | 395 | m_curr_View = TableView; |
396 | break; | 396 | break; |
@@ -411,5 +411,5 @@ void AbView::clearForCategory() | |||
411 | for ( it = allList.begin(); it != allList.end(); ++it ){ | 411 | for ( it = allList.begin(); it != allList.end(); ++it ){ |
412 | if ( !contactCompare( *it, m_curr_category ) ){ | 412 | if ( !contactCompare( *it, m_curr_category ) ){ |
413 | //Opie::Core::owarn << "Removing " << (*it).uid() << oendl; | 413 | //owarn << "Removing " << (*it).uid() << oendl; |
414 | m_list.remove( (*it).uid() ); | 414 | m_list.remove( (*it).uid() ); |
415 | } | 415 | } |
@@ -421,5 +421,5 @@ void AbView::clearForCategory() | |||
421 | bool AbView::contactCompare( const Opie::OPimContact &cnt, int category ) | 421 | bool AbView::contactCompare( const Opie::OPimContact &cnt, int category ) |
422 | { | 422 | { |
423 | //Opie::Core::owarn << "bool AbView::contactCompare( const Opie::OPimContact &cnt, " | 423 | //owarn << "bool AbView::contactCompare( const Opie::OPimContact &cnt, " |
424 | // << category << " )" << oendl; | 424 | // << category << " )" << oendl; |
425 | 425 | ||
@@ -428,5 +428,5 @@ bool AbView::contactCompare( const Opie::OPimContact &cnt, int category ) | |||
428 | cats = cnt.categories(); | 428 | cats = cnt.categories(); |
429 | 429 | ||
430 | //Opie::Core::owarn << "Number of categories: " << cats.count() << oendl; | 430 | //owarn << "Number of categories: " << cats.count() << oendl; |
431 | 431 | ||
432 | returnMe = false; | 432 | returnMe = false; |
@@ -437,5 +437,5 @@ bool AbView::contactCompare( const Opie::OPimContact &cnt, int category ) | |||
437 | int i; | 437 | int i; |
438 | for ( i = 0; i < int(cats.count()); i++ ) { | 438 | for ( i = 0; i < int(cats.count()); i++ ) { |
439 | //Opie::Core::owarn << "Comparing " << cats[i] << " with " << category << oendl; | 439 | //owarn << "Comparing " << cats[i] << " with " << category << oendl; |
440 | if ( cats[i] == category ) { | 440 | if ( cats[i] == category ) { |
441 | returnMe = true; | 441 | returnMe = true; |
@@ -444,5 +444,5 @@ bool AbView::contactCompare( const Opie::OPimContact &cnt, int category ) | |||
444 | } | 444 | } |
445 | } | 445 | } |
446 | //Opie::Core::owarn << "Return: " << returnMe << oendl; | 446 | //owarn << "Return: " << returnMe << oendl; |
447 | return returnMe; | 447 | return returnMe; |
448 | } | 448 | } |
@@ -457,5 +457,5 @@ void AbView::updateListinViews() | |||
457 | void AbView::updateView( bool newdata ) | 457 | void AbView::updateView( bool newdata ) |
458 | { | 458 | { |
459 | //Opie::Core::owarn << "AbView::updateView()" << oendl; | 459 | //owarn << "AbView::updateView()" << oendl; |
460 | 460 | ||
461 | if ( m_viewStack -> visibleWidget() ){ | 461 | if ( m_viewStack -> visibleWidget() ){ |