phonebookui/Phonebook2/ccapplication/ccacontactorservice/src/ccacontactorpopuphandler.cpp
branchRCL_3
changeset 17 2666d9724c76
parent 0 e686773b3f54
--- a/phonebookui/Phonebook2/ccapplication/ccacontactorservice/src/ccacontactorpopuphandler.cpp	Mon Jun 21 15:24:27 2010 +0300
+++ b/phonebookui/Phonebook2/ccapplication/ccacontactorservice/src/ccacontactorpopuphandler.cpp	Thu Jul 15 18:22:55 2010 +0300
@@ -88,6 +88,27 @@
     // Set contactlink
     inParamList.AppendL(TAiwGenericParam(EGenericParamContactLinkArray,
         TAiwVariant(aContactLinkArray)));
+    
+    //Append the current status pane id
+    //this will also be used by Pbk2ServerApplication
+    //This is kind of a new implementation which will pave way
+    //for the applications to use the required statuspane that they
+    //prefer. 
+    //since its not feasible to add any new AIW functionality
+    //we will follow this approach.
+    CEikStatusPane* statusPane =
+            CEikonEnv::Static()->AppUiFactory()->StatusPane();
+    
+    if ( statusPane )
+        {
+        TInt currentstatuspane = statusPane->CurrentLayoutResId();        
+        TBuf<KCCAMAXBUFFSIZE> numBuf;
+        numBuf.AppendNum( currentstatuspane );
+        
+        inParamList.AppendL(TAiwGenericParam(EGenericParamUnspecified,
+                    TAiwVariant( numBuf )));
+        }
+        
 
     iServiceHandler->ExecuteServiceCmdL(KAiwCmdSelect, inParamList,
         iServiceHandler->OutParamListL(), 0, this);