browserplugins/browseraudiovideoplugin/src/BavpClipInfo.cpp
branchRCL_3
changeset 64 6385c4c93049
parent 63 4baee4f15982
child 65 8e6fa1719340
equal deleted inserted replaced
63:4baee4f15982 64:6385c4c93049
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Store the meta information and the state of the clip played
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "BavpClipInfo.h"
       
    21 
       
    22 // ============================ MEMBER FUNCTIONS ===============================
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // CBavpClipInfo::CBavpClipInfo
       
    26 // C++ default constructor can NOT contain any code, that
       
    27 // might leave.
       
    28 // -----------------------------------------------------------------------------
       
    29  CBavpClipInfo::CBavpClipInfo()
       
    30     : iMediaType( EUnidentified ),
       
    31       iSeekable( ETrue ),
       
    32       iLiveStream( EFalse ),
       
    33       iVideoTrack( EFalse ),
       
    34       iInFullScreenMode( EFalse )
       
    35     {
       
    36     }
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // CBavpClipInfo::~CBavpClipInfo   
       
    40 // Destructor
       
    41 // -----------------------------------------------------------------------------
       
    42 CBavpClipInfo::~CBavpClipInfo()
       
    43     {
       
    44     // iFileName is created by controller, but we have ownership
       
    45 	delete iFileName;
       
    46 	
       
    47     // iUrl is created by controller, but we have ownership
       
    48 	delete iUrl;
       
    49     }
       
    50 
       
    51 // -----------------------------------------------------------------------------
       
    52 // CBavpClipInfo::Reinit   
       
    53 // Reinitialize all the values
       
    54 // -----------------------------------------------------------------------------
       
    55 void CBavpClipInfo::ReInit()
       
    56 	{
       
    57     iSeekable = ETrue;
       
    58     iLiveStream = EFalse;
       
    59     iResolutionHeight = 0;
       
    60     iResolutionWidth = 0;
       
    61 	iBitrate = 0;
       
    62 	iMaxVolume = 0;
       
    63 	iDurationInSeconds = 0;        
       
    64 	iAudioTrack = EFalse;
       
    65 	iVideoTrack = EFalse;
       
    66 	iPosition = 0;
       
    67 	// Don't modify iMediaType, iFilename, and iUrl
       
    68 	}
       
    69 
       
    70 //  End of File