Msrp/MsrpClient/src/CMSRPSessionParams.cpp
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 
       
    18 //  Include Files
       
    19 #include "MsrpCommon.h"
       
    20 #include "CMSRPSessionParams.h"
       
    21 
       
    22 
       
    23 //  Member Functions
       
    24 
       
    25 EXPORT_C CMSRPSessionParams* CMSRPSessionParams::NewL( )
       
    26     {
       
    27     CMSRPSessionParams* self = new ( ELeave ) CMSRPSessionParams( );
       
    28     return self;
       
    29     }
       
    30 
       
    31 
       
    32 EXPORT_C CMSRPSessionParams::~CMSRPSessionParams()
       
    33     {
       
    34     }
       
    35 
       
    36 
       
    37 CMSRPSessionParams::CMSRPSessionParams( ) : iSuccessReport(ENo),
       
    38                                             iFailureReport(EYes)
       
    39     {
       
    40     }
       
    41 
       
    42 
       
    43 EXPORT_C void CMSRPSessionParams::SetReportHeadersL( TReportStatus aSuccessReport, TReportStatus aFailureReport )
       
    44     {
       
    45     if(aSuccessReport == EPartial)
       
    46         {
       
    47         User::Leave( KErrArgument );
       
    48         }
       
    49     iSuccessReport = ENo;   // Since Reports are not supported now, the SR value given is ignored
       
    50     iFailureReport = aFailureReport;
       
    51     }
       
    52 
       
    53 
       
    54 EXPORT_C TReportStatus CMSRPSessionParams::SuccessReportHeader( )
       
    55     {
       
    56     return iSuccessReport;
       
    57     }
       
    58 
       
    59 
       
    60 EXPORT_C TReportStatus CMSRPSessionParams::FailureReportHeader( )
       
    61     {
       
    62     return iFailureReport;
       
    63     }