omadrm/drmengine/roap/inc/MeteringReportReq.h
changeset 0 95b198f216e5
child 18 8a03a285ab14
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 METERINGREPORTREQ_H
       
    21 #define METERINGREPORTREQ_H
       
    22 
       
    23 //  INCLUDES
       
    24 
       
    25 #include <hash.h>
       
    26 #include <Oma2Agent.h>
       
    27 #include "RoapMessage.h"
       
    28 #include "RoapDef.h"
       
    29 #include "OmaCrypto.h"
       
    30 #include "CMLACrypto.h"
       
    31 
       
    32 namespace Roap
       
    33 {
       
    34 
       
    35 // CLASS DECLARATION
       
    36 
       
    37 /**
       
    38 *  ?one_line_short_description.
       
    39 *  ?other_description_lines
       
    40 *
       
    41 *  @lib ?library
       
    42 *  @since Series ?XX ?SeriesXX_version
       
    43 */
       
    44 NONSHARABLE_CLASS( CMeteringReportReq ): public CRoapMessage
       
    45     {
       
    46     public:  // Constructors and destructor
       
    47         
       
    48         /**
       
    49         * Two-phased constructor.
       
    50         */
       
    51         static CMeteringReportReq* NewL();
       
    52         
       
    53         /**
       
    54         * Destructor.
       
    55         */
       
    56         virtual ~CMeteringReportReq();
       
    57 
       
    58     public: // New functions
       
    59         
       
    60         /**
       
    61         * ?member_description.
       
    62         * @since Series ?XX ?SeriesXX_version
       
    63         * @param ?arg1 ?description
       
    64         * @return ?description
       
    65         */
       
    66         //?type ?member_function( ?type ?arg1 );
       
    67 
       
    68         /**
       
    69         * Calculate MAC over <encryptedMeteringReport>
       
    70         * @since Series 60 3.2
       
    71         * @param None
       
    72         * @return None
       
    73         */
       
    74         void InsertMacL( const TDesC8& aMacKey );
       
    75 
       
    76     public: // Functions from base classes
       
    77 
       
    78         /**
       
    79         * From ?base_class ?member_description.
       
    80         * @since Series ?XX ?SeriesXX_version
       
    81         * @param ?arg1 ?description
       
    82         * @return ?description
       
    83         */
       
    84         virtual HBufC8* MessageAsXmlL(void);
       
    85         
       
    86     protected:  // New functions
       
    87         
       
    88         /**
       
    89         * ?member_description.
       
    90         * @since Series ?XX ?SeriesXX_version
       
    91         * @param ?arg1 ?description
       
    92         * @return ?description
       
    93         */
       
    94         //?type ?member_function( ?type ?arg1 );
       
    95 
       
    96     protected:  // Functions from base classes
       
    97         
       
    98         /**
       
    99         * From ?base_class ?member_description
       
   100         */
       
   101         //?type ?member_function();
       
   102 
       
   103     private:
       
   104 
       
   105         /**
       
   106         * C++ default constructor.
       
   107         */
       
   108         CMeteringReportReq();
       
   109 
       
   110         /**
       
   111         * By default Symbian 2nd phase constructor is private.
       
   112         */
       
   113         void ConstructL();
       
   114 
       
   115         // Prohibit copy constructor if not deriving from CBase.
       
   116         // CRightsReq( const CRightsReq& );
       
   117         // Prohibit assigment operator if not deriving from CBase.
       
   118         // CRightsReq& operator=( const CRightsReq& );
       
   119 
       
   120     public:     // Data
       
   121         // ?one_line_short_description_of_data
       
   122 
       
   123         TBuf8<SHA1_HASH> iDeviceId;
       
   124         TBuf8<SHA1_HASH> iRiId;
       
   125         TBuf8<SHA1_HASH> iEncKeyHash;
       
   126         TBuf8<KDeviceNonceLength> iNonce;
       
   127         TBuf8<KDeviceNonceLength> iReportNonce;
       
   128         TTime iTime;
       
   129         RPointerArray<HBufC8> iCertificateChain;
       
   130         HBufC8* iSignature;
       
   131         HBufC8* iCipherValue;
       
   132         HBufC8* iEncryptedMekAndMak;
       
   133         HBufC8* iMac;       
       
   134         // Optional nonce from the trigger
       
   135         HBufC8* iTriggerNonce;
       
   136         TKeyTransportScheme iAlgorithmInUse;
       
   137 
       
   138     protected:  // Data
       
   139         // ?one_line_short_description_of_data
       
   140         //?data_declaration;
       
   141 
       
   142     private:    // Data
       
   143         // ?one_line_short_description_of_data
       
   144         //?data_declaration;
       
   145          
       
   146         // Reserved pointer for future extension
       
   147         //TAny* iReserved;
       
   148 
       
   149     public:     // Friend classes
       
   150         //?friend_class_declaration;
       
   151     protected:  // Friend classes
       
   152         //?friend_class_declaration;
       
   153     private:    // Friend classes
       
   154         //?friend_class_declaration;
       
   155 
       
   156     };
       
   157 }
       
   158 
       
   159 #endif      // METERINGREPORTREQ_H   
       
   160             
       
   161 // End of File