phonebookui/Phonebook2/GroupExtension/src/CPguSendMessageGroupCmd.cpp
branchRCL_3
changeset 23 5586b4d2ec3e
parent 0 e686773b3f54
child 35 4ae315f230bc
equal deleted inserted replaced
21:b3431bff8c19 23:5586b4d2ec3e
    49 #include <barsread.h>
    49 #include <barsread.h>
    50 #include <sendui.h>
    50 #include <sendui.h>
    51 #include <SenduiMtmUids.h>
    51 #include <SenduiMtmUids.h>
    52 #include <CMessageData.h>
    52 #include <CMessageData.h>
    53 #include <eikenv.h>
    53 #include <eikenv.h>
       
    54 #include <akntitle.h>
       
    55 #include <eikspane.h>
       
    56 #include <avkon.hrh>
    54 
    57 
    55 // Debugging headers
    58 // Debugging headers
    56 #include <Pbk2Debug.h>
    59 #include <Pbk2Debug.h>
    57 
    60 
    58 /// Unnamed namespace for local definitions
    61 /// Unnamed namespace for local definitions
   363 void CPguSendMessageGroupCmd::DoSendMessageL()
   366 void CPguSendMessageGroupCmd::DoSendMessageL()
   364     {
   367     {
   365     PBK2_DEBUG_PRINT(PBK2_DEBUG_STRING
   368     PBK2_DEBUG_PRINT(PBK2_DEBUG_STRING
   366         ("CPguSendMessageGroupCmd::DoSendMessageL() start") );
   369         ("CPguSendMessageGroupCmd::DoSendMessageL() start") );
   367 
   370 
       
   371     // Gets current tile pane and saves it to title
       
   372     HBufC* title = NULL;
       
   373     CAknTitlePane* titlePane = NULL;
       
   374     CEikStatusPane *sp = CEikonEnv::Static()->AppUiFactory()->StatusPane();
       
   375     titlePane = STATIC_CAST( CAknTitlePane*, 
       
   376         sp->ControlL( TUid::Uid( EEikStatusPaneUidTitle ) ) );
       
   377     title = titlePane->Text()->AllocLC();
       
   378 
   368     Phonebook2::Pbk2AppUi()->ApplicationServices().SendUiL()->
   379     Phonebook2::Pbk2AppUi()->ApplicationServices().SendUiL()->
   369         CreateAndSendMessageL( iMtmUid, iMessageData );
   380         CreateAndSendMessageL( iMtmUid, iMessageData );
       
   381 
       
   382     // Sets title pane for tile which was save
       
   383     titlePane->SetText( title );
       
   384     CleanupStack::Pop();
       
   385 
   370     iState = EStopping;
   386     iState = EStopping;
   371     IssueRequest();
   387     IssueRequest();
   372     }
   388     }
   373 
   389 
   374 // --------------------------------------------------------------------------
   390 // --------------------------------------------------------------------------