|
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 : TTlsTransStateBase.cpp |
|
15 // Part of : ConnectionMgr |
|
16 // implementation |
|
17 // Version : SIP/5.0 |
|
18 // |
|
19 |
|
20 |
|
21 |
|
22 #include "TTlsTransStateBase.h" |
|
23 #include "MTlsTransStateOwner.h" |
|
24 #include "CSender.h" |
|
25 |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // TTlsTransStateBase::EnterL |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 void TTlsTransStateBase::EnterL() |
|
32 { |
|
33 } |
|
34 |
|
35 // ----------------------------------------------------------------------------- |
|
36 // TTlsTransStateBase::ConnectionOpenL |
|
37 // ----------------------------------------------------------------------------- |
|
38 // |
|
39 TBool TTlsTransStateBase::ConnectionOpenL() |
|
40 { |
|
41 return EFalse; |
|
42 } |
|
43 |
|
44 // ----------------------------------------------------------------------------- |
|
45 // TTlsTransStateBase::DisconnectedL |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 TBool TTlsTransStateBase::DisconnectedL() |
|
49 { |
|
50 iOwner.Destroy(); |
|
51 return ETrue; |
|
52 } |
|
53 |
|
54 // ----------------------------------------------------------------------------- |
|
55 // TTlsTransStateBase::SendToNetL |
|
56 // ----------------------------------------------------------------------------- |
|
57 // |
|
58 void TTlsTransStateBase::SendToNetL( |
|
59 const TSIPTransportParams& aParams, |
|
60 const TInetAddr& aAddress, |
|
61 CSIPMessage& aMessage, |
|
62 TUint aOrigTransport, |
|
63 TRequestStatus& aStatus ) |
|
64 { |
|
65 // Send operations are queued until connection is established. |
|
66 iOwner.GetSender().SendL( aParams, |
|
67 aMessage, |
|
68 aAddress, |
|
69 aOrigTransport, |
|
70 aStatus, |
|
71 ETrue, |
|
72 EFalse ); |
|
73 } |
|
74 |
|
75 // ----------------------------------------------------------------------------- |
|
76 // TTlsTransStateBase::TTlsTransStateBase |
|
77 // ----------------------------------------------------------------------------- |
|
78 // |
|
79 TTlsTransStateBase::TTlsTransStateBase( |
|
80 MTlsTransStateOwner& aOwner ) : iOwner( aOwner ) |
|
81 { |
|
82 } |
|
83 |
|
84 // End of File |
|
85 |