videocollection/mpxmyvideoscollection/tsrc/ut_vcxmyvideoscollectionutiltest/inc/VcxMyVideosCollectionUtilTest.h
branchRCL_3
changeset 23 8f0df5c82986
child 26 67eb01668b0e
equal deleted inserted replaced
21:55fa1ec415c6 23:8f0df5c82986
       
     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 "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 VCXMYVIDEOSCOLLECTIONUTILTEST_H
       
    19 #define VCXMYVIDEOSCOLLECTIONUTILTEST_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <StifLogger.h>
       
    23 #include <TestScripterInternal.h>
       
    24 #include <StifTestModule.h>
       
    25 #include <TestclassAssert.h>
       
    26 
       
    27 // CONSTANTS
       
    28 //const ?type ?constant_var = ?constant;
       
    29 
       
    30 // MACROS
       
    31 //#define ?macro ?macro_def
       
    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( KVcxMyVideosCollectionUtilTestLogPath, "\\logs\\testframework\\VcxMyVideosCollectionUtilTest\\" ); 
       
    38 // Log file
       
    39 _LIT( KVcxMyVideosCollectionUtilTestLogFile, "VcxMyVideosCollectionUtilTest.txt" ); 
       
    40 _LIT( KVcxMyVideosCollectionUtilTestLogFileWithTitle, "VcxMyVideosCollectionUtilTest_[%S].txt" );
       
    41 
       
    42 // FUNCTION PROTOTYPES
       
    43 //?type ?function_name(?arg_list);
       
    44 
       
    45 // FORWARD DECLARATIONS
       
    46 //class ?FORWARD_CLASSNAME;
       
    47 class CVcxMyVideosCollectionUtilTest;
       
    48 
       
    49 // DATA TYPES
       
    50 //enum ?declaration
       
    51 //typedef ?declaration
       
    52 //extern ?data_type;
       
    53 
       
    54 // CLASS DECLARATION
       
    55 
       
    56 /**
       
    57 *  CVcxMyVideosCollectionUtilTest test class for STIF Test Framework TestScripter.
       
    58 *  ?other_description_lines
       
    59 *
       
    60 *  @lib ?library
       
    61 *  @since ?Series60_version
       
    62 */
       
    63 NONSHARABLE_CLASS(CVcxMyVideosCollectionUtilTest) : public CScriptBase
       
    64     {
       
    65     public:  // Constructors and destructor
       
    66 
       
    67         /**
       
    68         * Two-phased constructor.
       
    69         */
       
    70         static CVcxMyVideosCollectionUtilTest* NewL( CTestModuleIf& aTestModuleIf );
       
    71 
       
    72         /**
       
    73         * Destructor.
       
    74         */
       
    75         virtual ~CVcxMyVideosCollectionUtilTest();
       
    76 
       
    77     public: // New functions
       
    78 
       
    79         /**
       
    80         * ?member_description.
       
    81         * @since ?Series60_version
       
    82         * @param ?arg1 ?description
       
    83         * @return ?description
       
    84         */
       
    85         //?type ?member_function( ?type ?arg1 );
       
    86 
       
    87     public: // Functions from base classes
       
    88 
       
    89         /**
       
    90         * From CScriptBase Runs a script line.
       
    91         * @since ?Series60_version
       
    92         * @param aItem Script line containing method name and parameters
       
    93         * @return Symbian OS error code
       
    94         */
       
    95         virtual TInt RunMethodL( CStifItemParser& aItem );
       
    96 
       
    97     protected:  // New functions
       
    98 
       
    99         /**
       
   100         * ?member_description.
       
   101         * @since ?Series60_version
       
   102         * @param ?arg1 ?description
       
   103         * @return ?description
       
   104         */
       
   105         //?type ?member_function( ?type ?arg1 );
       
   106 
       
   107     protected:  // Functions from base classes
       
   108 
       
   109         /**
       
   110         * From ?base_class ?member_description
       
   111         */
       
   112         //?type ?member_function();
       
   113 
       
   114     private:
       
   115 
       
   116         /**
       
   117         * C++ default constructor.
       
   118         */
       
   119         CVcxMyVideosCollectionUtilTest( CTestModuleIf& aTestModuleIf );
       
   120 
       
   121         /**
       
   122         * By default Symbian 2nd phase constructor is private.
       
   123         */
       
   124         void ConstructL();
       
   125 
       
   126         // Prohibit copy constructor if not deriving from CBase.
       
   127         // ?classname( const ?classname& );
       
   128         // Prohibit assigment operator if not deriving from CBase.
       
   129         // ?classname& operator=( const ?classname& );
       
   130 
       
   131         /**
       
   132         * Frees all resources allocated from test methods.
       
   133         * @since ?Series60_version
       
   134         */
       
   135         void Delete();
       
   136 
       
   137         /**
       
   138         * Test methods are listed below. 
       
   139         */
       
   140         virtual TInt CreateEmptyMediaListL( CStifItemParser& aItem );
       
   141 
       
   142         virtual TInt CreateEmptyMessageListL( CStifItemParser& aItem );        
       
   143 
       
   144         virtual TInt CopyFromListToListL( CStifItemParser& aItem );
       
   145 
       
   146         virtual TInt DriveLetter2DriveNumberL( CStifItemParser& aItem );
       
   147 
       
   148         virtual TInt MakeUniqueFileNameL( CStifItemParser& aItem );
       
   149 
       
   150         virtual TInt OriginL( CStifItemParser& aItem );
       
   151 
       
   152         virtual TInt FlagsL( CStifItemParser& aItem );
       
   153       
       
   154         virtual TInt DownloadIdL( CStifItemParser& aItem );
       
   155      
       
   156         virtual TInt DownloadStateL( CStifItemParser& aItem );
       
   157       
       
   158         virtual TInt IdL( CStifItemParser& aItem );
       
   159       
       
   160         virtual TInt DurationL( CStifItemParser& aItem );
       
   161      
       
   162         virtual TInt TitleL( CStifItemParser& aItem );
       
   163       
       
   164         virtual TInt RatingL( CStifItemParser& aItem );
       
   165        
       
   166         virtual TInt AudioFourCcL( CStifItemParser& aItem );
       
   167        
       
   168         virtual TInt AreSupportedL( CStifItemParser& aItem );
       
   169      
       
   170         virtual TInt AttrBelongsToFullSetL( CStifItemParser& aItem );
       
   171         
       
   172         virtual TInt Origin( CStifItemParser& aItem );
       
   173 
       
   174         virtual TInt PrintOpenFileHandlesL( CStifItemParser& aItem );
       
   175      
       
   176         virtual TInt GetProcessNameL( CStifItemParser& aItem );
       
   177 
       
   178         /**
       
   179          * Method used to log version of test class
       
   180          */
       
   181         void SendTestClassVersion();
       
   182 
       
   183         //ADD NEW METHOD DEC HERE
       
   184         //[TestMethods] - Do not remove
       
   185 
       
   186     public:     // Data
       
   187         // ?one_line_short_description_of_data
       
   188         //?data_declaration;
       
   189 
       
   190     protected:  // Data
       
   191         // ?one_line_short_description_of_data
       
   192         //?data_declaration;
       
   193 
       
   194     private:    // Data
       
   195         
       
   196         // ?one_line_short_description_of_data
       
   197         //?data_declaration;
       
   198 
       
   199         // Reserved pointer for future extension
       
   200         //TAny* iReserved;
       
   201 
       
   202     public:     // Friend classes
       
   203         //?friend_class_declaration;
       
   204     protected:  // Friend classes
       
   205         //?friend_class_declaration;
       
   206     private:    // Friend classes
       
   207         //?friend_class_declaration;
       
   208 
       
   209     };
       
   210 
       
   211 #endif      // VCXMYVIDEOSCOLLECTIONUTILTEST_H
       
   212 
       
   213 // End of File