mmsharing/mmshui/src/musuisendview.cpp
changeset 2 b31261fd4e04
parent 0 f0cf47e981f9
child 6 c47a75a8cd72
equal deleted inserted replaced
1:065f1826587f 2:b31261fd4e04
    59 //
    59 //
    60 void CMusUiSendView::ManualAddressEntryL( const TDesC& aAddress )
    60 void CMusUiSendView::ManualAddressEntryL( const TDesC& aAddress )
    61     {
    61     {
    62     MUS_LOG_TDESC( "mus: [MUSUI ]    -> CMusUiSendView::ManualAddressEntryL: ",
    62     MUS_LOG_TDESC( "mus: [MUSUI ]    -> CMusUiSendView::ManualAddressEntryL: ",
    63                             aAddress );
    63                             aAddress );
    64 
    64      
    65     TBuf<KMusSipAddressMaxLength> address( aAddress );
    65     CAknAppUiBase::TAppUiOrientation aOrientation ;
       
    66     
       
    67      TBuf<KMusSipAddressMaxLength> address( aAddress );
    66     if ( SendController() && MusUiDialogUtil::ShowTextQueryDialogL( 
    68     if ( SendController() && MusUiDialogUtil::ShowTextQueryDialogL( 
    67                                     R_MUS_TEXT_ENTER_ADDRESS_DIALOG_PROMPT, 
    69                                     R_MUS_TEXT_ENTER_ADDRESS_DIALOG_PROMPT, 
    68                                     address ) )
    70                                     address ) )
    69         {
    71         {
       
    72         //to get the AppOrientation before sending invatation
       
    73         aOrientation = MusAppUi()->AppOrientation();       
    70         SendController()->InviteL( address );
    74         SendController()->InviteL( address );
    71         }
    75         }
    72     else
    76     else
    73         {
    77         {
    74         MusUiDialogUtil::ShowGlobalInformationDialogL( 
    78         MusUiDialogUtil::ShowGlobalInformationDialogL( 
    75                             R_MUS_LIVE_SHARING_VIEW_NOTE_SHARING_ENDED );
    79                             R_MUS_LIVE_SHARING_VIEW_NOTE_SHARING_ENDED );
    76         MusAppUi()->HandleExit();
    80         MusAppUi()->HandleExit();
    77         }
    81         }
    78 
    82 
    79     SendController()->ChangeOrientationL( iSavedOrientation );
    83     if( aOrientation != iSavedOrientation)
       
    84     	{
       
    85          SendController()->ChangeOrientationL( iSavedOrientation );
       
    86     	}
    80     MUS_LOG( "mus: [MUSUI ]  <- CMusUiSendView::ManualAddressEntryL" );
    87     MUS_LOG( "mus: [MUSUI ]  <- CMusUiSendView::ManualAddressEntryL" );
    81     }
    88     }
    82 
    89 
    83 
    90 
    84 // -----------------------------------------------------------------------------
    91 // -----------------------------------------------------------------------------