|
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 "cstunbindingwaittoretry.h" |
|
22 #include "natfwbindingimplementationbase.h" |
|
23 |
|
24 // ======== MEMBER FUNCTIONS ======== |
|
25 |
|
26 // --------------------------------------------------------------------------- |
|
27 // CSTUNBindingWaitToRetry::CSTUNBindingWaitToRetry |
|
28 // --------------------------------------------------------------------------- |
|
29 // |
|
30 CSTUNBindingWaitToRetry::CSTUNBindingWaitToRetry( |
|
31 CSTUNBindingState& aGetSharedSecret ) : |
|
32 iGetSharedSecret( aGetSharedSecret ) |
|
33 { |
|
34 } |
|
35 |
|
36 // --------------------------------------------------------------------------- |
|
37 // CSTUNBindingWaitToRetry::CSTUNBindingWaitToRetry |
|
38 // Dummy implementation. Default constructor is declared private and not used. |
|
39 // --------------------------------------------------------------------------- |
|
40 // |
|
41 CSTUNBindingWaitToRetry::CSTUNBindingWaitToRetry() : |
|
42 iGetSharedSecret( *(CSTUNBindingState*)0x1 ) |
|
43 { |
|
44 } |
|
45 |
|
46 // --------------------------------------------------------------------------- |
|
47 // CSTUNBindingWaitToRetry::CSTUNBindingWaitToRetry |
|
48 // Dummy implementation, as copy constructor is declared private and not used. |
|
49 // --------------------------------------------------------------------------- |
|
50 // |
|
51 CSTUNBindingWaitToRetry::CSTUNBindingWaitToRetry( |
|
52 const CSTUNBindingWaitToRetry& aWaitToRetry ) : |
|
53 CSTUNBindingState(), |
|
54 iGetSharedSecret( aWaitToRetry.iGetSharedSecret ) |
|
55 { |
|
56 } |
|
57 |
|
58 // --------------------------------------------------------------------------- |
|
59 // CSTUNBindingWaitToRetry::~CSTUNBindingWaitToRetry |
|
60 // --------------------------------------------------------------------------- |
|
61 // |
|
62 CSTUNBindingWaitToRetry::~CSTUNBindingWaitToRetry() |
|
63 { |
|
64 } |
|
65 |
|
66 // --------------------------------------------------------------------------- |
|
67 // CSTUNBindingWaitToRetry::TimerExpiredL |
|
68 // --------------------------------------------------------------------------- |
|
69 // |
|
70 void CSTUNBindingWaitToRetry::TimerExpiredL( |
|
71 CBindingImplementation& aContext ) const |
|
72 { |
|
73 aContext.ChangeState( iGetSharedSecret ); |
|
74 aContext.GetSharedSecretL(); |
|
75 } |
|
76 |
|
77 // --------------------------------------------------------------------------- |
|
78 // CSTUNBindingWaitToRetry::SendRequestL |
|
79 // No action, since obtaining a binding will soon be started. |
|
80 // --------------------------------------------------------------------------- |
|
81 // |
|
82 void CSTUNBindingWaitToRetry::SendRequestL( |
|
83 CBindingImplementation& /*aContext*/ ) const |
|
84 { |
|
85 } |
|
86 |
|
87 |