35 // |
35 // |
36 void CMusUiSendView::ConstructL() |
36 void CMusUiSendView::ConstructL() |
37 { |
37 { |
38 MUS_LOG( "mus: [MUSUI ] -> CMusUiSendView::ConstructL" ); |
38 MUS_LOG( "mus: [MUSUI ] -> CMusUiSendView::ConstructL" ); |
39 CMusUiGeneralView::ConstructL(); |
39 CMusUiGeneralView::ConstructL(); |
40 iSavedOrientation = MusAppUi()->AppOrientation(); |
|
41 MUS_LOG( "mus: [MUSUI ] <- CMusUiSendView::ConstructL" ); |
40 MUS_LOG( "mus: [MUSUI ] <- CMusUiSendView::ConstructL" ); |
42 } |
41 } |
43 |
42 |
44 |
43 |
45 // ----------------------------------------------------------------------------- |
44 // ----------------------------------------------------------------------------- |
60 void CMusUiSendView::ManualAddressEntryL( const TDesC& aAddress ) |
59 void CMusUiSendView::ManualAddressEntryL( const TDesC& aAddress ) |
61 { |
60 { |
62 MUS_LOG_TDESC( "mus: [MUSUI ] -> CMusUiSendView::ManualAddressEntryL: ", |
61 MUS_LOG_TDESC( "mus: [MUSUI ] -> CMusUiSendView::ManualAddressEntryL: ", |
63 aAddress ); |
62 aAddress ); |
64 |
63 |
65 CAknAppUiBase::TAppUiOrientation aOrientation |
|
66 = CAknAppUiBase::EAppUiOrientationUnspecified; |
|
67 |
64 |
68 TBuf<KMusSipAddressMaxLength> address( aAddress ); |
65 TBuf<KMusSipAddressMaxLength> address( aAddress ); |
69 if ( SendController() && MusUiDialogUtil::ShowTextQueryDialogL( |
66 if ( SendController() && MusUiDialogUtil::ShowTextQueryDialogL( |
70 R_MUS_TEXT_ENTER_ADDRESS_DIALOG_PROMPT, |
67 R_MUS_TEXT_ENTER_ADDRESS_DIALOG_PROMPT, |
71 address ) ) |
68 address ) ) |
72 { |
69 { |
73 //to get the AppOrientation before sending invatation |
|
74 aOrientation = MusAppUi()->AppOrientation(); |
|
75 SendController()->InviteL( address ); |
70 SendController()->InviteL( address ); |
76 } |
71 } |
77 else |
72 else |
78 { |
73 { |
79 MusUiDialogUtil::ShowGlobalInformationDialogL( |
74 MusUiDialogUtil::ShowGlobalInformationDialogL( |
80 R_MUS_LIVE_SHARING_VIEW_NOTE_SHARING_ENDED ); |
75 R_MUS_LIVE_SHARING_VIEW_NOTE_SHARING_ENDED ); |
81 MusAppUi()->HandleExit(); |
76 MusAppUi()->HandleExit(); |
82 } |
77 } |
83 |
78 |
84 if( aOrientation != iSavedOrientation) |
|
85 { |
|
86 SendController()->ChangeOrientationL( iSavedOrientation ); |
|
87 } |
|
88 MUS_LOG( "mus: [MUSUI ] <- CMusUiSendView::ManualAddressEntryL" ); |
79 MUS_LOG( "mus: [MUSUI ] <- CMusUiSendView::ManualAddressEntryL" ); |
89 } |
80 } |
90 |
81 |
91 |
82 |
92 // ----------------------------------------------------------------------------- |
83 // ----------------------------------------------------------------------------- |