emailservices/emailclientapi/src/emailmessage.cpp
changeset 72 64e38f08e49c
parent 65 478bc57ad291
child 74 6c59112cfd31
equal deleted inserted replaced
65:478bc57ad291 72:64e38f08e49c
   832 // -----------------------------------------------------------------------------
   832 // -----------------------------------------------------------------------------
   833 void CEmailMessage::ShowMessageViewerL()
   833 void CEmailMessage::ShowMessageViewerL()
   834     {   
   834     {   
   835     bool syncronous;
   835     bool syncronous;
   836 
   836 
   837     XQServiceRequest request(
   837     XQServiceRequest request( XQI_EMAIL_MESSAGE_VIEW,
   838        emailInterfaceNameMessage,
   838                               XQOP_EMAIL_MESSAGE_VIEW,
   839        emailOperationViewMessage,
   839                               syncronous );
   840        syncronous );
       
   841 
   840 
   842     TFSMailMsgId mailboxId = FsMsgId( iPluginData, iMessageId.iFolderId.iMailboxId );
   841     TFSMailMsgId mailboxId = FsMsgId( iPluginData, iMessageId.iFolderId.iMailboxId );
   843     TFSMailMsgId folderId = FsMsgId( iPluginData, iMessageId.iFolderId );
   842     TFSMailMsgId folderId = FsMsgId( iPluginData, iMessageId.iFolderId );
   844     TFSMailMsgId messageId = FsMsgId( iPluginData, iMessageId );
   843     TFSMailMsgId messageId = FsMsgId( iPluginData, iMessageId );
   845 
   844 
   846     QList<QVariant> list;
   845     QList<QVariant> idList;
   847     list.append( mailboxId.Id() );
   846     idList.append( mailboxId.Id() );
   848     list.append( folderId.Id() );
   847     idList.append( folderId.Id() );
   849     list.append( messageId.Id() );
   848     idList.append( messageId.Id() );
   850     request.setArguments( list );
   849 
       
   850     /*
       
   851         Uncomment the following when the viewer service API operation definition
       
   852         (XQOP_EMAIL_MESSAGE_VIEW) has been updated.
       
   853     
       
   854     QVariant idListAsVariant = QVariant::fromValue( idList );
       
   855 
       
   856     // Add the message list view into the view stack.
       
   857     quint64 flags( EmailBackReturnsToMessageList );
       
   858 
       
   859     QList<QVariant> argumentList;
       
   860     argumentList.append( idListAsVariant );
       
   861     argumentList.append( flags );
       
   862 
       
   863     request.setArguments( argumentList );    
       
   864     */
       
   865     
       
   866     // Remove the following line when the viewer service API operation
       
   867     // definition has been updated.
       
   868     request.setArguments( idList );
   851 
   869 
   852     QVariant returnValue;
   870     QVariant returnValue;
       
   871 
   853     if ( !request.send( returnValue ) )
   872     if ( !request.send( returnValue ) )
       
   873         {
   854         User::Leave( KErrGeneral );
   874         User::Leave( KErrGeneral );
       
   875         }
   855     }
   876     }
   856 
   877 
   857 // -----------------------------------------------------------------------------
   878 // -----------------------------------------------------------------------------
   858 // Launches Email application and new reply message in editor. 
   879 // Launches Email application and new reply message in editor. 
   859 // The method follows "fire and forget" pattern, returns immediately.
   880 // The method follows "fire and forget" pattern, returns immediately.