84 _LIT( KAbstract, "Abstract" ); |
84 _LIT( KAbstract, "Abstract" ); |
85 _LIT( KLocation, "Location" ); |
85 _LIT( KLocation, "Location" ); |
86 _LIT( KRightCopy, "Copyright" ); |
86 _LIT( KRightCopy, "Copyright" ); |
87 _LIT( KLanguage, "Language" ); |
87 _LIT( KLanguage, "Language" ); |
88 _LIT( KKeywords, "Keywords" ); |
88 _LIT( KKeywords, "Keywords" ); |
|
89 _LIT( KCreated, "CreationTime" ); |
|
90 _LIT( KLastModified, "ModificationTime" ); |
89 |
91 |
90 |
92 |
91 // ============================ MEMBER FUNCTIONS =================================================== |
93 // ============================ MEMBER FUNCTIONS =================================================== |
92 |
94 |
93 // ------------------------------------------------------------------------------------------------ |
95 // ------------------------------------------------------------------------------------------------ |
1448 iFileDetails->iLanguage = metaData->Value().AllocL(); |
1441 iFileDetails->iLanguage = metaData->Value().AllocL(); |
1449 } |
1442 } |
1450 else if ( !metaData->Name().CompareF( KKeywords ) ) |
1443 else if ( !metaData->Name().CompareF( KKeywords ) ) |
1451 { |
1444 { |
1452 iFileDetails->iKeywords = metaData->Value().AllocL(); |
1445 iFileDetails->iKeywords = metaData->Value().AllocL(); |
|
1446 } |
|
1447 else if ( !metaData->Name().CompareF( KCreated ) ) |
|
1448 { |
|
1449 TLex lex( metaData->Value() ); |
|
1450 lex.Val( iFileDetails->iCreationTime ); |
|
1451 } |
|
1452 else if ( !metaData->Name().CompareF( KLastModified ) ) |
|
1453 { |
|
1454 TLex lex( metaData->Value() ); |
|
1455 lex.Val( iFileDetails->iModificationTime ); |
1453 } |
1456 } |
1454 |
1457 |
1455 CleanupStack::PopAndDestroy( metaData ); |
1458 CleanupStack::PopAndDestroy( metaData ); |
1456 } |
1459 } |
1457 |
1460 |
1768 |
1771 |
1769 // ------------------------------------------------------------------------------------------------- |
1772 // ------------------------------------------------------------------------------------------------- |
1770 // CMPXVideoPlaybackController::SendTvOutEventL |
1773 // CMPXVideoPlaybackController::SendTvOutEventL |
1771 // ------------------------------------------------------------------------------------------------- |
1774 // ------------------------------------------------------------------------------------------------- |
1772 // |
1775 // |
1773 TBool CMPXVideoPlaybackController::SendTvOutEventL( TBool aConnected, TBool aPlaybackAllowed ) |
1776 void CMPXVideoPlaybackController::SendTvOutEventL( TBool aConnected, TBool aPlaybackAllowed ) |
1774 { |
1777 { |
1775 MPX_ENTER_EXIT(_L("CMPXVideoPlaybackController::SendTvOutEventL()")); |
1778 MPX_ENTER_EXIT(_L("CMPXVideoPlaybackController::SendTvOutEventL()")); |
1776 |
1779 |
1777 // |
1780 // |
1778 // Send notice to the playback view with TV-Out connection status |
1781 // Send notice to the playback view with TV-Out connection status |
1784 message->SetTObjectValueL<TMPXMessageId>( KMPXMessageGeneralId, KMPXMediaIdVideoPlayback ); |
1787 message->SetTObjectValueL<TMPXMessageId>( KMPXMessageGeneralId, KMPXMediaIdVideoPlayback ); |
1785 message->SetTObjectValueL<TMPXVideoPlaybackCommand> |
1788 message->SetTObjectValueL<TMPXVideoPlaybackCommand> |
1786 ( KMPXMediaVideoPlaybackCommand, EPbCmdTvOutEvent ); |
1789 ( KMPXMediaVideoPlaybackCommand, EPbCmdTvOutEvent ); |
1787 message->SetTObjectValueL<TInt>( KMPXMediaVideoTvOutConnected, aConnected ); |
1790 message->SetTObjectValueL<TInt>( KMPXMediaVideoTvOutConnected, aConnected ); |
1788 message->SetTObjectValueL<TInt>( KMPXMediaVideoTvOutPlayAllowed, aPlaybackAllowed ); |
1791 message->SetTObjectValueL<TInt>( KMPXMediaVideoTvOutPlayAllowed, aPlaybackAllowed ); |
|
1792 |
|
1793 iMPXPluginObs->HandlePlaybackMessage( message, KErrNone ); |
|
1794 |
|
1795 CleanupStack::PopAndDestroy( message ); |
|
1796 } |
|
1797 |
|
1798 // ------------------------------------------------------------------------------------------------- |
|
1799 // CMPXVideoPlaybackController::SendHideControlsEventL |
|
1800 // ------------------------------------------------------------------------------------------------- |
|
1801 // |
|
1802 void CMPXVideoPlaybackController::SendHideControlsEventL() |
|
1803 { |
|
1804 MPX_ENTER_EXIT(_L("CMPXVideoPlaybackController::SendHideControlsEventL()")); |
|
1805 |
|
1806 // |
|
1807 // Send notice to the playback view to hide the controls |
|
1808 // when key lock |
|
1809 // |
|
1810 CMPXMessage* message = CMPXMessage::NewL(); |
|
1811 CleanupStack::PushL( message ); |
|
1812 |
|
1813 message->SetTObjectValueL<TMPXMessageId>( KMPXMessageGeneralId, KMPXMediaIdVideoPlayback ); |
|
1814 |
|
1815 message->SetTObjectValueL<TMPXVideoPlaybackCommand> |
|
1816 ( KMPXMediaVideoPlaybackCommand, EPbCmdHideControls ); |
1789 |
1817 |
1790 iMPXPluginObs->HandlePlaybackMessage( message, KErrNone ); |
1818 iMPXPluginObs->HandlePlaybackMessage( message, KErrNone ); |
1791 |
1819 |
1792 CleanupStack::PopAndDestroy( message ); |
1820 CleanupStack::PopAndDestroy( message ); |
1793 } |
1821 } |