imstutils/xmppadapter/tsrc/xmppadapter_test/inc/tstxmppadapter.h
changeset 0 5e5d6b214f4f
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     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 "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:   tstxmppadapter.h
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef TSTXMPPADAPTER_H
       
    22 #define TSTXMPPADAPTER_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <StifLogger.h>
       
    26 #include <TestScripterInternal.h>
       
    27 #include <StifTestModule.h>
       
    28 
       
    29 
       
    30 // CONSTANTS
       
    31 //const ?type ?constant_var = ?constant;
       
    32 
       
    33 // MACROS
       
    34 //#define ?macro ?macro_def
       
    35 // Logging path
       
    36 _LIT( KtstXmppadapterLogPath, "\\logs\\testframework\\tstxmppadapter\\" ); 
       
    37 // Log file
       
    38 _LIT( KtstxmppadapterLogFile, "tstxmppadapter.txt" ); 
       
    39 
       
    40 // FUNCTION PROTOTYPES
       
    41 //?type ?function_name(?arg_list);
       
    42 
       
    43 // FORWARD DECLARATIONS
       
    44 //class ?FORWARD_CLASSNAME;
       
    45 class CtstXmppAdapter;
       
    46 
       
    47 // DATA TYPES
       
    48 //enum ?declaration
       
    49 //typedef ?declaration
       
    50 //extern ?data_type;
       
    51 
       
    52 // CLASS DECLARATION
       
    53 
       
    54 /**
       
    55 *  Ctstlm test class for STIF Test Framework TestScripter.
       
    56 *  ?other_description_lines
       
    57 *
       
    58 *  @lib ?library
       
    59 *  @since ?Series60_version
       
    60 */
       
    61 NONSHARABLE_CLASS(CtstXmppAdapter) : public CScriptBase
       
    62     {
       
    63     public:  // Constructors and destructor
       
    64 
       
    65         /**
       
    66         * Two-phased constructor.
       
    67         */
       
    68         static CtstXmppAdapter* NewL( CTestModuleIf& aTestModuleIf );
       
    69 
       
    70         /**
       
    71         * Destructor.
       
    72         */
       
    73         virtual ~CtstXmppAdapter();
       
    74 
       
    75     public: // New functions
       
    76 
       
    77         /**
       
    78         * ?member_description.
       
    79         * @since ?Series60_version
       
    80         * @param ?arg1 ?description
       
    81         * @return ?description
       
    82         */
       
    83         //?type ?member_function( ?type ?arg1 );
       
    84 
       
    85     public: // Functions from base classes
       
    86 
       
    87         /**
       
    88         * From CScriptBase Runs a script line.
       
    89         * @since ?Series60_version
       
    90         * @param aItem Script line containing method name and parameters
       
    91         * @return Symbian OS error code
       
    92         */
       
    93         virtual TInt RunMethodL( CStifItemParser& aItem );
       
    94 
       
    95     protected:  // New functions
       
    96 
       
    97         /**
       
    98         * ?member_description.
       
    99         * @since ?Series60_version
       
   100         * @param ?arg1 ?description
       
   101         * @return ?description
       
   102         */
       
   103         //?type ?member_function( ?type ?arg1 );
       
   104 
       
   105     protected:  // Functions from base classes
       
   106 
       
   107         /**
       
   108         * From ?base_class ?member_description
       
   109         */
       
   110         //?type ?member_function();
       
   111 
       
   112     private:
       
   113 
       
   114         /**
       
   115         * C++ default constructor.
       
   116         */
       
   117         CtstXmppAdapter( CTestModuleIf& aTestModuleIf );
       
   118 
       
   119         /**
       
   120         * By default Symbian 2nd phase constructor is private.
       
   121         */
       
   122         void ConstructL();
       
   123 
       
   124         // Prohibit copy constructor if not deriving from CBase.
       
   125         // ?classname( const ?classname& );
       
   126         // Prohibit assigment operator if not deriving from CBase.
       
   127         // ?classname& operator=( const ?classname& );
       
   128 
       
   129         /**
       
   130         * Frees all resources allocated from test methods.
       
   131         * @since ?Series60_version
       
   132         */
       
   133         void Delete();
       
   134 
       
   135         /**
       
   136         * Test methods are listed below. 
       
   137         */
       
   138 
       
   139         /**
       
   140         * Example test method.
       
   141         * @since ?Series60_version
       
   142         * @param aItem Script line containing parameters.
       
   143         * @return Symbian OS error code.
       
   144         */        
       
   145         
       
   146         virtual TInt xmppadapter_newL( CStifItemParser& aItem );
       
   147         
       
   148         virtual TInt xmppadapter_visit_EWPParameterAppIDL(CStifItemParser& aItem );
       
   149         virtual TInt xmppadapter_visit_kwpapplicationL(CStifItemParser& aItem );
       
   150         virtual TInt xmppadapter_visit_KWPResourceL(CStifItemParser& aItem );
       
   151         virtual TInt xmppadapter_visit_EWPParameterNonAppIDL(CStifItemParser& aItem );
       
   152         virtual TInt xmppadapter_visit_EWPParameterAAuthNameL(CStifItemParser& aItem );
       
   153         virtual TInt xmppadapter_visit_EWPParameterAAuthSecretL( CStifItemParser& aItem );
       
   154         virtual TInt xmppadapter_visit_EWPParameterProviderIDL( CStifItemParser& aItem );
       
   155         virtual TInt xmppadapter_visit_EWPParameterName_ProtocolL( CStifItemParser& aItem );
       
   156         virtual TInt xmppadapter_visit_EWPParameterName_ServerL( CStifItemParser& aItem );
       
   157         virtual TInt xmppadapter_visitLinkL( CStifItemParser& aItem );
       
   158         virtual TInt xmppadapter_SummaryTextL( CStifItemParser& aItem );
       
   159         virtual TInt xmppadapter_SummaryTitleL( CStifItemParser& aItem );
       
   160         virtual TInt xmppadapter_SaveL( CStifItemParser& aItem );
       
   161         virtual TInt xmppadapter_ItemCountL( CStifItemParser& aItem );
       
   162         virtual TInt xmppadapter_ItemZeroCountL( CStifItemParser& aItem );
       
   163         virtual TInt xmppadapter_DetailsL( CStifItemParser& aItem );
       
   164         virtual TInt xmppadapter_visit_KWPAppAddrL(CStifItemParser& aItem );
       
   165         virtual TInt xmppadapter_visit_EWPNamedParameter_KSslL(CStifItemParser& aItem);
       
   166         virtual TInt xmppadapter_visit_EWPNamedParameter_KPortNbrL(CStifItemParser& aItem);
       
   167         virtual TInt xmppadapter_visit_EWPNamedParameter_KBrandIdL(CStifItemParser& aItem);
       
   168         virtual TInt xmppadapter_visit_EWPParameterDomainL(CStifItemParser& aItem );
       
   169         //virtual TInt xmppadapter_visit_withoutAppId_KWPResourceL( CStifItemParser& aItem );
       
   170         
       
   171         
       
   172 
       
   173 
       
   174   
       
   175     private:    // Data
       
   176         TUid iEcomDtorID;
       
   177         
       
   178         // ?one_line_short_description_of_data
       
   179         //?data_declaration;
       
   180 
       
   181         // Reserved pointer for future extension
       
   182         //TAny* iReserved;
       
   183 
       
   184       };
       
   185 
       
   186 #endif      // TSTXMPPADAPTER_H
       
   187 
       
   188 // End of File