mmappfw_plat/media_player_settings_engine_api/tsrc/ui_mediaplayersettingsenginetest/inc/ui_mediaplayersettingsenginetest.h
changeset 0 a2952bb97e68
equal deleted inserted replaced
-1:000000000000 0:a2952bb97e68
       
     1 /*
       
     2 * Copyright (c) 2002 - 2007 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: test class header file for STIF Test Framework TestScripter
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef UI_MEDIAPLAYERSETTINGSENGINETEST_H
       
    21 #define UI_MEDIAPLAYERSETTINGSENGINETEST_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <StifLogger.h>
       
    25 #include <TestScripterInternal.h>
       
    26 #include <StifTestModule.h>
       
    27 #include <TestclassAssert.h>
       
    28 #include <MPSettingsModel.h>
       
    29 // CONSTANTS
       
    30 //const ?type ?constant_var = ?constant;
       
    31 
       
    32 // MACROS
       
    33 //#define ?macro ?macro_def
       
    34 #define TEST_CLASS_VERSION_MAJOR 0
       
    35 #define TEST_CLASS_VERSION_MINOR 0
       
    36 #define TEST_CLASS_VERSION_BUILD 0
       
    37 
       
    38 // DLL UIDs
       
    39 #define KMPSettEngDllUidROP 0x101F857B
       
    40 // Implementation UIDs
       
    41 #define KMPSettEngImplUidROP 0x101F857D
       
    42 
       
    43 // Logging path
       
    44 _LIT( Kui_mediaplayersettingsenginetestLogPath, "\\logs\\testframework\\ui_mediaplayersettingsenginetest\\" ); 
       
    45 // Log file
       
    46 _LIT( Kui_mediaplayersettingsenginetestLogFile, "ui_mediaplayersettingsenginetest.txt" ); 
       
    47 _LIT( Kui_mediaplayersettingsenginetestLogFileWithTitle, "ui_mediaplayersettingsenginetest_[%S].txt" );
       
    48 
       
    49 // FUNCTION PROTOTYPES
       
    50 //?type ?function_name(?arg_list);
       
    51 
       
    52 // FORWARD DECLARATIONS
       
    53 //class ?FORWARD_CLASSNAME;
       
    54 class Cui_mediaplayersettingsenginetest;
       
    55 class CMPSettingsModel;
       
    56 
       
    57 // DATA TYPES
       
    58 //enum ?declaration
       
    59 //typedef ?declaration
       
    60 //extern ?data_type;
       
    61 
       
    62 // CLASS DECLARATION
       
    63 
       
    64 /**
       
    65 *  Cui_mediaplayersettingsenginetest test class for STIF Test Framework TestScripter.
       
    66 *  ?other_description_lines
       
    67 *
       
    68 *  @lib ?library
       
    69 *  @since ?Series60_version
       
    70 */
       
    71 NONSHARABLE_CLASS(Cui_mediaplayersettingsenginetest) : public CScriptBase
       
    72     {
       
    73     public:  // Constructors and destructor
       
    74 
       
    75         /**
       
    76         * Two-phased constructor.
       
    77         */
       
    78         static Cui_mediaplayersettingsenginetest* NewL( CTestModuleIf& aTestModuleIf );
       
    79 
       
    80         /**
       
    81         * Destructor.
       
    82         */
       
    83         virtual ~Cui_mediaplayersettingsenginetest();
       
    84 
       
    85     public: // New functions
       
    86 
       
    87         /**
       
    88         * ?member_description.
       
    89         * @since ?Series60_version
       
    90         * @param ?arg1 ?description
       
    91         * @return ?description
       
    92         */
       
    93         //?type ?member_function( ?type ?arg1 );
       
    94 
       
    95     public: // Functions from base classes
       
    96 
       
    97         /**
       
    98         * From CScriptBase Runs a script line.
       
    99         * @since ?Series60_version
       
   100         * @param aItem Script line containing method name and parameters
       
   101         * @return Symbian OS error code
       
   102         */
       
   103         virtual TInt RunMethodL( CStifItemParser& aItem );
       
   104 
       
   105     protected:  // New functions
       
   106 
       
   107         /**
       
   108         * ?member_description.
       
   109         * @since ?Series60_version
       
   110         * @param ?arg1 ?description
       
   111         * @return ?description
       
   112         */
       
   113         //?type ?member_function( ?type ?arg1 );
       
   114 
       
   115     protected:  // Functions from base classes
       
   116 
       
   117         /**
       
   118         * From ?base_class ?member_description
       
   119         */
       
   120         //?type ?member_function();
       
   121 
       
   122     private:
       
   123 
       
   124         /**
       
   125         * C++ default constructor.
       
   126         */
       
   127         Cui_mediaplayersettingsenginetest( CTestModuleIf& aTestModuleIf );
       
   128 
       
   129         /**
       
   130         * By default Symbian 2nd phase constructor is private.
       
   131         */
       
   132         void ConstructL();
       
   133 
       
   134         // Prohibit copy constructor if not deriving from CBase.
       
   135         // ?classname( const ?classname& );
       
   136         // Prohibit assigment operator if not deriving from CBase.
       
   137         // ?classname& operator=( const ?classname& );
       
   138 
       
   139         /**
       
   140         * Frees all resources allocated from test methods.
       
   141         * @since ?Series60_version
       
   142         */
       
   143         void Delete();
       
   144 
       
   145         /**
       
   146         * Test methods are listed below. 
       
   147         */
       
   148 
       
   149         /**
       
   150         * Example test method.
       
   151         * @since ?Series60_version
       
   152         * @param aItem Script line containing parameters.
       
   153         * @return Symbian OS error code.
       
   154         */
       
   155         virtual TInt ExampleL( CStifItemParser& aItem );
       
   156         TInt CreateCMPSettingsModel( CStifItemParser& aItem );
       
   157         TInt DestructCMPSettingsModel( CStifItemParser& aItem );
       
   158         TInt MPSListImplementations( CStifItemParser& aItem );
       
   159         /**
       
   160          * Method used to log version of test class
       
   161          */
       
   162         void SendTestClassVersion();
       
   163 
       
   164         //ADD NEW METHOD DEC HERE
       
   165         //[TestMethods] - Do not remove
       
   166 
       
   167     public:     // Data
       
   168         // ?one_line_short_description_of_data
       
   169         //?data_declaration;
       
   170 
       
   171     protected:  // Data
       
   172         // ?one_line_short_description_of_data
       
   173         //?data_declaration;
       
   174 
       
   175     private:    // Data
       
   176         
       
   177         // ?one_line_short_description_of_data
       
   178         //?data_declaration;
       
   179 
       
   180         // Reserved pointer for future extension
       
   181         //TAny* iReserved;
       
   182 
       
   183     public:     // Friend classes
       
   184         //?friend_class_declaration;
       
   185     protected:  // Friend classes
       
   186         //?friend_class_declaration;
       
   187     private:    // Friend classes
       
   188         //?friend_class_declaration;
       
   189     	CMPSettingsModel*       iRopSettingsModel;
       
   190     };
       
   191 
       
   192 #endif      // UI_MEDIAPLAYERSETTINGSENGINETEST_H
       
   193 
       
   194 // End of File