browserplugins/browseraudiovideoplugin/inc/BavpClipInfo.h
changeset 51 48e827313edd
parent 37 481242ead638
child 53 f427d27b98d8
equal deleted inserted replaced
37:481242ead638 51:48e827313edd
     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 #ifndef BAVPCLIPINFO_H
       
    20 #define BAVPCLIPINFO_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 #include "BavpMediaRecognizer.h"
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  CBavpClipInfo 
       
    33 *  Store the meta information and the state of the clip to be played
       
    34 *  @lib npBrowserVideoPlugin.lib
       
    35 *  @since 3.2
       
    36 */
       
    37 NONSHARABLE_CLASS( CBavpClipInfo ) : public CBase
       
    38     {
       
    39     public:  // Constructors and destructor
       
    40         
       
    41         /**
       
    42         * C++ default constructor.
       
    43         */
       
    44         CBavpClipInfo();
       
    45 
       
    46         /**
       
    47         * Destructor.
       
    48         */
       
    49         ~CBavpClipInfo();
       
    50 
       
    51     public:  // New methods
       
    52     
       
    53          /**
       
    54          * ReInit()
       
    55          * Reinitialize the data members
       
    56          * @param none
       
    57          * @returns void
       
    58          */
       
    59          void ReInit();
       
    60 
       
    61     public:    // Data
       
    62 
       
    63 		// Audio or Video file name
       
    64         HBufC* iFileName;
       
    65 
       
    66 		// Audio or Video url link
       
    67         HBufC* iUrl;
       
    68 
       
    69 		// Media type
       
    70 		TBavpMediaType iMediaType;
       
    71 
       
    72 		// Resolution for width
       
    73         TInt iResolutionWidth;
       
    74 
       
    75 		// Resolution for height
       
    76         TInt iResolutionHeight;
       
    77         
       
    78 		// Bitrate
       
    79 		TInt iBitrate;
       
    80 
       
    81 		// Maximum volume
       
    82         TInt iMaxVolume;
       
    83 
       
    84         // Duration of the clip 
       
    85         TTimeIntervalMicroSeconds iDurationInSeconds;        
       
    86         
       
    87         // If clip is seekable
       
    88 		TBool iSeekable;
       
    89 
       
    90         // If clip is a live stream
       
    91         TBool iLiveStream;
       
    92 
       
    93         // Is audio track
       
    94 		TBool iAudioTrack;
       
    95 		
       
    96 		// Is video track
       
    97         TBool iVideoTrack;
       
    98 
       
    99 		// Is display in fullscreen mode
       
   100         TBool iInFullScreenMode;
       
   101 		
       
   102         // Current file position
       
   103         TTimeIntervalMicroSeconds iPosition;
       
   104     };
       
   105 
       
   106 #endif      // BAVPCLIPINFO_H  
       
   107             
       
   108 // End of File