Msrp/MsrpClient/inc/CMSRPSessionParams.h
branchMSRP_FrameWork
changeset 25 505ad3f0ce5c
equal deleted inserted replaced
22:f1578314b8da 25:505ad3f0ce5c
       
     1 /*
       
     2 * Copyright (c) 2009-2010 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 * Initial Contributors:
       
     9 * Nokia Corporation - initial contribution.
       
    10 * Contributors:
       
    11 *
       
    12 * Description:
       
    13 * MSRP Implementation
       
    14 *
       
    15 */
       
    16 
       
    17 #ifndef CMSRPSESSIONPARAMS_H_
       
    18 #define CMSRPSESSIONPARAMS_H_
       
    19 
       
    20 
       
    21 class CMSRPSessionParams : public CBase
       
    22     {
       
    23 public:
       
    24     
       
    25     /**
       
    26      * Creates the CMSRPSessionParams object required to set
       
    27      * some of the msrp session parameters
       
    28      */
       
    29     IMPORT_C static CMSRPSessionParams* NewL( );
       
    30     
       
    31     IMPORT_C ~CMSRPSessionParams();
       
    32     
       
    33 public:
       
    34     
       
    35     /**
       
    36      * Sets the Success and Failure Report headers in the msrp message.
       
    37      * This can be done at any point of time in an msrp session when there 
       
    38      * is a need to change these headers.
       
    39      * @param aSuccessReport Success Report header value EYes/ENo
       
    40      * @param aFailureReport Failure Report header value EYEs/ENo/EPartial
       
    41      * Giving the default values will not include the header in the message
       
    42      * SR value ignored as of now since REPORTs are not supported
       
    43      * SR header never addded in outgoing message
       
    44      */    
       
    45     IMPORT_C void SetReportHeadersL( TReportStatus aSuccessReport, TReportStatus aFailureReport );
       
    46     
       
    47     /**
       
    48      * Fetches the value of the Success Report header
       
    49      * @return SR header value
       
    50      */
       
    51     IMPORT_C TReportStatus SuccessReportHeader( );
       
    52     
       
    53     /**
       
    54      * Fetches the value of the Failure Report header
       
    55      * @return FR header value
       
    56      */
       
    57     IMPORT_C TReportStatus FailureReportHeader( );
       
    58     
       
    59 private:
       
    60     CMSRPSessionParams( );
       
    61     
       
    62 private:
       
    63         
       
    64     TReportStatus iSuccessReport;
       
    65     TReportStatus iFailureReport;
       
    66     
       
    67     };
       
    68 
       
    69 
       
    70 #endif /* CMSRPSESSIONPARAMS_H_ */