omadrm/drmengine/roap/inc/RIHello.h
changeset 0 95b198f216e5
equal deleted inserted replaced
-1:000000000000 0:95b198f216e5
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef RIHELLO_H
       
    21 #define RIHELLO_H
       
    22 
       
    23 //  INCLUDES
       
    24 
       
    25 #include <hash.h>
       
    26 #include "RoapMessage.h"
       
    27 
       
    28 namespace Roap
       
    29 {
       
    30 
       
    31 // CONSTANTS
       
    32 //const ?type ?constant_var = ?constant;
       
    33 
       
    34 // MACROS
       
    35 //#define ?macro ?macro_def
       
    36 
       
    37 // DATA TYPES
       
    38 //enum ?declaration
       
    39 //typedef ?declaration
       
    40 //extern ?data_type;
       
    41 
       
    42 // FUNCTION PROTOTYPES
       
    43 //?type ?function_name(?arg_list);
       
    44 
       
    45 // FORWARD DECLARATIONS
       
    46 //class ?FORWARD_CLASSNAME;
       
    47 
       
    48 // CLASS DECLARATION
       
    49 
       
    50 /**
       
    51 *  ?one_line_short_description.
       
    52 *  ?other_description_lines
       
    53 *
       
    54 *  @lib ?library
       
    55 *  @since Series ?XX ?SeriesXX_version
       
    56 */
       
    57 class CRIHello : public CRoapMessage
       
    58     {
       
    59     public:  // Constructors and destructor
       
    60         
       
    61         /**
       
    62         * Two-phased constructor.
       
    63         */
       
    64         static CRIHello* NewL();
       
    65         
       
    66         /**
       
    67         * Destructor.
       
    68         */
       
    69         virtual ~CRIHello();
       
    70 
       
    71     public: // New functions
       
    72         
       
    73         /**
       
    74         * ?member_description.
       
    75         * @since Series ?XX ?SeriesXX_version
       
    76         * @param ?arg1 ?description
       
    77         * @return ?description
       
    78         */
       
    79         //?type ?member_function( ?type ?arg1 );
       
    80 
       
    81     public: // Functions from base classes
       
    82 
       
    83         /**
       
    84         * From ?base_class ?member_description.
       
    85         * @since Series ?XX ?SeriesXX_version
       
    86         * @param ?arg1 ?description
       
    87         * @return ?description
       
    88         */
       
    89         //?type ?member_function( ?type ?arg1 );
       
    90         
       
    91     protected:  // New functions
       
    92         
       
    93         /**
       
    94         * ?member_description.
       
    95         * @since Series ?XX ?SeriesXX_version
       
    96         * @param ?arg1 ?description
       
    97         * @return ?description
       
    98         */
       
    99         //?type ?member_function( ?type ?arg1 );
       
   100 
       
   101     protected:  // Functions from base classes
       
   102         
       
   103         /**
       
   104         * From ?base_class ?member_description
       
   105         */
       
   106         //?type ?member_function();
       
   107 
       
   108     private:
       
   109 
       
   110         /**
       
   111         * C++ default constructor.
       
   112         */
       
   113         CRIHello();
       
   114 
       
   115         /**
       
   116         * By default Symbian 2nd phase constructor is private.
       
   117         */
       
   118         void ConstructL();
       
   119 
       
   120         // Prohibit copy constructor if not deriving from CBase.
       
   121         // CRIHello( const CRIHello& );
       
   122         // Prohibit assigment operator if not deriving from CBase.
       
   123         // CRIHello& operator=( const CRIHello& );
       
   124 
       
   125     public:     // Data
       
   126         // ?one_line_short_description_of_data
       
   127 
       
   128         TRoapStatus iStatus;
       
   129         HBufC8* iSession;
       
   130         TBuf8<KMaxRoapVersionLength> iSelectedVersion;
       
   131         TBuf8<SHA1_HASH> iRiId;
       
   132         HBufC8* iRiNonce;
       
   133         HBufC8* iServerInfo;
       
   134         HBufC8* iErrorUrl;
       
   135         TBool iNeedDeviceDetails;
       
   136         TBool iPeerKeyIdentifier;
       
   137         TBuf8<SHA1_HASH> iPeerKeyId;
       
   138         TBool iCertificateCaching;
       
   139         RPointerArray<HBufC8> iAlgorithms;
       
   140         RPointerArray<HBufC8> iTrustedAuthorities;
       
   141         
       
   142     protected:  // Data
       
   143         // ?one_line_short_description_of_data
       
   144         //?data_declaration;
       
   145 
       
   146     private:    // Data
       
   147         // ?one_line_short_description_of_data
       
   148         //?data_declaration;
       
   149          
       
   150         // Reserved pointer for future extension
       
   151         //TAny* iReserved;
       
   152 
       
   153     public:     // Friend classes
       
   154         //?friend_class_declaration;
       
   155     protected:  // Friend classes
       
   156         //?friend_class_declaration;
       
   157     private:    // Friend classes
       
   158         //?friend_class_declaration;
       
   159 
       
   160     };
       
   161 }
       
   162 
       
   163 #endif      // RIHELLO_H   
       
   164             
       
   165 // End of File