videoplayback/hbvideoplaybackview/tsrc/testvideoplaybackview/stub/src/mpxvideoviewwrapper.cpp
changeset 44 518105d52e45
parent 42 17f382c040b1
child 49 824471cb468a
--- a/videoplayback/hbvideoplaybackview/tsrc/testvideoplaybackview/stub/src/mpxvideoviewwrapper.cpp	Fri Jul 02 17:14:33 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,222 +0,0 @@
-/*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
-* All rights reserved.
-* This component and the accompanying materials are made available
-* under the terms of "Eclipse Public License v1.0"
-* which accompanies this distribution, and is available
-* at the URL "http://www.eclipse.org/legal/epl-v10.html".
-*
-* Initial Contributors:
-* Nokia Corporation - initial contribution.
-*
-* Contributors:
-*
-* Description:   Implementation of Video base playback view
-*
-*/
-
-// Version : %version: 7 %
-
-
-
-//  Include Files
-
-#include "mpxvideoviewwrapper.h"
-#include "hbvideobaseplaybackview.h"
-#include "mpxvideoplaybackviewfiledetails.h"
-#include "mpxcommonvideoplaybackview.hrh"
-
-//  Member Functions
-
-// -------------------------------------------------------------------------------------------------
-// CMPXVideoViewWrapper::CMPXVideoViewWrapper()
-// -------------------------------------------------------------------------------------------------
-//
-CMPXVideoViewWrapper::CMPXVideoViewWrapper( HbVideoBasePlaybackView* aView )
-    : iView( aView )
-{
-}
-
-// -------------------------------------------------------------------------------------------------
-// CMPXVideoViewWrapper::NewL()
-// -------------------------------------------------------------------------------------------------
-//
-CMPXVideoViewWrapper* CMPXVideoViewWrapper::NewL( HbVideoBasePlaybackView* aView )
-{
-    CMPXVideoViewWrapper* self = new (ELeave) CMPXVideoViewWrapper( aView );
-
-    CleanupStack::PushL( self );
-    self->ConstructL();
-    CleanupStack::Pop();
-
-    return self;
-}
-
-// -------------------------------------------------------------------------------------------------
-//   CMPXVideoViewWrapper::ConstructL()
-// -------------------------------------------------------------------------------------------------
-//
-void CMPXVideoViewWrapper::ConstructL()
-{
-    iMediaRequested = EFalse;
-}
-
-// -------------------------------------------------------------------------------------------------
-// CMPXVideoViewWrapper::~CMPXVideoViewWrapper()
-// -------------------------------------------------------------------------------------------------
-//
-CMPXVideoViewWrapper::~CMPXVideoViewWrapper()
-{
-}
-
-// -------------------------------------------------------------------------------------------------
-// CMPXVideoViewWrapper::IsLive()
-// -------------------------------------------------------------------------------------------------
-//
-TBool CMPXVideoViewWrapper::IsLive()
-{
-    return EFalse;
-}
-
-// -------------------------------------------------------------------------------------------------
-// CMPXVideoViewWrapper::IsPlaylist()
-// -------------------------------------------------------------------------------------------------
-//
-TBool CMPXVideoViewWrapper::IsPlaylist()
-{
-    return EFalse;
-}
-
-// -------------------------------------------------------------------------------------------------
-//   CMPXVideoViewWrapper::CreateGeneralPlaybackCommandL()
-// -------------------------------------------------------------------------------------------------
-//
-void CMPXVideoViewWrapper::CreateGeneralPlaybackCommandL( int aCmd )
-{
-    Q_UNUSED( aCmd );
-}
-
-// -------------------------------------------------------------------------------------------------
-//   CMPXVideoViewWrapper::HandleCommandL()
-// -------------------------------------------------------------------------------------------------
-//
-void CMPXVideoViewWrapper::HandleCommandL( TInt aCommand )
-{
-    iCommand = aCommand;
-}
-
-// -------------------------------------------------------------------------------------------------
-// Request for the media object
-// -------------------------------------------------------------------------------------------------
-//
-void CMPXVideoViewWrapper::RequestMediaL()
-{
-    iMediaRequested = ETrue;
-
-    SetFileDetails( ETrue );
-
-}
-
-// -------------------------------------------------------------------------------------------------
-//   CMPXVideoViewWrapper::ActivateClosePlayerActiveObject
-// -------------------------------------------------------------------------------------------------
-//
-void CMPXVideoViewWrapper::ActivateClosePlayerActiveObject()
-{
-    iClosePlayerAO = ETrue;
-}
-
-// -------------------------------------------------------------------------------------------------
-//   CMPXVideoViewWrapper::IsMultiItemPlaylist()
-// -------------------------------------------------------------------------------------------------
-//
-TBool CMPXVideoViewWrapper::IsMultiItemPlaylist()
-{
-    return iFileDetails->mMultiItemPlaylist;
-}
-
-// -------------------------------------------------------------------------------------------------
-//   CMPXVideoViewWrapper::SetFileDetails()
-// -------------------------------------------------------------------------------------------------
-//
-void CMPXVideoViewWrapper::SetFileDetails(TBool aDefault)
-{
-    if ( iFileDetails )
-    {
-        delete iFileDetails;
-        iFileDetails = NULL;
-    }
-
-    iFileDetails = new QMPXVideoPlaybackViewFileDetails();
-
-    _LIT(KTestMimeType, "video/3gp");
-    const QString qMimeType( (QChar*)KTestMimeType().Ptr(), KTestMimeType().Length() );
-    iFileDetails->mMimeType = qMimeType;
-
-    _LIT(KTestTitle, "Test Video Title");
-    const QString qTitle( (QChar*)KTestTitle().Ptr(), KTestTitle().Length() );
-    iFileDetails->mTitle = qTitle;
-
-    _LIT(KTestArtist, "TestArtist");
-    const QString qArtist( (QChar*)KTestArtist().Ptr(), KTestArtist().Length() );
-    iFileDetails->mArtist = qArtist;
-
-    _LIT(KTestDescription, "Test Description");
-    const QString qDescription( (QChar*)KTestDescription().Ptr(), KTestDescription().Length() );
-    iFileDetails->mDescription = qDescription;
-
-    _LIT(KTestLocation, "Test Location");
-    const QString qLocation( (QChar*)KTestLocation().Ptr(), KTestLocation().Length() );
-    iFileDetails->mLocation = qLocation;
-
-    _LIT(KTestCopyright, "Test Copyright");
-    const QString qCopyright( (QChar*)KTestCopyright().Ptr(), KTestCopyright().Length() );
-    iFileDetails->mCopyright = qCopyright;
-
-    _LIT(KTestLanguage, "Test Language");
-    const QString qLanguage( (QChar*)KTestLanguage().Ptr(), KTestLanguage().Length() );
-    iFileDetails->mLanguage = qLanguage;
-
-    _LIT(KTestKeywords, "Test Keywords");
-    const QString qKeywords( (QChar*)KTestKeywords().Ptr(), KTestKeywords().Length() );
-    iFileDetails->mKeywords = qKeywords;
-
-    if ( aDefault )
-    {
-        _LIT(KTestClipName, "testClip.3gp");
-        const QString qClipname( (QChar*)KTestClipName().Ptr(), KTestClipName().Length() );
-        iFileDetails->mClipName = qClipname;
-    }
-    else
-    {
-        _LIT(KTestClipName, "nextClip.3gp");
-        const QString qClipname( (QChar*)KTestClipName().Ptr(), KTestClipName().Length() );
-        iFileDetails->mClipName = qClipname;
-    }
-
-    iFileDetails->mPlaybackMode = EMPXVideoLocal;
-    iFileDetails->mSeekable = true;
-    iFileDetails->mPausableStream = true;
-    iFileDetails->mAudioEnabled = true;
-    iFileDetails->mVideoEnabled = true;
-    iFileDetails->mPartialPlayback = false;
-    iFileDetails->mRNFormat = false;
-    iFileDetails->mDuration = 100;
-    iFileDetails->mTvOutConnected  = false;
-    iFileDetails->mDrmProtected = false;
-    iFileDetails->mMultiItemPlaylist = false;
-    iFileDetails->mVideoHeight = 320;
-    iFileDetails->mVideoWidth  = 240;
-    iFileDetails->mBitRate = 16000;
-}
-
-// -------------------------------------------------------------------------------------------------
-//   CMPXVideoViewWrapper::IssueVideoAppForegroundCmd()
-// -------------------------------------------------------------------------------------------------
-//
-void CMPXVideoViewWrapper::IssueVideoAppForegroundCmdL( TBool aForeground )
-{
-    iForeground = aForeground;
-}
-
-// EOF