videofeeds/server/tsrc/VCXSettingsDatabaseTest/inc/VCXSettingsDatabaseTest.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 IPTVSETTINGSDATABASETEST_H
       
    21 #define IPTVSETTINGSDATABASETEST_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <StifLogger.h>
       
    25 #include <TestScripterInternal.h>
       
    26 #include <StifTestModule.h>
       
    27 
       
    28 #include "CIptvSettingsDatabase.h"
       
    29 
       
    30 #include <f32file.h>
       
    31 #include <bautils.h>
       
    32 
       
    33 // CONSTANTS
       
    34 //const ?type ?constant_var = ?constant;
       
    35 
       
    36 // MACROS
       
    37 //#define ?macro ?macro_def
       
    38 // Logging path
       
    39 _LIT( KIptvSettingsDatabaseTestLogPath, "\\logs\\testframework\\IptvSettingsDatabaseTest\\" );
       
    40 // Log file
       
    41 _LIT( KIptvSettingsDatabaseTestLogFile, "IptvSettingsDatabaseTest.txt" );
       
    42 
       
    43 _LIT( KSettingsDatabaseTestPath, "%S:\\testing\\data\\" );
       
    44 _LIT( KSettingsDatabaseTestFileName, "%S:\\testing\\data\\%S" );
       
    45 _LIT( KSettingsDatabaseTestBadFilename, ":\\testing\\data\\_\!\#\¤\%\&\/\(\)\=\?\´\}\]\[\{\€\$\£\@\^\¨.dat" );
       
    46 // FUNCTION PROTOTYPES
       
    47 //?type ?function_name(?arg_list);
       
    48 
       
    49 // FORWARD DECLARATIONS
       
    50 //class ?FORWARD_CLASSNAME;
       
    51 class CIptvSettingsDatabaseTest;
       
    52 class CIptvSettingsDatabase;
       
    53 
       
    54 // DATA TYPES
       
    55 //enum ?declaration
       
    56 //typedef ?declaration
       
    57 //extern ?data_type;
       
    58 
       
    59 // CLASS DECLARATION
       
    60 
       
    61 /**
       
    62 *  CIptvSettingsDatabaseTest test class for STIF Test Framework TestScripter.
       
    63 *  ?other_description_lines
       
    64 *
       
    65 *  @lib ?library
       
    66 *  @since ?Series60_version
       
    67 */
       
    68 NONSHARABLE_CLASS(CIptvSettingsDatabaseTest) : public CScriptBase
       
    69     {
       
    70     public:  // Constructors and destructor
       
    71 
       
    72         /**
       
    73         * Two-phased constructor.
       
    74         */
       
    75         static CIptvSettingsDatabaseTest* NewL( CTestModuleIf& aTestModuleIf );
       
    76 
       
    77         /**
       
    78         * Destructor.
       
    79         */
       
    80         virtual ~CIptvSettingsDatabaseTest();
       
    81 
       
    82     public: // New functions
       
    83 
       
    84         /**
       
    85         * ?member_description.
       
    86         * @since ?Series60_version
       
    87         * @param ?arg1 ?description
       
    88         * @return ?description
       
    89         */
       
    90         //?type ?member_function( ?type ?arg1 );
       
    91 
       
    92     public: // Functions from base classes
       
    93 
       
    94         /**
       
    95         * From CScriptBase Runs a script line.
       
    96         * @since ?Series60_version
       
    97         * @param aItem Script line containing method name and parameters
       
    98         * @return Symbian OS error code
       
    99         */
       
   100         virtual TInt RunMethodL( CStifItemParser& aItem );
       
   101 
       
   102     protected:  // New functions
       
   103 
       
   104         /**
       
   105         * ?member_description.
       
   106         * @since ?Series60_version
       
   107         * @param ?arg1 ?description
       
   108         * @return ?description
       
   109         */
       
   110         //?type ?member_function( ?type ?arg1 );
       
   111 
       
   112     protected:  // Functions from base classes
       
   113 
       
   114         /**
       
   115         * From ?base_class ?member_description
       
   116         */
       
   117         //?type ?member_function();
       
   118 
       
   119     private:
       
   120 
       
   121         /**
       
   122         * C++ default constructor.
       
   123         */
       
   124         CIptvSettingsDatabaseTest( CTestModuleIf& aTestModuleIf );
       
   125 
       
   126         /**
       
   127         * By default Symbian 2nd phase constructor is private.
       
   128         */
       
   129         void ConstructL();
       
   130 
       
   131         // Prohibit copy constructor if not deriving from CBase.
       
   132         // ?classname( const ?classname& );
       
   133         // Prohibit assigment operator if not deriving from CBase.
       
   134         // ?classname& operator=( const ?classname& );
       
   135 
       
   136         /**
       
   137         * Frees all resources allocated from test methods.
       
   138         * @since ?Series60_version
       
   139         */
       
   140         void Delete();
       
   141 
       
   142         /**
       
   143         * Test methods are listed below.
       
   144         */
       
   145 
       
   146         /**
       
   147         * Example test method.
       
   148         * @since ?Series60_version
       
   149         * @param aItem Script line containing parameters.
       
   150         * @return Symbian OS error code.
       
   151         */
       
   152         virtual TInt CreateL( CStifItemParser& aItem );
       
   153         virtual TInt DestroyL( CStifItemParser& aItem );
       
   154         virtual TInt TestSettingsL( CStifItemParser& aItem );
       
   155 		    virtual TInt TestLastUsageL( CStifItemParser& aItem );
       
   156 
       
   157 		TInt PrepareFile( const TDesC &aFileName );
       
   158 		TInt CheckPath( const TDesC &aPath );
       
   159 
       
   160     public:     // Data
       
   161         // ?one_line_short_description_of_data
       
   162         //?data_declaration;
       
   163 
       
   164     protected:  // Data
       
   165         // ?one_line_short_description_of_data
       
   166         //?data_declaration;
       
   167 
       
   168     private:    // Data
       
   169 
       
   170     	CIptvSettingsDatabase* iDatabase;
       
   171 
       
   172         TIptvLiveUISettings iSettings;
       
   173 
       
   174         TPtrC iDriveLetter;
       
   175         TPtrC iDatabaseFilename;
       
   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 
       
   190     };
       
   191 
       
   192 #endif      // IPTVSETTINGSDATABASETEST_H
       
   193 
       
   194 // End of File