videoutils_plat/videoconnutility_api/tsrc/VCXTestCommon/inc/CIptvTestVideoCreator.h
branchRCL_3
changeset 47 826cea16efd9
parent 45 798ee5f1972c
child 48 13a33d82ad98
equal deleted inserted replaced
45:798ee5f1972c 47:826cea16efd9
     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 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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CIptvTestVideoCreator_H
       
    20 #define CIptvTestVideoCreator_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <e32std.h>
       
    25 #include <f32file.h>
       
    26 #include <BAUTILS.H>
       
    27 
       
    28 // CONSTANTS
       
    29 const int KVcxTestLargeFile3GB = -999;
       
    30 
       
    31 // MACROS
       
    32 
       
    33 // DATA TYPES
       
    34 
       
    35 // FUNCTION PROTOTYPES
       
    36 
       
    37 // FORWARD DECLARATIONS
       
    38 
       
    39 // CLASS DECLARATION
       
    40 
       
    41 /**
       
    42 *
       
    43 *
       
    44 *
       
    45 *
       
    46 *  @since
       
    47 */
       
    48 class CIptvTestVideoCreator : public CBase
       
    49     {
       
    50     public:  // Constructors and destructor
       
    51 
       
    52         /**
       
    53         * Two-phased constructor.
       
    54         */
       
    55         IMPORT_C static CIptvTestVideoCreator* NewL();
       
    56 
       
    57         /**
       
    58         * C++ default constructor.
       
    59         */
       
    60         IMPORT_C CIptvTestVideoCreator();
       
    61 
       
    62         /**
       
    63         * Destructor.
       
    64         */
       
    65         IMPORT_C virtual ~CIptvTestVideoCreator();
       
    66 
       
    67         enum TIptvTestVideoType
       
    68 			{
       
    69             IptvTestVideo3Gp,               // Extension .3GP
       
    70             IptvTestVideo3Gp2,              // Extension .3G2
       
    71             IptvTestVideoMp2,               // Extension .MP2
       
    72             IptvTestVideoMpeg1,             // Extension .MPG
       
    73             IptvTestVideoMpeg2,             // Extension .MPG
       
    74             IptvTestVideoSuperVideoCd,      // Extension .MPG
       
    75             IptvTestVideoMp3,               // Extension .MP3
       
    76             IptvTestVideoAppleMpeg,         // Extension .MP4
       
    77             IptvTestVideoMpeg4,             // Extension .MP4
       
    78             IptvTestVideoMpegAvc,           // Extension .MP4
       
    79             IptvTestVideoQuicktime,         // Extension .MOV
       
    80             IptvTestVideoRealVideo,         // Extension .RM
       
    81             IptvTestVideoAvi,               // Extension .AVI
       
    82             IptvTestVideoWmv,                // Extension .WMV
       
    83             IptvTestVideoAviAC3              // Extension .AVI
       
    84 			};
       
    85 
       
    86     public: // New functions
       
    87 
       
    88         /**
       
    89         * Creates video to specified location by copying file from e/c:\testing\data according to the video type.
       
    90         * @param aVideoType a type of video which is created
       
    91         * @param aFileName path filename where video is created
       
    92         * @param aSize size of the video. If -1 then size will not be changed, if any other, playback of
       
    93         * video will probably fail.
       
    94         */
       
    95         IMPORT_C void CreateVideoL( TIptvTestVideoType aVideoType, TDesC& aFileName, TInt aSize );
       
    96 
       
    97         /*
       
    98          * Creates number of video files to specified location.
       
    99          */
       
   100         IMPORT_C void CreateVideosL( TIptvTestVideoType aVideoType, TDesC& aFileName, TInt aCount, RPointerArray<HBufC>& aFileArray );
       
   101 
       
   102     protected: //from base classes
       
   103 
       
   104     private:
       
   105 
       
   106         /**
       
   107         * By default Symbian 2nd phase constructor is private.
       
   108         */
       
   109         IMPORT_C void ConstructL();
       
   110 
       
   111         /**
       
   112         * Returns the file and path for specied file type.
       
   113         */
       
   114         IMPORT_C void GetVideoFile( TDes& aFileName, CIptvTestVideoCreator::TIptvTestVideoType aVideoType, const TDesC& aDrive );
       
   115 
       
   116     private:    // Data
       
   117        RFs iFs;
       
   118        CFileMan* iFileMan;
       
   119     };
       
   120 
       
   121 
       
   122 #endif      // CIptvTestVideoCreator_H
       
   123 
       
   124 // End of File