equal
deleted
inserted
replaced
386 // Read the value from cenrep and check whether camera,keypad |
386 // Read the value from cenrep and check whether camera,keypad |
387 // and videoplayer usability. |
387 // and videoplayer usability. |
388 MultimediaSharingSettings::ResourceUsability( iCameraUsability , |
388 MultimediaSharingSettings::ResourceUsability( iCameraUsability , |
389 iKeypadUsability, |
389 iKeypadUsability, |
390 iVideoplayerUsability); |
390 iVideoplayerUsability); |
391 |
391 |
392 // Read the value from cenrep and check whether camera and keypad |
392 // Read the value from cenrep and check whether camera and keypad |
393 // available dynamically. |
393 // available dynamically. |
394 MusSettingsKeys::TAvailability camera,keypad; |
394 MusSettingsKeys::TAvailability camera,keypad; |
395 MultimediaSharingSettings::ResourceAvailability( camera , |
395 MultimediaSharingSettings::ResourceAvailability( camera , |
396 keypad); |
396 keypad); |
507 orientation == CAknAppUiBase::EAppUiOrientationPortrait) |
507 orientation == CAknAppUiBase::EAppUiOrientationPortrait) |
508 ) |
508 ) |
509 ); |
509 ); |
510 } |
510 } |
511 |
511 |
512 |
512 // ----------------------------------------------------------------------------- |
513 |
513 // |
514 |
514 // ----------------------------------------------------------------------------- |
515 |
515 // |
516 |
516 void CMusUiResourceHandler::CheckInitialOrientationL(MultimediaSharing::TMusUseCase aUsecase ) |
517 |
517 { |
518 |
518 MUS_LOG( "mus: [MUSUI ] -> CMusUiResourceHandler::CheckInitialOrientationL()" ) |
519 |
519 if ( aUsecase != MultimediaSharing::EMusLiveVideo && |
520 |
520 aUsecase != MultimediaSharing::EMusClipVideo && |
521 |
521 aUsecase != MultimediaSharing::EMusReceive ) |
522 |
522 { |
523 |
523 return; |
524 |
524 } |
525 |
525 |
526 |
526 MusSettingsKeys::TUsability usability = ( aUsecase == MultimediaSharing::EMusLiveVideo ) ? |
527 |
527 iCameraUsability : iVideoplayerUsability; |
528 |
528 if ( usability == MusSettingsKeys::EUsabilityPortrait ) |
529 |
529 { |
530 |
530 iObserver.SwitchOrientationL( CAknAppUiBase::EAppUiOrientationPortrait ); |
531 |
531 } |
532 |
532 else if ( usability == MusSettingsKeys::EUsabilityLandscape ) |
|
533 { |
|
534 iObserver.SwitchOrientationL( CAknAppUiBase::EAppUiOrientationLandscape ); |
|
535 } |
|
536 MUS_LOG( "mus: [MUSUI ] <- CMusUiResourceHandler::CheckInitialOrientationL()" ) |
|
537 } |
|
538 |
|
539 |
|
540 |
|
541 |
|
542 |
|
543 |
|
544 |
|
545 |
|
546 |
|
547 |
|
548 |
|
549 |
|
550 |
|
551 |
|
552 |
|
553 |
|
554 |
|
555 |
|
556 |
|
557 |
|
558 |