mediasettings/videoplayersettingsengine/tsrc/vpsettingsenginetest/inc/vcxnssettingsenginetest.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2002 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:   ?Description*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 #ifndef VCXNSSETTINGSENGINETEST_H
       
    21 #define VCXNSSETTINGSENGINETEST_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <StifLogger.h>
       
    25 #include <TestScripterInternal.h>
       
    26 #include <StifTestModule.h>
       
    27 #include <TestclassAssert.h>
       
    28 #include <f32file.h>
       
    29 
       
    30 #include "videoplayersettingsengine.h"
       
    31 #include "IptvTestUtilALR.h"
       
    32 
       
    33 // CONSTANTS
       
    34 //const ?type ?constant_var = ?constant;
       
    35 
       
    36 // MACROS
       
    37 //#define ?macro ?macro_def
       
    38 #define TEST_CLASS_VERSION_MAJOR 0
       
    39 #define TEST_CLASS_VERSION_MINOR 0
       
    40 #define TEST_CLASS_VERSION_BUILD 0
       
    41 
       
    42 // Logging path
       
    43 _LIT( KVcxNsSettingsEngineTestLogPath, "\\logs\\testframework\\VcxNsSettingsEngineTest\\" ); 
       
    44 // Log file
       
    45 _LIT( KVcxNsSettingsEngineTestLogFile, "VcxNsSettingsEngineTest.txt" ); 
       
    46 _LIT( KVcxNsSettingsEngineTestLogFileWithTitle, "VcxNsSettingsEngineTest[%S].txt" );
       
    47 // Log method usage
       
    48 _LIT( KTestModuleName, "VcxNsSettingsEngineTest" );
       
    49 _LIT( KLogLocation, "In %S" );
       
    50 
       
    51 // FUNCTION PROTOTYPES
       
    52 //?type ?function_name(?arg_list);
       
    53 
       
    54 // FORWARD DECLARATIONS
       
    55 //class ?FORWARD_CLASSNAME;
       
    56 class CVcxNsSettingsEngineTest;
       
    57 class CVcxNsSettingsEngine;
       
    58 class CVideoSettingsDriveMonitor;
       
    59 
       
    60 // DATA TYPES
       
    61 //enum ?declaration
       
    62 //typedef ?declaration
       
    63 //extern ?data_type;
       
    64 
       
    65 enum TDriveType
       
    66     {
       
    67     EFixedDrive = 1,
       
    68     EMassStorageDrive,
       
    69     EPhoneMemoryDrive,
       
    70     EMemoryCardDrive
       
    71     };
       
    72 
       
    73 // CLASS DECLARATION
       
    74 
       
    75 /**
       
    76 *  CVcxNsSettingsEngineTest test class for STIF Test Framework TestScripter.
       
    77 *  ?other_description_lines
       
    78 *
       
    79 *  @lib ?library
       
    80 *  @since ?Series60_version
       
    81 */
       
    82 NONSHARABLE_CLASS(CVcxNsSettingsEngineTest) : public CScriptBase
       
    83     {
       
    84     public:  // Constructors and destructor
       
    85 
       
    86         /**
       
    87         * Two-phased constructor.
       
    88         */
       
    89         static CVcxNsSettingsEngineTest* NewL( CTestModuleIf& aTestModuleIf );
       
    90 
       
    91         /**
       
    92         * Destructor.
       
    93         */
       
    94         virtual ~CVcxNsSettingsEngineTest();
       
    95 
       
    96     public: // New functions
       
    97 
       
    98         /**
       
    99         * ?member_description.
       
   100         * @since ?Series60_version
       
   101         * @param ?arg1 ?description
       
   102         * @return ?description
       
   103         */
       
   104         //?type ?member_function( ?type ?arg1 );
       
   105 
       
   106     public: // Functions from base classes
       
   107 
       
   108         /**
       
   109         * From CScriptBase Runs a script line.
       
   110         * @since ?Series60_version
       
   111         * @param aItem Script line containing method name and parameters
       
   112         * @return Symbian OS error code
       
   113         */
       
   114         virtual TInt RunMethodL( CStifItemParser& aItem );
       
   115 
       
   116     protected:  // New functions
       
   117 
       
   118         /**
       
   119         * ?member_description.
       
   120         * @since ?Series60_version
       
   121         * @param ?arg1 ?description
       
   122         * @return ?description
       
   123         */
       
   124         //?type ?member_function( ?type ?arg1 );
       
   125 
       
   126     protected:  // Functions from base classes
       
   127 
       
   128         /**
       
   129         * From ?base_class ?member_description
       
   130         */
       
   131         //?type ?member_function();
       
   132 
       
   133     private:
       
   134 
       
   135         /**
       
   136         * C++ default constructor.
       
   137         */
       
   138         CVcxNsSettingsEngineTest( CTestModuleIf& aTestModuleIf );
       
   139 
       
   140         /**
       
   141         * By default Symbian 2nd phase constructor is private.
       
   142         */
       
   143         void ConstructL();
       
   144 
       
   145         // Prohibit copy constructor if not deriving from CBase.
       
   146         // ?classname( const ?classname& );
       
   147         // Prohibit assigment operator if not deriving from CBase.
       
   148         // ?classname& operator=( const ?classname& );
       
   149 
       
   150         /**
       
   151         * Frees all resources allocated from test methods.
       
   152         * @since ?Series60_version
       
   153         */
       
   154         void Delete();
       
   155 
       
   156         /**
       
   157         * Log current test method
       
   158         * @since ?Series60_version
       
   159         */
       
   160         void LogMethod( TPtrC aMethod );
       
   161         
       
   162         TInt FindDrive( TInt aType );
       
   163 
       
   164         /**
       
   165         * Test methods are listed below. 
       
   166         */
       
   167 
       
   168         /**
       
   169         * Example test method.
       
   170         * @since ?Series60_version
       
   171         * @param aItem Script line containing parameters.
       
   172         * @return Symbian OS error code.
       
   173         */
       
   174         virtual TInt CreateL( CStifItemParser& aItem );
       
   175         virtual TInt GetUsedMemoryL( CStifItemParser& aItem );
       
   176         virtual TInt SetUsedMemoryL( CStifItemParser& aItem );
       
   177         virtual TInt GetParentControl( CStifItemParser& aItem );
       
   178         virtual TInt SetParentControl( CStifItemParser& aItem );
       
   179         virtual TInt GetVideoOnDemandThumbnails( CStifItemParser& aItem );
       
   180         virtual TInt SetVideoOnDemandThumbnails( CStifItemParser& aItem );
       
   181         virtual TInt GetUsedSnapId( CStifItemParser& aItem );
       
   182         virtual TInt SetUsedSnapId( CStifItemParser& aItem );
       
   183         virtual TInt GetAllowUseGprs( CStifItemParser& aItem );
       
   184         virtual TInt SetAllowUseGprs( CStifItemParser& aItem );
       
   185         virtual TInt GetAllowRoaming( CStifItemParser& aItem );
       
   186         virtual TInt SetAllowRoaming( CStifItemParser& aItem );
       
   187         virtual TInt CheckLockCodeL( CStifItemParser& aItem );
       
   188         virtual TInt GetPlayerVolume( CStifItemParser& aItem );
       
   189         virtual TInt SetPlayerVolume( CStifItemParser& aItem );
       
   190 
       
   191         /**
       
   192          * Method used to log version of test class
       
   193          */
       
   194         void SendTestClassVersion();
       
   195 
       
   196         //ADD NEW METHOD DEC HERE
       
   197         //[TestMethods] - Do not remove
       
   198 
       
   199     public:     // Data
       
   200         // ?one_line_short_description_of_data
       
   201         //?data_declaration;
       
   202 
       
   203     protected:  // Data
       
   204         // ?one_line_short_description_of_data
       
   205         //?data_declaration;
       
   206 
       
   207     private:    // Data
       
   208         
       
   209         // ?one_line_short_description_of_data
       
   210         //?data_declaration;
       
   211 
       
   212         // Reserved pointer for future extension
       
   213         //TAny* iReserved;
       
   214 
       
   215     public:     // Friend classes
       
   216         //?friend_class_declaration;
       
   217     protected:  // Friend classes
       
   218         //?friend_class_declaration;
       
   219     private:    // Friend classes
       
   220         //?friend_class_declaration;
       
   221         Int64 iIadUpdateTime;
       
   222         TInt iUsedMemory;
       
   223         CVcxNsSettingsEngine* iSettingsEngine;
       
   224         CVideoSettingsDriveMonitor* iDriveMonitor;
       
   225         RFs iFs;
       
   226     };
       
   227 
       
   228 #endif      // VCXNSSETTINGSENGINETEST_H
       
   229 
       
   230 // End of File