deviceupdatesui/omadmadapters/syncmldm12/tsrc/inc/syncmldm12test.h
changeset 45 0f9fc722d255
parent 44 137912d1a556
child 46 b9b00b134b0d
equal deleted inserted replaced
44:137912d1a556 45:0f9fc722d255
     1 /*
       
     2 * Copyright (c) 2008 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:  Implementation of DM adapter test component
       
    15 * 	This is part of omadmextensions/adapter test application.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 #ifndef TCTEST_H
       
    25 #define TCTEST_H
       
    26 
       
    27 //  INCLUDES
       
    28 #include <StifLogger.h>
       
    29 #include <TestScripterInternal.h>
       
    30 #include <StifTestModule.h>
       
    31 #include <smldmadapter.h>
       
    32 #include "dmatest.h"
       
    33 
       
    34 const TUint KNSmlDMSettings12AdapterImplUid = 0x10282CE8;
       
    35 	
       
    36 
       
    37 const TUid KAdapterUid = 
       
    38 		{
       
    39 		KNSmlDMSettings12AdapterImplUid
       
    40 		};
       
    41 // Logging path
       
    42 _LIT( KamtestLogPath, "\\logs\\testframework\\tctest\\" ); 
       
    43 // Log file
       
    44 _LIT( KamtestLogFile, "tctest.txt" ); 
       
    45 
       
    46 
       
    47 // FORWARD DECLARATIONS
       
    48 class Csyncmldm12Test;
       
    49 
       
    50 
       
    51 // CLASS DECLARATION
       
    52 
       
    53 /**
       
    54 *  Csyncmldm12Test test class for STIF Test Framework TestScripter.
       
    55 *  ?other_description_lines
       
    56 *
       
    57 *  @lib ?library
       
    58 *  @since ?Series60_version
       
    59 */
       
    60 class Csyncmldm12Test : public Cdmatest
       
    61     {
       
    62     public:  // Constructors and destructor
       
    63         
       
    64         /**
       
    65         * Two-phased constructor.
       
    66         */
       
    67         static Csyncmldm12Test* NewL( CTestModuleIf& aTestModuleIf );
       
    68         
       
    69         /**
       
    70         * Destructor.
       
    71         */
       
    72         virtual ~Csyncmldm12Test();
       
    73 
       
    74     public: // Functions from base classes
       
    75 
       
    76         /**
       
    77         * From CScriptBase Runs a script line.
       
    78         * @since ?Series60_version
       
    79         * @param aItem Script line containing method name and parameters
       
    80         * @return Symbian OS error code
       
    81         */
       
    82         virtual TInt RunMethodL( CStifItemParser& aItem );
       
    83                 
       
    84 
       
    85     private:
       
    86 
       
    87         /**
       
    88         * C++ default constructor.
       
    89         */
       
    90         Csyncmldm12Test( CTestModuleIf& aTestModuleIf );
       
    91 
       
    92         /**
       
    93         * By default Symbian 2nd phase constructor is private.
       
    94         */
       
    95         void ConstructL();
       
    96 
       
    97         // Prohibit copy constructor if not deriving from CBase.
       
    98         // ?classname( const ?classname& );
       
    99         // Prohibit assigment operator if not deriving from CBase.
       
   100         // ?classname& operator=( const ?classname& );
       
   101     
       
   102         /**
       
   103         * Frees all resources allocated from test methods.
       
   104         * @since ?Series60_version
       
   105         */
       
   106         virtual void Delete();
       
   107         
       
   108         /**
       
   109         * Test methods are listed below. 
       
   110         */
       
   111         
       
   112         /**
       
   113         * Example test method.
       
   114         * @since ?Series60_version
       
   115         * @param aItem Script line containing parameters.
       
   116         * @return Symbian OS error code.
       
   117         */
       
   118 /*        virtual TInt ExampleL( CStifItemParser& aItem ) ;
       
   119         virtual TInt DeliverL( CStifItemParser& aItem ) ;
       
   120         virtual TInt DetailsL( CStifItemParser& aItem ) ;
       
   121 		    virtual TInt InstallL( CStifItemParser& aItem ) ;
       
   122 		    virtual TInt BareInstallL( CStifItemParser& aItem ) ;*/
       
   123 		
       
   124 
       
   125     private:    // Data
       
   126         HBufC8 *GetNextStringLC ( CStifItemParser& aItem, const TDesC &aName );
       
   127 
       
   128 
       
   129     };
       
   130 
       
   131 #endif      // TCTEST_H
       
   132             
       
   133 // End of File