videoplayback/inc/mpxvideoplaybackviewfiledetails.h
branchRCL_3
changeset 57 befca0ec475f
equal deleted inserted replaced
56:839377eedc2b 57:befca0ec475f
       
     1 /*
       
     2 * Copyright (c) 2008 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 "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:  Container for MPX Video File Details
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // Version : %version: 14 %
       
    20 
       
    21 
       
    22 #ifndef __MPXVIDEOPLAYBACKVIEWFILEDETAILS__
       
    23 #define __MPXVIDEOPLAYBACKVIEWFILEDETAILS__
       
    24 
       
    25 #include "mpxhelixplaybackplugindefs.h"
       
    26 
       
    27 //
       
    28 //  CLASS DECLARATION
       
    29 //
       
    30 NONSHARABLE_CLASS( CMPXVideoPlaybackViewFileDetails ) : public CBase
       
    31 {
       
    32     public:
       
    33         //
       
    34         //  Constructors and destructor
       
    35         //
       
    36         static CMPXVideoPlaybackViewFileDetails* NewL();
       
    37 
       
    38         //
       
    39         //  Destructor.
       
    40         //
       
    41         virtual ~CMPXVideoPlaybackViewFileDetails();
       
    42 
       
    43         //
       
    44         //  Clear all file details
       
    45         //
       
    46         void ClearFileDetails();
       
    47 
       
    48         /**
       
    49         * Generate file name, remove all file path
       
    50         *
       
    51         * @return generated file name, ownership is transferred
       
    52         */
       
    53         IMPORT_C HBufC* GenerateFileNameL();
       
    54 
       
    55         /**
       
    56          * Parse file title
       
    57          * if title exists, then use it as title content directly.
       
    58          * if title is null, then for streaming/live streaming clip,
       
    59          * parse its file name as title content.
       
    60          *
       
    61          * @return  generated file title, ownership is transferred
       
    62          */
       
    63         IMPORT_C HBufC* GenerateFileTitleL();
       
    64 
       
    65     private:
       
    66         //
       
    67         //  By default Symbian 2nd phase constructor is private.
       
    68         //
       
    69         void ConstructL();
       
    70 
       
    71     public:
       
    72         //
       
    73         // Data
       
    74         //
       
    75         HBufC*   iClipName;
       
    76         HBufC*   iTitle;
       
    77         HBufC*   iArtist;
       
    78         HBufC*   iMimeType;
       
    79 
       
    80         TMPXVideoMode  iPlaybackMode;
       
    81         TBool          iSeekable;
       
    82         TBool          iPausableStream;
       
    83         TBool          iAudioEnabled;
       
    84         TBool          iVideoEnabled;
       
    85         TBool          iPartialPlayback;
       
    86         TBool          iTvOutConnected;
       
    87         TBool          iDrmProtected;
       
    88 
       
    89         TInt           iVideoHeight;
       
    90         TInt           iVideoWidth;
       
    91         TInt           iBitRate;
       
    92         TUint32        iFourCCCode;
       
    93 
       
    94         TInt           iDuration;
       
    95 };
       
    96 
       
    97 #endif      // __MPXVIDEOPLAYBACKVIEWFILEDETAILS__
       
    98 
       
    99 
       
   100 // EOF