browserplugins/browseraudiovideoplugin/src/BavpClipInfo.cpp
author Kiiskinen Klaus (Nokia-D-MSW/Tampere) <klaus.kiiskinen@nokia.com>
Mon, 30 Mar 2009 12:49:49 +0300
changeset 0 84ad3b177aa3
permissions -rw-r--r--
Revision: 200911 Kit: 200912

/*
* 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