--- a/messagingapp/msgui/unifiedviewer/src/univieweraddresswidget.cpp Wed Sep 01 14:19:13 2010 +0530
+++ b/messagingapp/msgui/unifiedviewer/src/univieweraddresswidget.cpp Tue Sep 07 13:28:39 2010 +0530
@@ -475,9 +475,6 @@
if(action)
{
- QList<QVariant> args;
- QString operation;
-
QString data = action->data().toString();
int contactId = MsgContactHandler::resolveContactDisplayName(
@@ -495,29 +492,31 @@
QContactEmailAddress::FieldEmailAddress);
}
+ //service stuff.
+ QString service("phonebookservices");
+ QString interface;
+ QString operation;
+ QList<QVariant> args;
+
if(contactId > 0)
{
//open contact card
- operation = QString("open(int)");
+ interface = QString("com.nokia.symbian.IContactsView");
+ operation = QString("openContactCard(int)");
args << contactId;
}
else
{
//save to contacts with phone number field prefilled.
-
+ interface = QString("com.nokia.symbian.IContactsEdit");
operation = QString("editCreateNew(QString,QString)");
QString type = QContactPhoneNumber::DefinitionName;
-
args << type;
args << data;
}
-
- //service stuff.
- QString serviceName("com.nokia.services.phonebookservices");
-
XQAiwRequest* request;
XQApplicationManager appManager;
- request = appManager.create(serviceName, "Fetch", operation, true); // embedded
+ request = appManager.create(service, interface, operation, true); // embedded
if ( request == NULL )
{
return;