|
1 // Copyright (c) 2006-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 : ClearProxy.cpp |
|
15 // Part of : Transaction |
|
16 // Version : SIP/5.0 |
|
17 // |
|
18 |
|
19 |
|
20 |
|
21 #include "SipAssert.h" |
|
22 #include "ClientTransaction.h" |
|
23 #include "ClearProxy.h" |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // TClearProxy::TClearProxy |
|
27 // ----------------------------------------------------------------------------- |
|
28 // |
|
29 TClearProxy::TClearProxy(CClientTransaction& aTransaction) : |
|
30 iTransaction(aTransaction) |
|
31 { |
|
32 } |
|
33 |
|
34 // ----------------------------------------------------------------------------- |
|
35 // TClearProxy::CleanupItem |
|
36 // ----------------------------------------------------------------------------- |
|
37 // |
|
38 TCleanupItem TClearProxy::CleanupItem() |
|
39 { |
|
40 return TCleanupItem(ClearOutboundProxy, this); |
|
41 } |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // TClearProxy::ClearOutboundProxy |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 void TClearProxy::ClearOutboundProxy(TAny* aItem) |
|
48 { |
|
49 __SIP_ASSERT_RETURN(aItem, KErrArgument); |
|
50 |
|
51 reinterpret_cast<TClearProxy*>(aItem)->iTransaction.ClearProxy(); |
|
52 } |