|
1 // Copyright (c) 2004-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 : TStateBase.cpp |
|
15 // Part of : ConnectionMgr |
|
16 // Implementation |
|
17 // Version : SIP/4.0 |
|
18 // |
|
19 |
|
20 |
|
21 |
|
22 #include "TStateBase.h" |
|
23 #include "siperr.h" |
|
24 |
|
25 // ---------------------------------------------------------------------------- |
|
26 // TStateBase::TStateBase |
|
27 // ---------------------------------------------------------------------------- |
|
28 // |
|
29 TStateBase::TStateBase( MStateModel& aOwner, MSIPConnectionContext& aContext ) |
|
30 : iOwner( aOwner ), iContext( aContext ) |
|
31 { |
|
32 } |
|
33 |
|
34 // ---------------------------------------------------------------------------- |
|
35 // TStateBase::SendL |
|
36 // ---------------------------------------------------------------------------- |
|
37 // |
|
38 void TStateBase::SendL( const TSIPTransportParams& /*aParams*/, |
|
39 CSIPRequest& /*aRequest*/, |
|
40 TBool /*aForceUDP*/, |
|
41 const CUri8* /*aOutboundProxy*/, |
|
42 const TInetAddr& /*aRemoteAddr*/, |
|
43 TRequestStatus& aStatus ) |
|
44 { |
|
45 TRequestStatus* status = &aStatus; |
|
46 User::RequestComplete( status, KErrSIPTransportFailure ); |
|
47 } |
|
48 |
|
49 // ---------------------------------------------------------------------------- |
|
50 // TStateBase::SendL |
|
51 // ---------------------------------------------------------------------------- |
|
52 // |
|
53 void TStateBase::SendL( const TSIPTransportParams& /*aParams*/, |
|
54 CSIPResponse& /*aResponse*/, |
|
55 TTransactionId /*aId*/, |
|
56 TRequestStatus& aStatus ) |
|
57 { |
|
58 TRequestStatus* status = &aStatus; |
|
59 User::RequestComplete( status, KErrSIPTransportFailure ); |
|
60 } |
|
61 |
|
62 // ---------------------------------------------------------------------------- |
|
63 // TStateBase::Enter |
|
64 // ---------------------------------------------------------------------------- |
|
65 // |
|
66 void TStateBase::Enter( TInt /*aError*/ ) |
|
67 { |
|
68 // Do nothing |
|
69 } |
|
70 |
|
71 // ---------------------------------------------------------------------------- |
|
72 // TStateBase::Exit |
|
73 // ---------------------------------------------------------------------------- |
|
74 // |
|
75 void TStateBase::Exit() |
|
76 { |
|
77 // Do nothing |
|
78 } |
|
79 |
|
80 // ---------------------------------------------------------------------------- |
|
81 // TStateBase::NetworkStateChanged |
|
82 // ---------------------------------------------------------------------------- |
|
83 // |
|
84 void TStateBase::NetworkStateChanged( |
|
85 MSIPNetworkObserver::TNetworkState /*aState*/, |
|
86 TInt /*aError*/ ) |
|
87 { |
|
88 // Do nothing |
|
89 } |
|
90 |
|
91 // ---------------------------------------------------------------------------- |
|
92 // TStateBase::EnterState |
|
93 // ---------------------------------------------------------------------------- |
|
94 // |
|
95 void TStateBase::EnterState( MStateModel::TState aState, TInt aError ) |
|
96 { |
|
97 iOwner.EnterState( aState, aError ); |
|
98 } |