videofeeds/server/tsrc/VCXScheduledDownloadTest/inc/VCXScheduledDownloadTest.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2009 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:  STIF testclass declaration*
       
    15 */
       
    16 
       
    17 
       
    18 #ifndef VCXSCHEDULEDDOWNLOADTEST_H
       
    19 #define VCXSCHEDULEDDOWNLOADTEST_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <f32file.h>
       
    23 #include <StifLogger.h>
       
    24 #include <TestScripterInternal.h>
       
    25 #include <StifTestModule.h>
       
    26 #include <TestclassAssert.h>
       
    27 #include "VCXTestStifScriptBaseExt.h"
       
    28 
       
    29 // CONSTANTS
       
    30 
       
    31 // MACROS
       
    32 #define TEST_CLASS_VERSION_MAJOR 0
       
    33 #define TEST_CLASS_VERSION_MINOR 0
       
    34 #define TEST_CLASS_VERSION_BUILD 0
       
    35 
       
    36 // Logging path
       
    37 _LIT( KVCXScheduledDownloadTestLogPath, "\\logs\\testframework\\VCXScheduledDownloadTest\\" ); 
       
    38 // Log file
       
    39 _LIT( KVCXScheduledDownloadTestLogFile, "VCXScheduledDownloadTest.txt" ); 
       
    40 _LIT( KVCXScheduledDownloadTestLogFileWithTitle, "VCXScheduledDownloadTest_[%S].txt" );
       
    41 
       
    42 // FORWARD DECLARATIONS
       
    43 class CVCXScheduledDownloadTest;
       
    44 class CVCXScheduledDownloadTester;
       
    45 class CVCXTestCommon;
       
    46 
       
    47 // DATA TYPES
       
    48 
       
    49 // CLASS DECLARATION
       
    50 
       
    51 /**
       
    52 *  CVCXScheduledDownloadTest test class for STIF Test Framework TestScripter.
       
    53 *
       
    54 *  @lib ?library
       
    55 *  @since ?Series60_version
       
    56 */
       
    57 NONSHARABLE_CLASS(CVCXScheduledDownloadTest) : public CVCXTestStifScriptBaseExt
       
    58     {
       
    59     public:  // Constructors and destructor
       
    60 
       
    61         /**
       
    62         * Two-phased constructor.
       
    63         */
       
    64         static CVCXScheduledDownloadTest* NewL( CTestModuleIf& aTestModuleIf );
       
    65 
       
    66         /**
       
    67         * Destructor.
       
    68         */
       
    69         virtual ~CVCXScheduledDownloadTest();
       
    70 
       
    71     public: // New functions
       
    72 
       
    73     public: // Functions from base classes
       
    74 
       
    75         /**
       
    76         * From CScriptBase Runs a script line.
       
    77         * @since ?Series60_version
       
    78         * @param aItem Script line containing method name and parameters
       
    79         * @return Symbian OS error code
       
    80         */
       
    81         virtual TInt RunMethodL( CStifItemParser& aItem );
       
    82 
       
    83     private:
       
    84 
       
    85         /**
       
    86         * C++ default constructor.
       
    87         */
       
    88         CVCXScheduledDownloadTest( CTestModuleIf& aTestModuleIf );
       
    89 
       
    90         /**
       
    91         * By default Symbian 2nd phase constructor is private.
       
    92         */
       
    93         void ConstructL();
       
    94 
       
    95         /**
       
    96         * Frees all resources allocated from test methods.
       
    97         * @since ?Series60_version
       
    98         */
       
    99         void Delete();
       
   100 
       
   101         /**
       
   102         * Test methods are listed below. 
       
   103         */
       
   104 
       
   105         /**
       
   106         * CreateL test method.
       
   107         * @since ?Series60_version
       
   108         * @param aItem Script line containing parameters.
       
   109         * @return Symbian OS error code.
       
   110         */
       
   111         virtual TInt CreateL( CStifItemParser& aItem );
       
   112         
       
   113         /**
       
   114         * RemoveAllMediasL test method.
       
   115         * @since ?Series60_version
       
   116         * @param aItem Script line containing parameters.
       
   117         * @return Symbian OS error code.
       
   118         */
       
   119         virtual TInt RemoveAllMediasL( CStifItemParser& aItem );
       
   120         
       
   121         /**
       
   122         * RemoveAllSchedulesL test method.
       
   123         * @since ?Series60_version
       
   124         * @param aItem Script line containing parameters.
       
   125         * @return Symbian OS error code.
       
   126         */
       
   127         virtual TInt RemoveAllSchedulesL( CStifItemParser& aItem );        
       
   128         
       
   129         /**
       
   130         * RemoveAllVideosL test method.
       
   131         * @since ?Series60_version
       
   132         * @param aItem Script line containing parameters.
       
   133         * @return Symbian OS error code.
       
   134         */
       
   135         virtual TInt RemoveVideoL( CStifItemParser& aItem );        
       
   136         
       
   137         /**
       
   138         * DownloadL test method.
       
   139         * @since ?Series60_version
       
   140         * @param aItem Script line containing parameters.
       
   141         * @return Symbian OS error code.
       
   142         */
       
   143         virtual TInt DownloadL( CStifItemParser& aItem );        
       
   144                 
       
   145         /**
       
   146         * CancelDownloadL test method.
       
   147         * @since ?Series60_version
       
   148         * @param aItem Script line containing parameters.
       
   149         * @return Symbian OS error code.
       
   150         */
       
   151         virtual TInt CancelDownloadL( CStifItemParser& aItem );        
       
   152                 
       
   153         /**
       
   154         * WaitForMessagesL test method.
       
   155         * @since ?Series60_version
       
   156         * @param aItem Script line containing parameters.
       
   157         * @return Symbian OS error code.
       
   158         */
       
   159         virtual TInt WaitForMessagesL( CStifItemParser& aItem );
       
   160         
       
   161         /**
       
   162         * CoolDown test method.
       
   163         * @since ?Series60_version
       
   164         * @param aItem Script line containing parameters.
       
   165         * @return Symbian OS error code.
       
   166         */
       
   167         virtual TInt CoolDown( CStifItemParser& aItem );
       
   168 
       
   169         /**
       
   170         * CheckVideoCount test method.
       
   171         * @since ?Series60_version
       
   172         * @param aItem Script line containing parameters.
       
   173         * @return Symbian OS error code.
       
   174         */
       
   175         virtual TInt CheckVideoCount( CStifItemParser& aItem );
       
   176         
       
   177         /**
       
   178         * CheckMinimumVideoCount test method.
       
   179         * @since ?Series60_version
       
   180         * @param aItem Script line containing parameters.
       
   181         * @return Symbian OS error code.
       
   182         */
       
   183         virtual TInt CheckMinimumVideoCount( CStifItemParser& aItem );
       
   184 
       
   185         /**
       
   186         * CheckMaximumVideoCount test method.
       
   187         * @since ?Series60_version
       
   188         * @param aItem Script line containing parameters.
       
   189         * @return Symbian OS error code.
       
   190         */
       
   191         virtual TInt CheckMaximumVideoCount( CStifItemParser& aItem );
       
   192         
       
   193         /**
       
   194         * CheckError test method.
       
   195         * @since ?Series60_version
       
   196         * @param aItem Script line containing parameters.
       
   197         * @return Symbian OS error code.
       
   198         */
       
   199         virtual TInt CheckError( CStifItemParser& aItem );
       
   200 
       
   201         /**
       
   202         * SetPreferredMemoryL test method.
       
   203         * @since ?Series60_version
       
   204         * @param aItem Script line containing parameters.
       
   205         * @return Symbian OS error code.
       
   206         */
       
   207         TInt SetPreferredMemoryL( CStifItemParser& aItem );
       
   208         
       
   209         /**
       
   210          * Other methods.
       
   211          */
       
   212         
       
   213         TInt GetDriveParam( CStifItemParser& aItem, TInt& aDrive );
       
   214         
       
   215         /**
       
   216          * Method used to log version of test class
       
   217          */
       
   218         void SendTestClassVersion();
       
   219 
       
   220         //[TestMethods] - Do not remove
       
   221 
       
   222     private:    // Data
       
   223         
       
   224         RFs iFs;
       
   225         
       
   226         CVCXScheduledDownloadTester* iTester;
       
   227         
       
   228         CVCXTestCommon* iTestCommon;
       
   229     };
       
   230 
       
   231 #endif      // VCXSCHEDULEDDOWNLOADTEST_H
       
   232 
       
   233 // End of File