|
1 /* |
|
2 * Copyright (c) 2005 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #include "stunassert.h" |
|
22 #include "cstunclientstate.h" |
|
23 |
|
24 |
|
25 // ======== MEMBER FUNCTIONS ======== |
|
26 |
|
27 // --------------------------------------------------------------------------- |
|
28 // CSTUNClientState::CSTUNClientState |
|
29 // --------------------------------------------------------------------------- |
|
30 // |
|
31 CSTUNClientState::CSTUNClientState() |
|
32 { |
|
33 } |
|
34 |
|
35 // --------------------------------------------------------------------------- |
|
36 // CSTUNClientState::CSTUNClientState |
|
37 // Dummy implementation, as copy constructor is declared private and not used. |
|
38 // --------------------------------------------------------------------------- |
|
39 // |
|
40 CSTUNClientState::CSTUNClientState( const CSTUNClientState& /*aState*/ ) : |
|
41 CBase() |
|
42 { |
|
43 } |
|
44 |
|
45 // --------------------------------------------------------------------------- |
|
46 // CSTUNClientState::~CSTUNClientState |
|
47 // --------------------------------------------------------------------------- |
|
48 // |
|
49 CSTUNClientState::~CSTUNClientState() |
|
50 { |
|
51 } |
|
52 |
|
53 // --------------------------------------------------------------------------- |
|
54 // CSTUNClientState::ResolvingCompletedL |
|
55 // This function should never be called. If it is called, then the actual |
|
56 // state is missing the event handler. |
|
57 // --------------------------------------------------------------------------- |
|
58 // |
|
59 void CSTUNClientState::ResolvingCompletedL( |
|
60 CSTUNClientImplementation& /*aContext*/, |
|
61 TBool /*aObtainSharedSecret*/ ) const |
|
62 { |
|
63 __STUN_FAILURE_L( KErrGeneral ); |
|
64 } |
|
65 |
|
66 // --------------------------------------------------------------------------- |
|
67 // CSTUNClientState::ResolvingFailed |
|
68 // This function should never be called. If it is called, then the actual |
|
69 // state is missing the event handler. |
|
70 // --------------------------------------------------------------------------- |
|
71 // |
|
72 void |
|
73 CSTUNClientState::ResolvingFailed( CSTUNClientImplementation& /*aContext*/, |
|
74 TInt aError ) const |
|
75 { |
|
76 __STUN_ASSERT_RETURN( aError != KErrNone, KErrArgument ); |
|
77 __STUN_FAILURE_RETURN( KErrGeneral ); |
|
78 } |
|
79 |
|
80 // --------------------------------------------------------------------------- |
|
81 // CSTUNClientState::SharedSecretReceivedL |
|
82 // This function should never be called. If it is called, then the actual |
|
83 // state is missing the event handler. |
|
84 // --------------------------------------------------------------------------- |
|
85 // |
|
86 void CSTUNClientState::SharedSecretReceivedL( |
|
87 CSTUNClientImplementation& /*aContext*/ ) const |
|
88 { |
|
89 __STUN_FAILURE_L( KErrGeneral ); |
|
90 } |
|
91 |
|
92 // --------------------------------------------------------------------------- |
|
93 // CSTUNClientState::SharedSecretErrorL |
|
94 // This function should never be called. If it is called, then the actual |
|
95 // state is missing the event handler. |
|
96 // --------------------------------------------------------------------------- |
|
97 // |
|
98 void CSTUNClientState::SharedSecretErrorL( |
|
99 CSTUNClientImplementation& /*aContext*/, |
|
100 TInt aError ) const |
|
101 { |
|
102 __STUN_ASSERT_L( aError != KErrNone, KErrArgument ); |
|
103 __STUN_FAILURE_L( KErrGeneral ); |
|
104 } |
|
105 |
|
106 // --------------------------------------------------------------------------- |
|
107 // CSTUNClientState::ObtainSharedSecretL |
|
108 // This function should never be called. If it is called, then the actual |
|
109 // state is missing the event handler. |
|
110 // --------------------------------------------------------------------------- |
|
111 // |
|
112 void |
|
113 CSTUNClientState::ObtainSharedSecretL( CSTUNClientImplementation& /*aContext*/, |
|
114 CBinding& /*aBinding*/ ) const |
|
115 { |
|
116 __STUN_FAILURE_L( KErrGeneral ); |
|
117 } |
|
118 |
|
119 // --------------------------------------------------------------------------- |
|
120 // CSTUNClientState::SharedSecretRejectedL |
|
121 // This function should never be called. If it is called, then the actual |
|
122 // state is missing the event handler. |
|
123 // --------------------------------------------------------------------------- |
|
124 // |
|
125 TBool CSTUNClientState::SharedSecretRejectedL( |
|
126 CSTUNClientImplementation& /*aContext*/, |
|
127 const CBinding& /*aBinding*/, |
|
128 const TDesC8& /*aUsername*/, |
|
129 const TDesC8& /*aPassword*/ ) const |
|
130 { |
|
131 __STUN_FAILURE_L( KErrGeneral ); |
|
132 return EFalse; |
|
133 } |