emailuis/nmailui/src/nmviewerserviceinterface.cpp
changeset 44 c2d07d913565
parent 43 99bcbff212ad
child 47 f83bd4ae1fe3
equal deleted inserted replaced
43:99bcbff212ad 44:c2d07d913565
    78         XQServiceUtil::toBackground(false);
    78         XQServiceUtil::toBackground(false);
    79         HbMainWindow *mainWindow = mApplication->mainWindow();
    79         HbMainWindow *mainWindow = mApplication->mainWindow();
    80         mainWindow->show();
    80         mainWindow->show();
    81 
    81 
    82         // Launch the message list view.
    82         // Launch the message list view.
       
    83         NmUiStartParam *startParam1 = 
       
    84             new NmUiStartParam(NmUiViewMessageList,
       
    85                                mailboxNmId,
       
    86                                folderNmId, // folder id
       
    87                                messageNmId, // message id
       
    88                                NmUiEditorCreateNew, // editor start mode
       
    89                                NULL, // address list
       
    90                                NULL, // attachment list
       
    91                                true); // start as service
       
    92         mApplication->enterNmUiView(startParam1);
       
    93         
       
    94         // Launch the message view.
    83         NmUiStartParam *startParam =
    95         NmUiStartParam *startParam =
    84             new NmUiStartParam(NmUiViewMessageViewer,
    96             new NmUiStartParam(NmUiViewMessageViewer,
    85                                mailboxNmId,
    97                                mailboxNmId,
    86                                folderNmId, // folder id
    98                                folderNmId, // folder id
    87                                messageNmId, // message id
    99                                messageNmId, // message id
    88                                NmUiEditorCreateNew, // editor start mode
   100                                NmUiEditorCreateNew, // editor start mode
    89                                NULL, // address list
   101                                NULL, // address list
    90                                NULL, // attachment list
   102                                NULL, // attachment list
    91                                true); // start as service
   103                                false); // not started as service
    92         mApplication->enterNmUiView(startParam);
   104         mApplication->enterNmUiView(startParam);
    93 
   105 
    94         completeRequest(mAsyncReqId,0);
   106         completeRequest(mAsyncReqId,0);
    95     }
   107     }
    96     else {
   108     else {