summaryrefslogtreecommitdiff
authoreilers <eilers>2002-12-11 16:54:48 (UTC)
committer eilers <eilers>2002-12-11 16:54:48 (UTC)
commit4322cafd7d14341e53027dadf417febe8bd49a56 (patch) (unidiff)
tree8d4c82d18742792a60accdc2150a1f1598e1d935
parent7e573bad07c4046e0050ff7027c2a994d3580002 (diff)
downloadopie-4322cafd7d14341e53027dadf417febe8bd49a56.zip
opie-4322cafd7d14341e53027dadf417febe8bd49a56.tar.gz
opie-4322cafd7d14341e53027dadf417febe8bd49a56.tar.bz2
Implemented dialog box for every received vcard to get user permission
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/TODO8
-rw-r--r--core/pim/addressbook/addressbook.cpp26
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
@@ -6,16 +6,17 @@ Feature requests:
6- Dial by mobile phone by tapping the number.. 6- Dial by mobile phone by tapping the number..
7 (Maybe using gsmtool. And we may 7 (Maybe using gsmtool. And we may
8 add a library class for this) 8 add a library class for this)
9- dial with dtmfdial incase it's installed and there's no mobile 9- dial with dtmfdial incase it's installed and there's no mobile
10- 3rd column for 2. Contact 10- 3rd column for 2. Contact
11- Implementing additional Views (Phonebook, ...) 11- Implementing additional Views (Phonebook, ...)
12- Birthday & Anniversary Reminder 12- Birthday & Anniversary Reminder
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
15Known Bugs: 16Known Bugs:
16----------- 17-----------
17- Language not English (tested with german opie-translation): 18- Language not English (tested with german opie-translation):
18 1. Configure nicht übersetzt (alles leer). 19 1. Configure nicht übersetzt (alles leer).
19 2. Contacteditor nur teilweise übersetzt. 20 2. Contacteditor nur teilweise übersetzt.
20 3. Kategorie-Picker geht nicht. 21 3. Kategorie-Picker geht nicht.
21 22
@@ -54,19 +55,16 @@ Less important:
54- Reload if contacts were changed externally 55- Reload if contacts were changed externally
55- Overview window cleanup needed.. 56- Overview window cleanup needed..
56- The picker (alphabetical sort widget) should be 57- The picker (alphabetical sort widget) should be
57 placed verticaly or horizontally (configurable) 58 placed verticaly or horizontally (configurable)
58- Find a smart solution for activating/deactivating the "send email" event 59- Find a smart solution for activating/deactivating the "send email" event
59 60
60Should be Fixed (not absolute sure, need further validation): 61Should 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
66 64
67Fixed: 65Fixed:
68------- 66-------
69- Syncing: abtable not reloaded after sync. 67- Syncing: abtable not reloaded after sync.
70- Find widget should be replaced by something like 68- Find widget should be replaced by something like
71 qpdf has. 69 qpdf has.
72- Adding a configuration dialog 70- Adding a configuration dialog
@@ -98,11 +96,15 @@ Fixed:
98 There are already entries in Cardview after up/down 96 There are already entries in Cardview after up/down
99- Personal Details: Anniversary zeigt Fantasie-Werte 97- Personal Details: Anniversary zeigt Fantasie-Werte
100- Unfiled shown just in Category "All" and "Unfiled". 98- Unfiled shown just in Category "All" and "Unfiled".
101- After finising search and after Edit: Clear Picker 99- After finising search and after Edit: Clear Picker
102- After Edit: Table position back to edited entry. 100- After Edit: Table position back to edited entry.
103- Optimize Table Update... 101- Optimize Table Update...
104- Change MyDialog to Config 102- Change MyDialog to Config
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)
107- Name order selected in "contacteditor" not used in list view. 108- Name order selected in "contacteditor" not used in list view.
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
@@ -346,20 +346,44 @@ void AddressbookWindow::setDocument( const QString &filename )
346 break; 346 break;
347 } 347 }
348 } 348 }
349 349
350 OContactAccessBackend* vcard_backend = new OContactAccessBackend_VCard( QString::null, 350 OContactAccessBackend* vcard_backend = new OContactAccessBackend_VCard( QString::null,
351 filename ); 351 filename );
352 OContactAccess* access = new OContactAccess ( "addressbook", QString::null , vcard_backend, true ); 352 OContactAccess* access = new OContactAccess ( "addressbook", QString::null , vcard_backend, true );
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 }
359 383
360 delete access; 384 delete access;
361} 385}
362 386
363void AddressbookWindow::resizeEvent( QResizeEvent *e ) 387void AddressbookWindow::resizeEvent( QResizeEvent *e )
364{ 388{
365 QMainWindow::resizeEvent( e ); 389 QMainWindow::resizeEvent( e );