omadrm/drmengine/roap/inc/DeviceHello.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 DEVICEHELLO_H
       
    21 #define DEVICEHELLO_H
       
    22 
       
    23 //  INCLUDES
       
    24 
       
    25 #include "hash.h"
       
    26 #include "RoapMessage.h"
       
    27 
       
    28 namespace Roap
       
    29 {
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  ?one_line_short_description.
       
    35 *  ?other_description_lines
       
    36 *
       
    37 *  @lib ?library
       
    38 *  @since Series ?XX ?SeriesXX_version
       
    39 */
       
    40 class CDeviceHello : public CRoapMessage
       
    41     {
       
    42     public:  // Constructors and destructor
       
    43         
       
    44         /**
       
    45         * Two-phased constructor.
       
    46         */
       
    47         static CDeviceHello* NewL();
       
    48         
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         virtual ~CDeviceHello();
       
    53 
       
    54     public: // New functions
       
    55         
       
    56         /**
       
    57         * ?member_description.
       
    58         * @since Series ?XX ?SeriesXX_version
       
    59         * @param ?arg1 ?description
       
    60         * @return ?description
       
    61         */
       
    62         //?type ?member_function( ?type ?arg1 );
       
    63 
       
    64     public: // Functions from base classes
       
    65 
       
    66         /**
       
    67         * From ?base_class ?member_description.
       
    68         * @since Series ?XX ?SeriesXX_version
       
    69         * @param ?arg1 ?description
       
    70         * @return ?description
       
    71         */
       
    72         virtual HBufC8* MessageAsXmlL(void);
       
    73         
       
    74     protected:  // New functions
       
    75         
       
    76         /**
       
    77         * ?member_description.
       
    78         * @since Series ?XX ?SeriesXX_version
       
    79         * @param ?arg1 ?description
       
    80         * @return ?description
       
    81         */
       
    82         virtual void GetDeviceIdsAsXmlL(CBufFlat* aBuffer);
       
    83 
       
    84     protected:  // Functions from base classes
       
    85         
       
    86         /**
       
    87         * From ?base_class ?member_description
       
    88         */
       
    89         //?type ?member_function();
       
    90         
       
    91     private:
       
    92 
       
    93         /**
       
    94         * C++ default constructor.
       
    95         */
       
    96         CDeviceHello();
       
    97 
       
    98         /**
       
    99         * By default Symbian 2nd phase constructor is private.
       
   100         */
       
   101         void ConstructL();
       
   102 
       
   103         // Prohibit copy constructor if not deriving from CBase.
       
   104         // CDeviceHello( const CDeviceHello& );
       
   105         // Prohibit assigment operator if not deriving from CBase.
       
   106         // CDeviceHello& operator=( const CDeviceHello& );
       
   107 
       
   108     public:     // Data
       
   109         
       
   110         // Device ID. SHA1 hash array of the public keys
       
   111         RArray< TBuf8<SHA1_HASH> > iDeviceIdArray;
       
   112 
       
   113         // Supported ROAP Version
       
   114         TBuf8<KMaxRoapVersionLength> iVersion;
       
   115 
       
   116         // Optional nonce from the trigger
       
   117         HBufC8* iTriggerNonce;
       
   118         
       
   119         // Supported algorithms
       
   120         RArray<TPtrC8> iAlgorithms;
       
   121 
       
   122     protected:  // Data
       
   123         // ?one_line_short_description_of_data
       
   124         //?data_declaration;
       
   125 
       
   126     private:    // Data
       
   127         // ?one_line_short_description_of_data
       
   128         //?data_declaration;
       
   129          
       
   130         // Reserved pointer for future extension
       
   131         //TAny* iReserved;
       
   132 
       
   133     public:     // Friend classes
       
   134         //?friend_class_declaration;
       
   135     protected:  // Friend classes
       
   136         //?friend_class_declaration;
       
   137     private:    // Friend classes
       
   138         //?friend_class_declaration;
       
   139 
       
   140     };
       
   141 }
       
   142 
       
   143 #endif      // DEVICEHELLO_H   
       
   144             
       
   145 // End of File