equal
deleted
inserted
replaced
26 #include "musuiactivequerydialog.h" |
26 #include "musuiactivequerydialog.h" |
27 #include "musuidefinitions.h" |
27 #include "musuidefinitions.h" |
28 #include "mussettings.h" |
28 #include "mussettings.h" |
29 #include "mussettingskeys.h" |
29 #include "mussettingskeys.h" |
30 #include "musmanagercommon.h" |
30 #include "musmanagercommon.h" |
|
31 #include "musuiresourcehandler.h" |
31 #include "musui.hrh" |
32 #include "musui.hrh" |
32 #include "musuid.hrh" |
33 #include "musuid.hrh" |
33 #include "muslogger.h" // debug logging |
34 #include "muslogger.h" // debug logging |
34 #include <musui.rsg> |
35 #include <musui.rsg> |
35 #include <musui.mbg> |
36 #include <musui.mbg> |
50 // |
51 // |
51 void CMusUiAppUi::ConstructL() |
52 void CMusUiAppUi::ConstructL() |
52 { |
53 { |
53 MUS_LOG( "mus: [MUSUI ] -> CMusUiAppUi::ConstructL" ); |
54 MUS_LOG( "mus: [MUSUI ] -> CMusUiAppUi::ConstructL" ); |
54 BaseConstructL( EAknEnableSkin | EAppOrientationAutomatic | EAknEnableMSK ); |
55 BaseConstructL( EAknEnableSkin | EAppOrientationAutomatic | EAknEnableMSK ); |
55 |
56 |
|
57 iResourceHandler = CMusUiResourceHandler::NewL( *this ); |
|
58 MultimediaSharing::TMusUseCase usecase = MusUiStartController::ReadUseCaseL(); |
|
59 iResourceHandler->CheckInitialOrientationL(usecase); |
|
60 |
56 iForeground = ETrue; |
61 iForeground = ETrue; |
57 |
62 |
58 // View for Live Sharing: |
63 // View for Live Sharing: |
59 CMusUiLiveSharingView* liveSharingView = |
64 CMusUiLiveSharingView* liveSharingView = |
60 new ( ELeave ) CMusUiLiveSharingView; |
65 new ( ELeave ) CMusUiLiveSharingView; |
90 |
95 |
91 AknsUtils::InitSkinSupportL(); |
96 AknsUtils::InitSkinSupportL(); |
92 AknsUtils::SetAvkonSkinEnabledL( ETrue ); |
97 AknsUtils::SetAvkonSkinEnabledL( ETrue ); |
93 |
98 |
94 // Check use case and set default view |
99 // Check use case and set default view |
95 switch ( MusUiStartController::ReadUseCaseL() ) |
100 switch ( usecase ) |
96 { |
101 { |
97 case MultimediaSharing::EMusLiveVideo: |
102 case MultimediaSharing::EMusLiveVideo: |
98 ActivateLocalViewL( liveSharingView->Id() ); |
103 ActivateLocalViewL( liveSharingView->Id() ); |
99 break; |
104 break; |
100 case MultimediaSharing::EMusClipVideo: |
105 case MultimediaSharing::EMusClipVideo: |
114 |
119 |
115 // check if operator specific functionality is needed |
120 // check if operator specific functionality is needed |
116 iOperatorSpecificFunctionality = |
121 iOperatorSpecificFunctionality = |
117 ( MultimediaSharingSettings::OperatorVariantSettingL() == |
122 ( MultimediaSharingSettings::OperatorVariantSettingL() == |
118 EOperatorSpecific ); |
123 EOperatorSpecific ); |
119 |
124 |
120 MUS_LOG( "mus: [MUSUI ] <- CMusUiAppUi::ConstructL" ); |
125 MUS_LOG( "mus: [MUSUI ] <- CMusUiAppUi::ConstructL" ); |
121 } |
126 } |
122 |
127 |
123 |
128 |
124 // ----------------------------------------------------------------------------- |
129 // ----------------------------------------------------------------------------- |
126 // ----------------------------------------------------------------------------- |
131 // ----------------------------------------------------------------------------- |
127 // |
132 // |
128 CMusUiAppUi::~CMusUiAppUi() |
133 CMusUiAppUi::~CMusUiAppUi() |
129 { |
134 { |
130 MUS_LOG( "mus: [MUSUI ] -> CMusUiAppUi::~CMusUiAppUi" ); |
135 MUS_LOG( "mus: [MUSUI ] -> CMusUiAppUi::~CMusUiAppUi" ); |
|
136 delete iResourceHandler; |
131 delete iConfirmationQuery; |
137 delete iConfirmationQuery; |
132 delete iStatusPaneHandler; |
138 delete iStatusPaneHandler; |
133 delete iInterfaceSelector; |
139 delete iInterfaceSelector; |
134 MUS_LOG( "mus: [MUSUI ] <- CMusUiAppUi::~CMusUiAppUi" ); |
140 MUS_LOG( "mus: [MUSUI ] <- CMusUiAppUi::~CMusUiAppUi" ); |
135 } |
141 } |
526 void CMusUiAppUi::HandleResourceChangeL( TInt aResourceChangeType ) |
532 void CMusUiAppUi::HandleResourceChangeL( TInt aResourceChangeType ) |
527 { |
533 { |
528 MUS_LOG( "mus: [MUSUI ] -> CMusUiAppUi::HandleResourceChangeL" ); |
534 MUS_LOG( "mus: [MUSUI ] -> CMusUiAppUi::HandleResourceChangeL" ); |
529 CAknAppUi::HandleResourceChangeL( aResourceChangeType ); |
535 CAknAppUi::HandleResourceChangeL( aResourceChangeType ); |
530 |
536 |
531 if ( aResourceChangeType == KEikDynamicLayoutVariantSwitch ) |
537 if ( aResourceChangeType == KEikDynamicLayoutVariantSwitch && iView ) |
532 { |
538 { |
533 MUS_LOG( "mus: [MUSUI ] CMusUiAppUi::HandleResourceChangeL:\ |
539 MUS_LOG( "mus: [MUSUI ] CMusUiAppUi::HandleResourceChangeL:\ |
534 aResourceChangeType == KEikDynamicLayoutVariantSwitch" ); |
540 aResourceChangeType == KEikDynamicLayoutVariantSwitch" ); |
535 |
541 |
536 iView->Toolbar()->HandleResourceChange( aResourceChangeType ); |
542 iView->Toolbar()->HandleResourceChange( aResourceChangeType ); |
543 return; |
549 return; |
544 } |
550 } |
545 |
551 |
546 if ( activatedView ) |
552 if ( activatedView ) |
547 { |
553 { |
548 activatedView->RefreshView( ETrue ); |
554 activatedView->RefreshView(); |
549 } |
555 } |
550 } |
556 } |
551 |
557 |
552 MUS_LOG( "mus: [MUSUI ] <- CMusUiAppUi::HandleResourceChangeL" ); |
558 MUS_LOG( "mus: [MUSUI ] <- CMusUiAppUi::HandleResourceChangeL" ); |
553 } |
559 } |
586 { |
592 { |
587 case EMusuiGenCmdExit: |
593 case EMusuiGenCmdExit: |
588 case EAknSoftkeyExit: |
594 case EAknSoftkeyExit: |
589 case EEikCmdExit: |
595 case EEikCmdExit: |
590 { |
596 { |
591 SetToolbarVisibility( EFalse ); |
597 CMusUiGeneralView* activatedView = |
592 HandleExit(); |
598 static_cast<CMusUiGeneralView*>( iView ); |
|
599 activatedView->HandleCommandL( EAknSoftkeyExit ); |
|
600 |
593 break; |
601 break; |
594 } |
602 } |
595 default: |
603 default: |
596 break; |
604 break; |
597 } |
605 } |
605 TInt CMusUiAppUi::GetUiVolumeValue() |
613 TInt CMusUiAppUi::GetUiVolumeValue() |
606 { |
614 { |
607 return iStatusPaneHandler->GetVolumeControlValue(); |
615 return iStatusPaneHandler->GetVolumeControlValue(); |
608 } |
616 } |
609 |
617 |
|
618 // ----------------------------------------------------------------------------- |
|
619 // CMusUiAppUi::ResourceHandler() |
|
620 // ----------------------------------------------------------------------------- |
|
621 // |
|
622 CMusUiResourceHandler* CMusUiAppUi::ResourceHandler() |
|
623 { |
|
624 return iResourceHandler; |
|
625 } |
610 |
626 |
611 // ----------------------------------------------------------------------------- |
627 // ----------------------------------------------------------------------------- |
612 // CMusUiAppUi::AppHelpContextL() |
628 // CMusUiAppUi::AppHelpContextL() |
613 // ----------------------------------------------------------------------------- |
629 // ----------------------------------------------------------------------------- |
614 // |
630 // |