multimediacommsengine/tsrc/MMCTestDriver/MCETester/src/SIPRelated/TTcSIPReceived.cpp
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 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:    Implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include <sipinvitedialogassoc.h>
       
    21 #include <sipsubscribedialogassoc.h>
       
    22 #include <sipnotifydialogassoc.h>
       
    23 #include <sipreferdialogassoc.h>
       
    24 
       
    25 #include <sipstrings.h>
       
    26 #include "SipStrConsts.h"
       
    27 #include "TTcSIPReceived.h"
       
    28 
       
    29 TTcSIPReceived::TTcSIPReceived()
       
    30 	: iClientTransaction( NULL ),
       
    31 	  iDialog( NULL ),
       
    32 	  iInviteDialogAssoc( NULL ),
       
    33       iNotifyDialogAssoc( NULL ),
       
    34 	  iSubscribeDialogAssoc( NULL ),
       
    35       iReferDialogAssoc( NULL ),
       
    36 	  iRefresh( NULL ),
       
    37 	  iRegistration( NULL ),
       
    38 	  iServerTransaction( NULL ),
       
    39 	  iTransactionBase( NULL ),
       
    40 	  iIapId( 0 ),
       
    41 	  iError( KErrNone )
       
    42 	{
       
    43 	}
       
    44 
       
    45 TTcSIPReceived::~TTcSIPReceived()
       
    46 	{
       
    47 	}
       
    48 
       
    49 void TTcSIPReceived::Set( const CSIPClientTransaction* aTransaction )
       
    50 	{
       
    51 	iClientTransaction = aTransaction;
       
    52 	}
       
    53 
       
    54 void TTcSIPReceived::Set( const CSIPDialog* aDialog )
       
    55 	{
       
    56 	iDialog = aDialog;
       
    57 	}
       
    58 
       
    59 void TTcSIPReceived::Set( const CSIPDialogAssocBase* aDialogAssoc )
       
    60 	{
       
    61 	if( aDialogAssoc->Type() == SIPStrings::StringF( SipStrConsts::EInvite ) )
       
    62 		{
       
    63 		iInviteDialogAssoc = static_cast< const CSIPInviteDialogAssoc* >( aDialogAssoc );
       
    64 		}
       
    65 	if( aDialogAssoc->Type() == SIPStrings::StringF( SipStrConsts::ESubscribe ) )
       
    66 		{
       
    67 		iSubscribeDialogAssoc = static_cast< const CSIPSubscribeDialogAssoc* >( aDialogAssoc );
       
    68 		}
       
    69 	if( aDialogAssoc->Type() == SIPStrings::StringF( SipStrConsts::ERefer ) )
       
    70 		{
       
    71 		iReferDialogAssoc = static_cast< const CSIPReferDialogAssoc* >( aDialogAssoc );
       
    72 		}
       
    73 	if( aDialogAssoc->Type() == SIPStrings::StringF( SipStrConsts::ENotify ) )
       
    74 		{
       
    75 		iNotifyDialogAssoc = static_cast< const CSIPNotifyDialogAssoc* >( aDialogAssoc );
       
    76 		}
       
    77 	}
       
    78 
       
    79 void TTcSIPReceived::Set( const CSIPInviteDialogAssoc* aDialogAssoc )
       
    80 	{
       
    81 	iInviteDialogAssoc = aDialogAssoc;
       
    82 	}
       
    83 
       
    84 void TTcSIPReceived::Set( const CSIPNotifyDialogAssoc* aDialogAssoc )
       
    85 	{
       
    86 	iNotifyDialogAssoc = aDialogAssoc;
       
    87 	}
       
    88 
       
    89 void TTcSIPReceived::Set( const CSIPReferDialogAssoc* aDialogAssoc )
       
    90 	{
       
    91 	iReferDialogAssoc = aDialogAssoc;
       
    92 	}
       
    93 
       
    94 void TTcSIPReceived::Set( const CSIPRefresh* aRefresh )
       
    95 	{
       
    96 	iRefresh = aRefresh;
       
    97 	}
       
    98 
       
    99 void TTcSIPReceived::Set( const CSIPRegistrationBinding* aRegistration )
       
   100 	{
       
   101 	iRegistration = aRegistration;
       
   102 	}
       
   103 
       
   104 void TTcSIPReceived::Set( const CSIPServerTransaction* aTransaction )
       
   105 	{
       
   106 	iServerTransaction = aTransaction;
       
   107 	}
       
   108 
       
   109 void TTcSIPReceived::Set( const CSIPTransactionBase* aTransactionBase )
       
   110 	{
       
   111 	iTransactionBase = aTransactionBase;
       
   112 	}
       
   113 
       
   114 void TTcSIPReceived::Set( TInt aIapId )
       
   115 	{
       
   116 	iIapId = aIapId;
       
   117 	}
       
   118 
       
   119 void TTcSIPReceived::SetError( TInt aError )
       
   120 	{
       
   121 	iError = aError;
       
   122 	}