remotemgmt_plat/policy_management_request_api/tsrc/inc/policy_management_request_api.h
changeset 0 b497e44ab2fc
child 66 08c8318ec9cb
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     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: definition of dm constants/exported methods
       
    15 * 	This is part of remotemgmt_plat.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef POLICY_MANAGEMENT_REQUEST_API_H
       
    22 #define POLICY_MANAGEMENT_REQUEST_API_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <StifLogger.h>
       
    26 #include <TestScripterInternal.h>
       
    27 #include <StifTestModule.h>
       
    28 #include <ssl_compatibility.h>
       
    29 
       
    30 // CONSTANTS
       
    31 //const ?type ?constant_var = ?constant;
       
    32 
       
    33 // MACROS
       
    34 //#define ?macro ?macro_def
       
    35 #define TEST_CLASS_VERSION_MAJOR 0
       
    36 #define TEST_CLASS_VERSION_MINOR 0
       
    37 #define TEST_CLASS_VERSION_BUILD 0
       
    38 
       
    39 // Logging path
       
    40 _LIT( Kpolicy_management_request_apiLogPath, "\\logs\\testframework\\policy_management_request_api\\" ); 
       
    41 // Log file
       
    42 _LIT( Kpolicy_management_request_apiLogFile, "policy_management_request_api.txt" ); 
       
    43 _LIT( Kpolicy_management_request_apiLogFileWithTitle, "policy_management_request_api_[%S].txt" );
       
    44 
       
    45 // FUNCTION PROTOTYPES
       
    46 //?type ?function_name(?arg_list);
       
    47 
       
    48 // FORWARD DECLARATIONS
       
    49 //class ?FORWARD_CLASSNAME;
       
    50 class Cpolicy_management_request_api;
       
    51 
       
    52 // DATA TYPES
       
    53 //enum ?declaration
       
    54 //typedef ?declaration
       
    55 //extern ?data_type;
       
    56 
       
    57 // CLASS DECLARATION
       
    58 
       
    59 /**
       
    60 *  Cpolicy_management_request_api test class for STIF Test Framework TestScripter.
       
    61 *  ?other_description_lines
       
    62 *
       
    63 *  @lib ?library
       
    64 *  @since ?Series60_version
       
    65 */
       
    66 NONSHARABLE_CLASS(Cpolicy_management_request_api) : public CScriptBase
       
    67     {
       
    68     public:  // Constructors and destructor
       
    69 
       
    70         /**
       
    71         * Two-phased constructor.
       
    72         */
       
    73         static Cpolicy_management_request_api* NewL( CTestModuleIf& aTestModuleIf );
       
    74 
       
    75         /**
       
    76         * Destructor.
       
    77         */
       
    78         virtual ~Cpolicy_management_request_api();
       
    79 
       
    80     public: // New functions
       
    81 
       
    82         /**
       
    83         * ?member_description.
       
    84         * @since ?Series60_version
       
    85         * @param ?arg1 ?description
       
    86         * @return ?description
       
    87         */
       
    88         //?type ?member_function( ?type ?arg1 );
       
    89 
       
    90     public: // Functions from base classes
       
    91 
       
    92         /**
       
    93         * From CScriptBase Runs a script line.
       
    94         * @since ?Series60_version
       
    95         * @param aItem Script line containing method name and parameters
       
    96         * @return Symbian OS error code
       
    97         */
       
    98         virtual TInt RunMethodL( CStifItemParser& aItem );
       
    99 
       
   100     protected:  // New functions
       
   101 
       
   102         /**
       
   103         * ?member_description.
       
   104         * @since ?Series60_version
       
   105         * @param ?arg1 ?description
       
   106         * @return ?description
       
   107         */
       
   108         //?type ?member_function( ?type ?arg1 );
       
   109 
       
   110     protected:  // Functions from base classes
       
   111 
       
   112         /**
       
   113         * From ?base_class ?member_description
       
   114         */
       
   115         //?type ?member_function();
       
   116 
       
   117     private:
       
   118 
       
   119         /**
       
   120         * C++ default constructor.
       
   121         */
       
   122         Cpolicy_management_request_api( CTestModuleIf& aTestModuleIf );
       
   123 
       
   124         /**
       
   125         * By default Symbian 2nd phase constructor is private.
       
   126         */
       
   127         void ConstructL();
       
   128 
       
   129         // Prohibit copy constructor if not deriving from CBase.
       
   130         // ?classname( const ?classname& );
       
   131         // Prohibit assigment operator if not deriving from CBase.
       
   132         // ?classname& operator=( const ?classname& );
       
   133 
       
   134         /**
       
   135         * Frees all resources allocated from test methods.
       
   136         * @since ?Series60_version
       
   137         */
       
   138         void Delete();
       
   139 
       
   140         /**
       
   141         * Test methods are listed below. 
       
   142         */
       
   143 
       
   144         /**
       
   145         * Example test method.
       
   146         * @since ?Series60_version
       
   147         * @param aItem Script line containing parameters.
       
   148         * @return Symbian OS error code.
       
   149         */
       
   150         virtual TInt ExampleL( CStifItemParser& aItem );
       
   151         
       
   152         /**
       
   153          * Method used to log version of test class
       
   154          */
       
   155         void SendTestClassVersion();
       
   156 
       
   157         //ADD NEW METHOD DEC HERE
       
   158         //[TestMethods] - Do not remove
       
   159         
       
   160         TInt PEConnectCloseL(CStifItemParser& aItem);
       
   161         TInt PerformRFSL (CStifItemParser& aItem);
       
   162         TInt PMOpenCloseL (CStifItemParser& aItem);
       
   163         TInt PROpenCloseL (CStifItemParser& aItem);
       
   164         TInt AddSessionTrustL (CStifItemParser& aItem);
       
   165         TInt IsAllowedServerIDL (CStifItemParser& aItem);
       
   166 		void CreateCertificate( TCertInfo& aCertInfo);
       
   167 		TInt CertificateRoleL( CStifItemParser& aItem );
       
   168 		TInt ExecuteOperationL( CStifItemParser& aItem );
       
   169 		TInt GetElememtListL( CStifItemParser& aItem );
       
   170 		TInt GetElememtL (CStifItemParser& aItem);
       
   171 		TInt GetXACMLDescriptionL(CStifItemParser& aItem);
       
   172     public:     // Data
       
   173         // ?one_line_short_description_of_data
       
   174         //?data_declaration;
       
   175 
       
   176     protected:  // Data
       
   177         // ?one_line_short_description_of_data
       
   178         //?data_declaration;
       
   179 
       
   180     private:    // Data
       
   181         
       
   182         // ?one_line_short_description_of_data
       
   183         //?data_declaration;
       
   184 
       
   185         // Reserved pointer for future extension
       
   186         //TAny* iReserved;
       
   187 
       
   188     public:     // Friend classes
       
   189         //?friend_class_declaration;
       
   190     protected:  // Friend classes
       
   191         //?friend_class_declaration;
       
   192     private:    // Friend classes
       
   193         //?friend_class_declaration;
       
   194 
       
   195     };
       
   196 
       
   197 #endif      // POLICY_MANAGEMENT_REQUEST_API_H
       
   198 
       
   199 // End of File