-rw-r--r-- | core/pim/addressbook/TODO | 8 | ||||
-rw-r--r-- | core/pim/addressbook/addressbook.cpp | 26 |
2 files changed, 30 insertions, 4 deletions
diff --git a/core/pim/addressbook/TODO b/core/pim/addressbook/TODO index 2a27efc..7e800fa 100644 --- a/core/pim/addressbook/TODO +++ b/core/pim/addressbook/TODO | |||
@@ -13,2 +13,3 @@ Feature requests: | |||
13 | - Plugin for Today for Birthdays and Anniversaries | 13 | - Plugin for Today for Birthdays and Anniversaries |
14 | - Beaming of multiple contacts (current list/ by search or by category) | ||
14 | 15 | ||
@@ -61,5 +62,2 @@ Should be Fixed (not absolute sure, need further validation): | |||
61 | ------------------------------------------------------------- | 62 | ------------------------------------------------------------- |
62 | - Searchwidget closed: Selected user is jumping | ||
63 | - Wenn suchen beendet, dann dauert das Tabellenupdate (was überhaupt überflüssig ist) | ||
64 | zu lange.. | ||
65 | 63 | ||
@@ -105,2 +103,5 @@ Fixed: | |||
105 | - Store position and state of toolbar | 103 | - Store position and state of toolbar |
104 | - Searchwidget closed: Selected user is jumping | ||
105 | - Wenn suchen beendet, dann dauert das Tabellenupdate (was überhaupt überflüssig ist) | ||
106 | zu lange.. | ||
106 | - VCARD: Import of Anniversary does not work correctly (currently disabled) | 107 | - VCARD: Import of Anniversary does not work correctly (currently disabled) |
@@ -108 +109,2 @@ Fixed: | |||
108 | - OK-Key does not switch from Detailview (ablable) to Listview | 109 | - OK-Key does not switch from Detailview (ablable) to Listview |
110 | - Receiving of beams should open a dialog | ||
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index 60db2b4..e009d52 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp | |||
@@ -353,6 +353,30 @@ void AddressbookWindow::setDocument( const QString &filename ) | |||
353 | OContactAccess::List allList = access->allRecords(); | 353 | OContactAccess::List allList = access->allRecords(); |
354 | qWarning( "Found number of contacts in File: %d", allList.count() ); | ||
354 | 355 | ||
356 | bool doAsk = true; | ||
355 | OContactAccess::List::Iterator it; | 357 | OContactAccess::List::Iterator it; |
356 | for ( it = allList.begin(); it != allList.end(); ++it ){ | 358 | for ( it = allList.begin(); it != allList.end(); ++it ){ |
357 | m_abView->addEntry( *it ); | 359 | qWarning("Adding Contact from: %s", (*it).fullName().latin1() ); |
360 | if ( doAsk ){ | ||
361 | switch( QMessageBox::information( this, tr ( "Add Contact ?" ), | ||
362 | tr( "Do you really want add contact for \n%1 ?" ) | ||
363 | .arg( (*it).fullName().latin1() ), | ||
364 | tr( "&Yes" ), tr( "&No" ), tr( "&AllYes"), | ||
365 | 0, // Enter == button 0 | ||
366 | 2 ) ) { // Escape == button 2 | ||
367 | case 0: | ||
368 | qWarning("YES clicked"); | ||
369 | m_abView->addEntry( *it ); | ||
370 | break; | ||
371 | case 1: | ||
372 | qWarning("NO clicked"); | ||
373 | break; | ||
374 | case 2: | ||
375 | qWarning("YesAll clicked"); | ||
376 | doAsk = false; | ||
377 | break; | ||
378 | } | ||
379 | }else | ||
380 | m_abView->addEntry( *it ); | ||
381 | |||
358 | } | 382 | } |