mmappfw_plat/playback_helper_api/tsrc/playbackhelpertest/inc/playbackhelpertest.h
changeset 0 a2952bb97e68
equal deleted inserted replaced
-1:000000000000 0:a2952bb97e68
       
     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:  Description
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version: 6 %
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef PLAYBACKHELPERTEST_H
       
    24 #define PLAYBACKHELPERTEST_H
       
    25 
       
    26 //  INCLUDES
       
    27 #include <StifLogger.h>
       
    28 #include <StifTestModule.h>
       
    29 #include <TestScripterInternal.h>
       
    30 
       
    31 // MACROS
       
    32 //#define ?macro ?macro_def
       
    33 #define TEST_CLASS_VERSION_MAJOR 0
       
    34 #define TEST_CLASS_VERSION_MINOR 0
       
    35 #define TEST_CLASS_VERSION_BUILD 0
       
    36 
       
    37 // Logging path
       
    38 _LIT( KPlaybackHelperTestLogPath, "C:\\logs\\testframework\\PlaybackHelperTest\\" ); 
       
    39 // Log file
       
    40 _LIT( KPlaybackHelperTestLogFile, "PlaybackHelperTest.txt" ); 
       
    41 _LIT( KPlaybackHelperTestLogFileWithTitle, "PlaybackHelperTest_[%S].txt" );
       
    42 
       
    43 
       
    44 #ifdef __WINSCW__
       
    45 _LIT( KPlaybackHelper_testPath, "\\logs\\testframework\\PlaybackHelperTest\\" );
       
    46 #else
       
    47 _LIT( KPlaybackHelper_testPath, "e:\\logs\\testframework\\PlaybackHelperTest\\" );
       
    48 #endif
       
    49 
       
    50 
       
    51 // FORWARD DECLARATIONS
       
    52 class CMediaRecognizer;
       
    53 class CStreamingLinkModel;
       
    54 class CDevSoundIf;
       
    55 
       
    56 // DATA TYPES
       
    57 //enum ?declaration
       
    58 //typedef ?declaration
       
    59 //extern ?data_type;
       
    60 
       
    61 // CLASS DECLARATION
       
    62 
       
    63 /**
       
    64 *  CPlaybackHelperTest test class for STIF Test Framework TestScripter.
       
    65 *  ?other_description_lines
       
    66 *
       
    67 *  @lib ?library
       
    68 *  @since ?Series60_version
       
    69 */
       
    70 NONSHARABLE_CLASS(CPlaybackHelperTest) : public CScriptBase
       
    71 {
       
    72     public:  // Constructors and destructor
       
    73 
       
    74         /**
       
    75         * Two-phased constructor.
       
    76         */
       
    77         static CPlaybackHelperTest* NewL( CTestModuleIf& aTestModuleIf );
       
    78 
       
    79         /**
       
    80         * Destructor.
       
    81         */
       
    82         virtual ~CPlaybackHelperTest();
       
    83 
       
    84     public: // New functions
       
    85 
       
    86         /**
       
    87         * ?member_description.
       
    88         * @since ?Series60_version
       
    89         * @param ?arg1 ?description
       
    90         * @return ?description
       
    91         */
       
    92         //?type ?member_function( ?type ?arg1 );
       
    93         
       
    94     public: // Functions from base classes
       
    95         
       
    96         /**
       
    97         * From CScriptBase Runs a script line.
       
    98         * @since ?Series60_version
       
    99         * @param aItem Script line containing method name and parameters
       
   100         * @return Symbian OS error code
       
   101         */
       
   102     	virtual TInt RunMethodL( CStifItemParser& aItem );
       
   103           
       
   104     protected:  // New functions
       
   105            
       
   106         /**
       
   107         * ?member_description.
       
   108         * @since ?Series60_version
       
   109         * @param ?arg1 ?description
       
   110         * @return ?description
       
   111         */
       
   112         //?type ?member_function( ?type ?arg1 );
       
   113         
       
   114     protected:  // Functions from base classes
       
   115 
       
   116         /**
       
   117         * From ?base_class ?member_description
       
   118         */
       
   119         //?type ?member_function();
       
   120 
       
   121     private:
       
   122 
       
   123         /**
       
   124         * C++ default constructor.
       
   125         */
       
   126         CPlaybackHelperTest( CTestModuleIf& aTestModuleIf );
       
   127 
       
   128         /**
       
   129         * By default Symbian 2nd phase constructor is private.
       
   130         */
       
   131         void ConstructL();
       
   132 
       
   133         // Prohibit copy constructor if not deriving from CBase.
       
   134         // ?classname( const ?classname& );
       
   135         // Prohibit assigment operator if not deriving from CBase.
       
   136         // ?classname& operator=( const ?classname& );
       
   137 
       
   138         /**
       
   139         * Frees all resources allocated from test methods.
       
   140         * @since ?Series60_version
       
   141         */
       
   142         void Delete();
       
   143         
       
   144         /**
       
   145          * Method used to log version of test class
       
   146          */
       
   147         void SendTestClassVersion();
       
   148 
       
   149         /**
       
   150         * Test methods are listed below. 
       
   151         */
       
   152 
       
   153         /**
       
   154         * Example test method.
       
   155         * @since ?Series60_version
       
   156         * @param aItem Script line containing parameters.
       
   157         * @return Symbian OS error code.
       
   158         */
       
   159         TInt IdentifyMediaTypeViaFileName( CStifItemParser& aItem );
       
   160         TInt IdentifyMediaTypeViaFileHandle( CStifItemParser& aItem );
       
   161         TInt MimeTypeViaFileName( CStifItemParser& aItem );
       
   162         TInt MimeTypeViaFileHandle( CStifItemParser& aItem );
       
   163         TInt IsValidStreamingPrefix( CStifItemParser& aItem );
       
   164         TInt IsValidUrlPrefix1( CStifItemParser& aItem );
       
   165         TInt IsValidUrlPrefix2( CStifItemParser& aItem );
       
   166         TInt FreeFilehandleForRecognizer();
       
   167 
       
   168         TInt OpenLinkFile1( CStifItemParser& aItem );
       
   169         TInt OpenLinkFile2( CStifItemParser& aItem );
       
   170         TInt GetNextLink( CStifItemParser& aItem );
       
   171         TInt MaxLinkLength( CStifItemParser& aItem );
       
   172         TInt CreateNewLinkFile( CStifItemParser& aItem );
       
   173         TInt MultiLinksCount( CStifItemParser& aItem );
       
   174         TInt ResetLinkCount();
       
   175         TInt FreeFilehandleForLink();
       
   176 		TInt OpenAsxLinkViaFileName( CStifItemParser& aItem );
       
   177 		TInt OpenAsxLinkViaFileHandle( CStifItemParser& aItem );
       
   178 		TInt GetNumberOfVolumeSteps();
       
   179 		TInt IsSeekable( CStifItemParser& aItem );
       
   180 		
       
   181     private:    // Data
       
   182         CMediaRecognizer*    iMediaRecognizer;
       
   183         CStreamingLinkModel* iStreamingLinkModel;
       
   184 		CDevSoundIf*         iDevSoundIf;
       
   185 };
       
   186 
       
   187 #endif      // PLAYBACKHELPERTEST_H
       
   188 
       
   189 // End of File