videofeeds/server/tsrc/VCXServiceTest/inc/VCXServiceTest.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 IPTVSERVICETEST_H
       
    21 #define IPTVSERVICETEST_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <StifLogger.h>
       
    25 #include <TestScripterInternal.h>
       
    26 #include <StifTestModule.h>
       
    27 
       
    28 
       
    29 // CONSTANTS
       
    30 //const ?type ?constant_var = ?constant;
       
    31 
       
    32 // MACROS
       
    33 //#define ?macro ?macro_def
       
    34 // Logging path
       
    35 _LIT( KIptvServiceTestLogPath, "\\logs\\testframework\\IptvServiceTest\\" ); 
       
    36 // Log file
       
    37 _LIT( KIptvServiceTestLogFile, "IptvServiceTest.txt" ); 
       
    38 
       
    39 // FUNCTION PROTOTYPES
       
    40 //?type ?function_name(?arg_list);
       
    41 
       
    42 // FORWARD DECLARATIONS
       
    43 //class ?FORWARD_CLASSNAME;
       
    44 class CIptvServiceTest;
       
    45 class CIptvService;
       
    46 class CIptvServices;
       
    47 
       
    48 // DATA TYPES
       
    49 //enum ?declaration
       
    50 //typedef ?declaration
       
    51 //extern ?data_type;
       
    52 
       
    53 // CLASS DECLARATION
       
    54 
       
    55 /**
       
    56 *  CIptvServiceTest test class for STIF Test Framework TestScripter.
       
    57 *  ?other_description_lines
       
    58 *
       
    59 *  @lib ?library
       
    60 *  @since ?Series60_version
       
    61 */
       
    62 NONSHARABLE_CLASS(CIptvServiceTest) : public CScriptBase
       
    63     {
       
    64     public:  // Constructors and destructor
       
    65 
       
    66         /**
       
    67         * Two-phased constructor.
       
    68         */
       
    69         static CIptvServiceTest* NewL( CTestModuleIf& aTestModuleIf );
       
    70 
       
    71         /**
       
    72         * Destructor.
       
    73         */
       
    74         virtual ~CIptvServiceTest();
       
    75 
       
    76     public: // New functions
       
    77 
       
    78         /**
       
    79         * ?member_description.
       
    80         * @since ?Series60_version
       
    81         * @param ?arg1 ?description
       
    82         * @return ?description
       
    83         */
       
    84         //?type ?member_function( ?type ?arg1 );
       
    85 
       
    86     public: // Functions from base classes
       
    87 
       
    88         /**
       
    89         * From CScriptBase Runs a script line.
       
    90         * @since ?Series60_version
       
    91         * @param aItem Script line containing method name and parameters
       
    92         * @return Symbian OS error code
       
    93         */
       
    94         virtual TInt RunMethodL( CStifItemParser& aItem );
       
    95 
       
    96     protected:  // 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         TInt CompareService( TPtr aErrPtr, CIptvService& aOriginalService, CIptvService& aNewService );
       
   107 
       
   108     protected:  // Functions from base classes
       
   109 
       
   110         /**
       
   111         * From ?base_class ?member_description
       
   112         */
       
   113         //?type ?member_function();
       
   114 
       
   115     private:
       
   116 
       
   117         /**
       
   118         * C++ default constructor.
       
   119         */
       
   120         CIptvServiceTest( CTestModuleIf& aTestModuleIf );
       
   121 
       
   122         /**
       
   123         * By default Symbian 2nd phase constructor is private.
       
   124         */
       
   125         void ConstructL();
       
   126 
       
   127         // Prohibit copy constructor if not deriving from CBase.
       
   128         // ?classname( const ?classname& );
       
   129         // Prohibit assigment operator if not deriving from CBase.
       
   130         // ?classname& operator=( const ?classname& );
       
   131 
       
   132         /**
       
   133         * Frees all resources allocated from test methods.
       
   134         * @since ?Series60_version
       
   135         */
       
   136         void Delete();
       
   137 
       
   138 		/**
       
   139         * Test methods for CIptvServices
       
   140         */
       
   141 
       
   142         virtual TInt CreateServicesL( CStifItemParser& aItem );
       
   143         virtual TInt DestroyServicesL( CStifItemParser& aItem );
       
   144 		virtual TInt ServicesAddL( CStifItemParser& aItem );
       
   145 		virtual TInt ServicesCountL( CStifItemParser& aItem );
       
   146 		virtual TInt ServicesInternalizeL( CStifItemParser& aItem );
       
   147 		virtual TInt ServicesExternalizeL( CStifItemParser& aItem );
       
   148 		virtual TInt ServicesGetServiceL( CStifItemParser& aItem );
       
   149 		virtual TInt ServicesGetServiceByRefL( CStifItemParser& aItem );		
       
   150 
       
   151         /**
       
   152         * Test methods for CIptvService
       
   153         */
       
   154         
       
   155         virtual TInt CreateServiceL( CStifItemParser& aItem );
       
   156         virtual TInt DestroyServiceL( CStifItemParser& aItem );
       
   157         virtual TInt SetIdL( CStifItemParser& aItem );
       
   158         virtual TInt SetNameL( CStifItemParser& aItem );
       
   159         virtual TInt SetAddressL( CStifItemParser& aItem );
       
   160         virtual TInt SetIconPathL( CStifItemParser& aItem );
       
   161         virtual TInt SetEpgPluginUidL( CStifItemParser& aItem );
       
   162         virtual TInt SetVodPluginUidL( CStifItemParser& aItem );
       
   163         virtual TInt SetIptvPluginUidL( CStifItemParser& aItem );
       
   164         virtual TInt SetTypeL( CStifItemParser& aItem );
       
   165         
       
   166         // params: number of iaps
       
   167         virtual TInt CreateIapListL( CStifItemParser& aItem );
       
   168         // params: expected count of iaps
       
   169         virtual TInt CheckIapListL( CStifItemParser& aItem );
       
   170         
       
   171         virtual TInt SetUserNameL( CStifItemParser& aItem );
       
   172         virtual TInt SetPasswordL( CStifItemParser& aItem );
       
   173         virtual TInt SetDescL( CStifItemParser& aItem );
       
   174         // param: flag1 ... flag5
       
   175         virtual TInt SetFlagsL( CStifItemParser& aItem );
       
   176         virtual TInt SetApplicationUidL( CStifItemParser& aItem );
       
   177         virtual TInt SetDisplayOrderL( CStifItemParser& aItem );
       
   178         virtual TInt SetProviderIdL( CStifItemParser& aItem );
       
   179         virtual TInt SetAccountManagementUrlL( CStifItemParser& aItem );
       
   180         
       
   181         virtual TInt SetL( CStifItemParser& aItem );
       
   182         //virtual TInt GetL( CStifItemParser& aItem );
       
   183         //virtual TInt CountSize( CStifItemParser& aItem );
       
   184         //virtual TInt CountExternalizeSize( CStifItemParser& aItem );               
       
   185 
       
   186         virtual TInt DoInternalizeL( CStifItemParser& aItem );
       
   187         virtual TInt DoExternalizeL( CStifItemParser& aItem );
       
   188 
       
   189     public:     // Data
       
   190         // ?one_line_short_description_of_data
       
   191         //?data_declaration;
       
   192 
       
   193     protected:  // Data
       
   194         // ?one_line_short_description_of_data
       
   195         //?data_declaration;
       
   196 
       
   197     private:    // Data
       
   198         
       
   199         /** 
       
   200         * CIptvService 
       
   201         */        
       
   202         CIptvService* iService;
       
   203         HBufC8* iBuff; // for testing internalize and externalize 
       
   204         
       
   205         
       
   206         
       
   207         /** 
       
   208         * CIptvServices 
       
   209         */
       
   210         CIptvServices *iServices;
       
   211         HBufC8* iServicesBuff; // for testing internalize and externalize 
       
   212         RPointerArray<CIptvService> iServicesArray; // backup copies of the services
       
   213         
       
   214         // ?one_line_short_description_of_data
       
   215         //?data_declaration;
       
   216 
       
   217         // Reserved pointer for future extension
       
   218         //TAny* iReserved;
       
   219 
       
   220     public:     // Friend classes
       
   221         //?friend_class_declaration;
       
   222     protected:  // Friend classes
       
   223         //?friend_class_declaration;
       
   224     private:    // Friend classes
       
   225         //?friend_class_declaration;
       
   226 
       
   227     };
       
   228 
       
   229 #endif      // IPTVSERVICETEST_H
       
   230 
       
   231 // End of File