Msrp/MsrpHeader/inc/CMsrpReport.h
branchMSRP_FrameWork
changeset 58 cdb720e67852
child 59 b365c991829c
equal deleted inserted replaced
25:505ad3f0ce5c 58:cdb720e67852
       
     1 /*
       
     2 * ==============================================================================
       
     3 *  Name        : CMSRPReport.h
       
     4 *  Part of     : MSRP
       
     5 *  Description : MSRP report header
       
     6 *  Version     : %version: 1 % << Don't touch! Updated by Synergy at check-out.
       
     7 *
       
     8 *  Copyright © 2009 Nokia. All rights reserved.
       
     9 *  This material, including documentation and any related
       
    10 *  computer programs, is protected by copyright controlled by
       
    11 *  Nokia Corporation. All rights are reserved. Copying,
       
    12 *  including reproducing, storing, adapting or translating, any
       
    13 *  or all of this material requires the prior written consent of
       
    14 *  Nokia Corporation. This material also contains confidential
       
    15 *  information which may not be disclosed to others without the
       
    16 *  prior written consent of Nokia Corporation.
       
    17 * ==============================================================================
       
    18 */
       
    19 
       
    20 #ifndef CMSRPREPORT_H
       
    21 #define CMSRPREPORT_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <s32strm.h>
       
    26 
       
    27 #include "CMSRPMessageBase.h"
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  @publishedAll
       
    33 *
       
    34 *  Class provides functions for creation and manipulation of MSRP headers
       
    35 */
       
    36 class CMSRPReport : public CMSRPMessageBase
       
    37     {
       
    38     public:  // Constructors and destructor
       
    39 
       
    40         /**
       
    41         * Constructor.
       
    42         */
       
    43 	    IMPORT_C CMSRPReport();
       
    44 
       
    45         /**
       
    46         * Destructor.
       
    47         */
       
    48 		IMPORT_C ~CMSRPReport();
       
    49 
       
    50     public: // New functions
       
    51 
       
    52 		/**
       
    53 		* Check if the given externalised buffer contains MSRP Report
       
    54  		* @param aBuffer a Buffer containing the value of the
       
    55 		*        externalized object
       
    56 		* @return true if Buffer contains MSRP report
       
    57 		*/
       
    58 		IMPORT_C static TBool IsReport( const TDesC8& aBuffer );
       
    59 
       
    60 		/**
       
    61 		* Internalizes the class from given stream
       
    62  		* @param aReadStream a stream containing the value of the
       
    63 		*        externalized object
       
    64 		* @return Internalized CMSRPReport object, ownership is transferred
       
    65 		*/
       
    66 		IMPORT_C static CMSRPReport* InternalizeL( RReadStream& aReadStream );
       
    67 
       
    68 	public: // from base classes
       
    69 
       
    70 		// from CMSRPMessageBase
       
    71 		IMPORT_C void ExternalizeL( RWriteStream& aWriteStream );
       
    72 
       
    73     private:
       
    74 
       
    75         /**
       
    76         * Internalizes this message
       
    77  		* @param aReadStream a stream containing the value of the
       
    78 		*        externalized object (header name not included).
       
    79         */
       
    80 	    void DoInternalizeL( RReadStream& aReadStream  );
       
    81 	};
       
    82 
       
    83 #endif // CMSRPREPORT_H
       
    84 
       
    85 // End of File