summaryrefslogtreecommitdiff
authoreilers <eilers>2002-12-11 16:54:48 (UTC)
committer eilers <eilers>2002-12-11 16:54:48 (UTC)
commit4322cafd7d14341e53027dadf417febe8bd49a56 (patch) (side-by-side diff)
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) (show whitespace changes)
-rw-r--r--core/pim/addressbook/TODO8
-rw-r--r--core/pim/addressbook/addressbook.cpp24
2 files changed, 29 insertions, 3 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
@@ -12,4 +12,5 @@ Feature requests:
- Birthday & Anniversary Reminder
- Plugin for Today for Birthdays and Anniversaries
+- Beaming of multiple contacts (current list/ by search or by category)
Known Bugs:
@@ -60,7 +61,4 @@ Less important:
Should be Fixed (not absolute sure, need further validation):
-------------------------------------------------------------
-- Searchwidget closed: Selected user is jumping
-- Wenn suchen beendet, dann dauert das Tabellenupdate (was überhaupt überflüssig ist)
- zu lange..
@@ -104,5 +102,9 @@ Fixed:
- Change MyDialog to Config
- Store position and state of toolbar
+- Searchwidget closed: Selected user is jumping
+- Wenn suchen beendet, dann dauert das Tabellenupdate (was überhaupt überflüssig ist)
+ zu lange..
- VCARD: Import of Anniversary does not work correctly (currently disabled)
- Name order selected in "contacteditor" not used in list view.
- OK-Key does not switch from Detailview (ablable) to Listview
+- 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
@@ -352,8 +352,32 @@ void AddressbookWindow::setDocument( const QString &filename )
OContactAccess* access = new OContactAccess ( "addressbook", QString::null , vcard_backend, true );
OContactAccess::List allList = access->allRecords();
+ qWarning( "Found number of contacts in File: %d", allList.count() );
+ bool doAsk = true;
OContactAccess::List::Iterator it;
for ( it = allList.begin(); it != allList.end(); ++it ){
+ qWarning("Adding Contact from: %s", (*it).fullName().latin1() );
+ if ( doAsk ){
+ switch( QMessageBox::information( this, tr ( "Add Contact ?" ),
+ tr( "Do you really want add contact for \n%1 ?" )
+ .arg( (*it).fullName().latin1() ),
+ tr( "&Yes" ), tr( "&No" ), tr( "&AllYes"),
+ 0, // Enter == button 0
+ 2 ) ) { // Escape == button 2
+ case 0:
+ qWarning("YES clicked");
+ m_abView->addEntry( *it );
+ break;
+ case 1:
+ qWarning("NO clicked");
+ break;
+ case 2:
+ qWarning("YesAll clicked");
+ doAsk = false;
+ break;
+ }
+ }else
m_abView->addEntry( *it );
+
}