|
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 "cstunsharedsecretwaittoretry.h" |
|
23 #include "cstunsharedsecret.h" |
|
24 |
|
25 |
|
26 // ======== MEMBER FUNCTIONS ======== |
|
27 |
|
28 // --------------------------------------------------------------------------- |
|
29 // CSTUNSharedSecretWaitToRetry::CSTUNSharedSecretWaitToRetry |
|
30 // --------------------------------------------------------------------------- |
|
31 // |
|
32 CSTUNSharedSecretWaitToRetry::CSTUNSharedSecretWaitToRetry() |
|
33 { |
|
34 } |
|
35 |
|
36 // --------------------------------------------------------------------------- |
|
37 // CSTUNSharedSecretWaitToRetry::CSTUNSharedSecretWaitToRetry |
|
38 // Dummy implementation, as copy constructor is declared private and not used. |
|
39 // --------------------------------------------------------------------------- |
|
40 // |
|
41 CSTUNSharedSecretWaitToRetry::CSTUNSharedSecretWaitToRetry( |
|
42 const CSTUNSharedSecretWaitToRetry& /*aWaitToRetry*/ ) : |
|
43 CSTUNSharedSecretState() |
|
44 { |
|
45 } |
|
46 |
|
47 // --------------------------------------------------------------------------- |
|
48 // CSTUNSharedSecretWaitToRetry::~CSTUNSharedSecretWaitToRetry |
|
49 // --------------------------------------------------------------------------- |
|
50 // |
|
51 CSTUNSharedSecretWaitToRetry::~CSTUNSharedSecretWaitToRetry() |
|
52 { |
|
53 iWaitResponse = NULL; |
|
54 } |
|
55 |
|
56 // --------------------------------------------------------------------------- |
|
57 // CSTUNSharedSecretWaitToRetry::SetNeighbourStates |
|
58 // --------------------------------------------------------------------------- |
|
59 // |
|
60 void CSTUNSharedSecretWaitToRetry::SetNeighbourStates( |
|
61 const CSTUNSharedSecretState& aWaitResponse ) |
|
62 { |
|
63 iWaitResponse = &aWaitResponse; |
|
64 } |
|
65 |
|
66 // --------------------------------------------------------------------------- |
|
67 // CSTUNSharedSecretWaitToRetry::TimerExpiredL |
|
68 // --------------------------------------------------------------------------- |
|
69 // |
|
70 void CSTUNSharedSecretWaitToRetry::TimerExpiredL( |
|
71 CSTUNSharedSecret& aContext ) const |
|
72 { |
|
73 aContext.SendRequestL(); |
|
74 aContext.ChangeState( iWaitResponse ); |
|
75 } |