videofeeds/server/tsrc/VCXScheduledReminderTest/inc/VCXScheduledReminderTest.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 VCXScheduledReminderTest_H
       
    21 #define IPTVSCHEDULINGENGINETEST_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <StifLogger.h>
       
    25 #include <TestScripterInternal.h>
       
    26 #include <StifTestModule.h>
       
    27 #include "MIptvTestTimerObserver.h"
       
    28 
       
    29 // CONSTANTS
       
    30 //const ?type ?constant_var = ?constant;
       
    31 
       
    32 // MACROS
       
    33 //#define ?macro ?macro_def
       
    34 // Logging path
       
    35 _LIT( KVCXScheduledReminderTestLogPath, "\\logs\\testframework\\VCXScheduledReminderTest\\" ); 
       
    36 // Log file
       
    37 _LIT( KVCXScheduledReminderTestLogFile, "VCXScheduledReminderTest.txt" ); 
       
    38 
       
    39 // FUNCTION PROTOTYPES
       
    40 //?type ?function_name(?arg_list);
       
    41 
       
    42 // FORWARD DECLARATIONS
       
    43 //class ?FORWARD_CLASSNAME;
       
    44 class CVCXScheduledReminderTest;
       
    45 class CCseSchedulerApi;
       
    46 class CIptvTestUtilities;
       
    47 class CVCXTestServiceUtilModule;
       
    48 class CIptvTestTimer;
       
    49 class CCseScheduledProgram;
       
    50 
       
    51 // DATA TYPES
       
    52 //enum ?declaration
       
    53 //typedef ?declaration
       
    54 //extern ?data_type;
       
    55 
       
    56 // CLASS DECLARATION
       
    57 
       
    58 /**
       
    59 *  CVCXScheduledReminderTest test class for STIF Test Framework TestScripter.
       
    60 *  ?other_description_lines
       
    61 *
       
    62 *  @lib ?library
       
    63 *  @since ?Series60_version
       
    64 */
       
    65 NONSHARABLE_CLASS(CVCXScheduledReminderTest) : public CScriptBase, MIptvTestTimerObserver
       
    66     {
       
    67     public:  // Constructors and destructor
       
    68 
       
    69         /**
       
    70         * Two-phased constructor.
       
    71         */
       
    72         static CVCXScheduledReminderTest* NewL( CTestModuleIf& aTestModuleIf );
       
    73 
       
    74         /**
       
    75         * Destructor.
       
    76         */
       
    77         virtual ~CVCXScheduledReminderTest();
       
    78 
       
    79 
       
    80     public: // Functions from base classes
       
    81 
       
    82         /**
       
    83         * From CScriptBase Runs a script line.
       
    84         * @since ?Series60_version
       
    85         * @param aItem Script line containing method name and parameters
       
    86         * @return Symbian OS error code
       
    87         */
       
    88         virtual TInt RunMethodL( CStifItemParser& aItem );
       
    89         
       
    90         void TimerComplete(TInt aTimerId, TInt aError);
       
    91 
       
    92     private:  // New functions
       
    93 
       
    94         /**
       
    95         * ?member_description.
       
    96         * @since ?Series60_version
       
    97         * @param ?arg1 ?description
       
    98         * @return ?description
       
    99         */
       
   100     
       
   101         TUint32 GetServiceL( CStifItemParser& aItem );   
       
   102          
       
   103         TUint32 GetIapL( CStifItemParser& aItem );
       
   104         
       
   105 		TBool CompareScheduleLists( RPointerArray<CCseScheduledProgram> aList );
       
   106 		
       
   107 		void PrintArray( RPointerArray<CCseScheduledProgram> aList );
       
   108 
       
   109 		TBool CompareScheduleItems( CCseScheduledProgram* aFirst, CCseScheduledProgram* aSecond );
       
   110 
       
   111 		TInt32 GetPluginUidByNumber( TInt aValue );
       
   112 		
       
   113 		TInt SetTimeoutL( CStifItemParser& aItem );
       
   114 
       
   115 
       
   116     protected:  // Functions from base classes
       
   117 
       
   118         /**
       
   119         * From ?base_class ?member_description
       
   120         */
       
   121         //?type ?member_function();
       
   122         
       
   123 
       
   124     private:
       
   125 
       
   126         /**
       
   127         * C++ default constructor.
       
   128         */
       
   129         CVCXScheduledReminderTest( CTestModuleIf& aTestModuleIf );
       
   130 
       
   131         /**
       
   132         * By default Symbian 2nd phase constructor is private.
       
   133         */
       
   134         void ConstructL();
       
   135 
       
   136 
       
   137         /**
       
   138         * Frees all resources allocated from test methods.
       
   139         * @since ?Series60_version
       
   140         */
       
   141         void Delete();
       
   142 
       
   143         /**
       
   144         * Test methods are listed below. 
       
   145         */
       
   146         
       
   147         virtual TInt CreateL( CStifItemParser& aItem );
       
   148 
       
   149         virtual TInt RefreshServiceL( CStifItemParser& aItem );
       
   150         
       
   151         virtual TInt SetIapL( CStifItemParser& aItem );
       
   152         
       
   153         virtual TInt ScheduleDownloadL( CStifItemParser& aItem );
       
   154         
       
   155         virtual TInt AddScheduleL( CStifItemParser& aItem );
       
   156         
       
   157         virtual TInt RemoveScheduleL( CStifItemParser& aItem );
       
   158         
       
   159         virtual TInt RemoveAllSchedulesL( CStifItemParser& aItem );
       
   160         
       
   161         virtual TInt GetScheduleL( CStifItemParser& aItem );
       
   162         
       
   163 		virtual TInt GetSchedulesByAppUidL( CStifItemParser& aItem );
       
   164 		
       
   165 		virtual TInt GetOverlappingSchedulesL( CStifItemParser& aItem );
       
   166 		
       
   167 		virtual TInt GetSchedulesByPluginUidL( CStifItemParser& aItem );
       
   168 		
       
   169 		virtual TInt GetSchedulesByTypeL( CStifItemParser& aItem );
       
   170 		
       
   171 		virtual TInt GetSchedulesByTimeL( CStifItemParser& aItem );
       
   172 		
       
   173 		virtual TInt CheckCountL( CStifItemParser& aItem );
       
   174         
       
   175         virtual TInt AdjustClockL( CStifItemParser& aItem );
       
   176         
       
   177         virtual TInt EmptyArray( CStifItemParser& aItem );
       
   178         
       
   179         virtual TInt RemoveAllFromArrayL( CStifItemParser& aItem );
       
   180         
       
   181     private:    // Data
       
   182     
       
   183      	CIptvTestTimer*		iShutdownTimer;	
       
   184     
       
   185         CCseSchedulerApi*	iSchedulerClient;
       
   186         
       
   187         CIptvTestUtilities*	iTestUtil;
       
   188 
       
   189 		RPointerArray<CCseScheduledProgram> iScheduleArray;
       
   190     };
       
   191 
       
   192 #endif      // IPTVSCHEDULINGENGINETEST_H
       
   193 
       
   194 // End of File