author | zecke <zecke> | 2002-12-13 21:57:31 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-12-13 21:57:31 (UTC) |
commit | de449c83cf37a64a9d2df586f6d1acecf3bc0c6e (patch) (unidiff) | |
tree | ec75354c1d0c3731b675df639e29e173a2967f7e | |
parent | d00761e2b3b69e1edddcb2115c4c0ae6b5aa4265 (diff) | |
download | opie-de449c83cf37a64a9d2df586f6d1acecf3bc0c6e.zip opie-de449c83cf37a64a9d2df586f6d1acecf3bc0c6e.tar.gz opie-de449c83cf37a64a9d2df586f6d1acecf3bc0c6e.tar.bz2 |
No default arguments in implementation please
-rw-r--r-- | core/pim/addressbook/abview.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/core/pim/addressbook/abview.cpp b/core/pim/addressbook/abview.cpp index 7226e82..161b163 100644 --- a/core/pim/addressbook/abview.cpp +++ b/core/pim/addressbook/abview.cpp | |||
@@ -58,5 +58,5 @@ AbView::AbView ( QWidget* parent, const QValueList<int>& ordered ): | |||
58 | m_viewStack = new QWidgetStack( this ); | 58 | m_viewStack = new QWidgetStack( this ); |
59 | vb->addWidget( m_viewStack ); | 59 | vb->addWidget( m_viewStack ); |
60 | 60 | ||
61 | // Creat TableView | 61 | // Creat TableView |
62 | QVBox* tableBox = new QVBox( m_viewStack ); | 62 | QVBox* tableBox = new QVBox( m_viewStack ); |
@@ -74,6 +74,6 @@ AbView::AbView ( QWidget* parent, const QValueList<int>& ordered ): | |||
74 | 74 | ||
75 | // Connect views to me | 75 | // Connect views to me |
76 | connect ( m_abTable, SIGNAL( signalSwitch( void ) ), | 76 | connect ( m_abTable, SIGNAL( signalSwitch( void ) ), |
77 | this, SLOT( slotSwitch( void ) ) ); | 77 | this, SLOT( slotSwitch( void ) ) ); |
78 | connect ( m_ablabel, SIGNAL( signalOkPressed( void ) ), | 78 | connect ( m_ablabel, SIGNAL( signalOkPressed( void ) ), |
79 | this, SLOT( slotSwitch( void ) ) ); | 79 | this, SLOT( slotSwitch( void ) ) ); |
@@ -106,5 +106,5 @@ void AbView::addEntry( const OContact &newContact ) | |||
106 | m_contactdb->add ( newContact ); | 106 | m_contactdb->add ( newContact ); |
107 | load(); | 107 | load(); |
108 | 108 | ||
109 | } | 109 | } |
110 | void AbView::removeEntry( const int UID ) | 110 | void AbView::removeEntry( const int UID ) |
@@ -152,5 +152,5 @@ void AbView::load() | |||
152 | // Letter Search is stopped at this place | 152 | // Letter Search is stopped at this place |
153 | emit signalClearLetterPicker(); | 153 | emit signalClearLetterPicker(); |
154 | 154 | ||
155 | if ( m_inPersonal ) | 155 | if ( m_inPersonal ) |
156 | m_list = m_contactdb->allRecords(); | 156 | m_list = m_contactdb->allRecords(); |
@@ -162,6 +162,6 @@ void AbView::load() | |||
162 | qWarning ("Number of contacts: %d", m_list.count()); | 162 | qWarning ("Number of contacts: %d", m_list.count()); |
163 | 163 | ||
164 | updateView( true ); | 164 | updateView( true ); |
165 | 165 | ||
166 | } | 166 | } |
167 | 167 | ||
@@ -197,5 +197,5 @@ void AbView::setShowByCategory( const QString& cat ) | |||
197 | m_curr_category = intCat; | 197 | m_curr_category = intCat; |
198 | emit signalClearLetterPicker(); | 198 | emit signalClearLetterPicker(); |
199 | 199 | ||
200 | load(); | 200 | load(); |
201 | } | 201 | } |
@@ -241,5 +241,5 @@ void AbView::setListOrder( const QValueList<int>& ordered ) | |||
241 | 241 | ||
242 | 242 | ||
243 | QString AbView::showCategory() const | 243 | QString AbView::showCategory() const |
244 | { | 244 | { |
245 | return mCat.label( "Contacts", m_curr_category ); | 245 | return mCat.label( "Contacts", m_curr_category ); |
@@ -260,5 +260,5 @@ void AbView::showPersonal( bool personal ) | |||
260 | m_storedDB = m_contactdb; | 260 | m_storedDB = m_contactdb; |
261 | 261 | ||
262 | OContactAccessBackend* vcard_backend = new OContactAccessBackend_VCard( QString::null, | 262 | OContactAccessBackend* vcard_backend = new OContactAccessBackend_VCard( QString::null, |
263 | addressbookPersonalVCardName() ); | 263 | addressbookPersonalVCardName() ); |
264 | m_contactdb = new OContactAccess ( "addressbook", QString::null , vcard_backend, true ); | 264 | m_contactdb = new OContactAccess ( "addressbook", QString::null , vcard_backend, true ); |
@@ -266,5 +266,5 @@ void AbView::showPersonal( bool personal ) | |||
266 | m_inPersonal = true; | 266 | m_inPersonal = true; |
267 | m_curr_View = CardView; | 267 | m_curr_View = CardView; |
268 | 268 | ||
269 | }else{ | 269 | }else{ |
270 | 270 | ||
@@ -281,10 +281,10 @@ void AbView::showPersonal( bool personal ) | |||
281 | m_curr_View = TableView; | 281 | m_curr_View = TableView; |
282 | m_inPersonal = false; | 282 | m_inPersonal = false; |
283 | 283 | ||
284 | } | 284 | } |
285 | load(); | 285 | load(); |
286 | } | 286 | } |
287 | 287 | ||
288 | QStringList AbView::categories() | 288 | QStringList AbView::categories() |
289 | { | 289 | { |
290 | mCat.load( categoryFileName() ); | 290 | mCat.load( categoryFileName() ); |
@@ -292,8 +292,8 @@ QStringList AbView::categories() | |||
292 | return categoryList; | 292 | return categoryList; |
293 | } | 293 | } |
294 | 294 | ||
295 | // BEGIN: Slots | 295 | // BEGIN: Slots |
296 | void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, | 296 | void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, |
297 | bool , QString cat = QString::null ) | 297 | bool , QString cat ) |
298 | { | 298 | { |
299 | qWarning( "void AbView::slotDoFind" ); | 299 | qWarning( "void AbView::slotDoFind" ); |
@@ -316,5 +316,5 @@ void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, | |||
316 | r.setCaseSensitive( caseSensitive ); | 316 | r.setCaseSensitive( caseSensitive ); |
317 | r.setWildcard( !useRegExp ); | 317 | r.setWildcard( !useRegExp ); |
318 | 318 | ||
319 | // Get all matching entries out of the database | 319 | // Get all matching entries out of the database |
320 | m_list = m_contactdb->matchRegexp( r ); | 320 | m_list = m_contactdb->matchRegexp( r ); |
@@ -330,5 +330,5 @@ void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp, | |||
330 | // we will not have a lot of matching entries.. | 330 | // we will not have a lot of matching entries.. |
331 | clearForCategory(); | 331 | clearForCategory(); |
332 | 332 | ||
333 | // Now show all found entries | 333 | // Now show all found entries |
334 | updateView( true ); | 334 | updateView( true ); |
@@ -357,5 +357,5 @@ void AbView::slotSwitch(){ | |||
357 | } | 357 | } |
358 | updateView(); | 358 | updateView(); |
359 | 359 | ||
360 | } | 360 | } |
361 | 361 | ||
@@ -370,5 +370,5 @@ void AbView::clearForCategory() | |||
370 | if ( m_curr_category != -1 ){ | 370 | if ( m_curr_category != -1 ){ |
371 | for ( it = allList.begin(); it != allList.end(); ++it ){ | 371 | for ( it = allList.begin(); it != allList.end(); ++it ){ |
372 | if ( !contactCompare( *it, m_curr_category ) ){ | 372 | if ( !contactCompare( *it, m_curr_category ) ){ |
373 | qWarning("Removing %d", (*it).uid()); | 373 | qWarning("Removing %d", (*it).uid()); |
374 | m_list.remove( (*it).uid() ); | 374 | m_list.remove( (*it).uid() ); |
@@ -436,5 +436,5 @@ void AbView::updateView( bool newdata ) | |||
436 | m_curr_Contact = 0; | 436 | m_curr_Contact = 0; |
437 | } | 437 | } |
438 | 438 | ||
439 | // Feed all views with new lists | 439 | // Feed all views with new lists |
440 | if ( newdata ) | 440 | if ( newdata ) |
@@ -461,5 +461,5 @@ void AbView::updateView( bool newdata ) | |||
461 | break; | 461 | break; |
462 | } | 462 | } |
463 | 463 | ||
464 | // Raise the current View | 464 | // Raise the current View |
465 | m_viewStack -> raiseWidget( m_curr_View ); | 465 | m_viewStack -> raiseWidget( m_curr_View ); |