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