diff -r 000000000000 -r 84ad3b177aa3 browserplugins/browseraudiovideoplugin/src/BavpClipInfo.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/browserplugins/browseraudiovideoplugin/src/BavpClipInfo.cpp Mon Mar 30 12:49:49 2009 +0300 @@ -0,0 +1,70 @@ +/* +* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "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: Store the meta information and the state of the clip played +* +*/ + + +// INCLUDE FILES +#include "BavpClipInfo.h" + +// ============================ MEMBER FUNCTIONS =============================== + +// ----------------------------------------------------------------------------- +// CBavpClipInfo::CBavpClipInfo +// C++ default constructor can NOT contain any code, that +// might leave. +// ----------------------------------------------------------------------------- + CBavpClipInfo::CBavpClipInfo() + : iMediaType( EUnidentified ), + iSeekable( ETrue ), + iLiveStream( EFalse ), + iVideoTrack( EFalse ), + iInFullScreenMode( EFalse ) + { + } + +// ----------------------------------------------------------------------------- +// CBavpClipInfo::~CBavpClipInfo +// Destructor +// ----------------------------------------------------------------------------- +CBavpClipInfo::~CBavpClipInfo() + { + // iFileName is created by controller, but we have ownership + delete iFileName; + + // iUrl is created by controller, but we have ownership + delete iUrl; + } + +// ----------------------------------------------------------------------------- +// CBavpClipInfo::Reinit +// Reinitialize all the values +// ----------------------------------------------------------------------------- +void CBavpClipInfo::ReInit() + { + iSeekable = ETrue; + iLiveStream = EFalse; + iResolutionHeight = 0; + iResolutionWidth = 0; + iBitrate = 0; + iMaxVolume = 0; + iDurationInSeconds = 0; + iAudioTrack = EFalse; + iVideoTrack = EFalse; + iPosition = 0; + // Don't modify iMediaType, iFilename, and iUrl + } + +// End of File