realtimenetprots/sipfw/SIP/sipapi/src/pendingtransaction.cpp
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Name          : pendingtransaction.cpp
       
    15 // Part of       : SIPAPI
       
    16 // Version       : SIP/4.0
       
    17 //
       
    18 
       
    19 
       
    20 
       
    21 #include "SipAssert.h"
       
    22 #include "PendingTransaction.h"
       
    23 
       
    24 
       
    25 // -----------------------------------------------------------------------------
       
    26 // CPendingTransaction::NewLC
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 CPendingTransaction*
       
    30 CPendingTransaction::NewLC(CSIPServerTransaction* aTransaction, TUint32 aIapId)
       
    31     {
       
    32     __SIP_ASSERT_LEAVE(aTransaction, KErrArgument);
       
    33 
       
    34 	CPendingTransaction* self =
       
    35 		new (ELeave) CPendingTransaction(aTransaction, aIapId);
       
    36 	CleanupStack::PushL(self);
       
    37 	return self;
       
    38     }
       
    39 
       
    40 // -----------------------------------------------------------------------------
       
    41 // CPendingTransaction::CPendingTransaction
       
    42 // -----------------------------------------------------------------------------
       
    43 //
       
    44 CPendingTransaction::CPendingTransaction(CSIPServerTransaction* aTransaction,
       
    45                                     	 TUint32 aIapId) :
       
    46     iTransaction(aTransaction),
       
    47     iIapId(aIapId)
       
    48     {
       
    49     __ASSERT_DEBUG(aTransaction,
       
    50 		User::Panic(_L("CPendingTa::CPendingTa() ta = 0"),
       
    51 		KErrArgument));
       
    52     }
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // CPendingTransaction::~CPendingTransaction
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 CPendingTransaction::~CPendingTransaction()
       
    59     {    
       
    60     }
       
    61 
       
    62 // -----------------------------------------------------------------------------
       
    63 // CPendingTransaction::Transaction
       
    64 // -----------------------------------------------------------------------------
       
    65 //
       
    66 CSIPServerTransaction* CPendingTransaction::Transaction()
       
    67     {
       
    68     return iTransaction;
       
    69     }
       
    70 
       
    71 // -----------------------------------------------------------------------------
       
    72 // CPendingTransaction::IapId
       
    73 // -----------------------------------------------------------------------------
       
    74 //	
       
    75 TUint32 CPendingTransaction::IapId() const
       
    76     {
       
    77     return iIapId;
       
    78     }