|
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 #ifndef C_CSTUNBINDINGWAITTORETRY_H |
|
22 #define C_CSTUNBINDINGWAITTORETRY_H |
|
23 |
|
24 // INCLUDES |
|
25 #include "cstunbindingstate.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * In this state, binding waits a while before retrying to send a Binding |
|
33 * Request. This state is entered after a Binding Error Response with code |
|
34 * 5xx is received. |
|
35 */ |
|
36 class CSTUNBindingWaitToRetry : public CSTUNBindingState |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Constructor |
|
42 * @param aGetSharedSecret GetSharedSecret state |
|
43 */ |
|
44 CSTUNBindingWaitToRetry( CSTUNBindingState& aGetSharedSecret ); |
|
45 |
|
46 /** |
|
47 * Destructor |
|
48 */ |
|
49 virtual ~CSTUNBindingWaitToRetry(); |
|
50 |
|
51 public: // From CSTUNBindingState |
|
52 |
|
53 void TimerExpiredL( CBindingImplementation& aContext ) const; |
|
54 |
|
55 void SendRequestL( CBindingImplementation& aContext ) const; |
|
56 |
|
57 private: |
|
58 |
|
59 CSTUNBindingWaitToRetry(); |
|
60 |
|
61 CSTUNBindingWaitToRetry( const CSTUNBindingWaitToRetry& aWaitToRetry ); |
|
62 |
|
63 private: // Data |
|
64 |
|
65 //Next possible states |
|
66 CSTUNBindingState& iGetSharedSecret; |
|
67 }; |
|
68 |
|
69 #endif // C_CSTUNBINDINGWAITTORETRY_H |