|
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_CSTUNCLIENTRESOLVINGUDP_H |
|
22 #define C_CSTUNCLIENTRESOLVINGUDP_H |
|
23 |
|
24 // INCLUDES |
|
25 #include "cstunclientstate.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * In this state, STUN client waits to receive the resolved UDP addresses of |
|
33 * the STUN server. |
|
34 */ |
|
35 class CSTUNClientResolvingUDP : public CSTUNClientState |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 CSTUNClientResolvingUDP( const CSTUNClientState& aGetSharedSecret, |
|
40 const CSTUNClientState& aReady ); |
|
41 |
|
42 ~CSTUNClientResolvingUDP(); |
|
43 |
|
44 public: // From CSTUNClientState |
|
45 |
|
46 void ResolvingCompletedL( CSTUNClientImplementation& aContext, |
|
47 TBool aObtainSharedSecret ) const; |
|
48 |
|
49 void ResolvingFailed( CSTUNClientImplementation& aContext, |
|
50 TInt aError ) const; |
|
51 |
|
52 private: |
|
53 |
|
54 CSTUNClientResolvingUDP(); |
|
55 |
|
56 CSTUNClientResolvingUDP( const CSTUNClientResolvingUDP& aResolvingUDP ); |
|
57 |
|
58 private: // Data |
|
59 |
|
60 //Next possible states |
|
61 const CSTUNClientState& iGetSharedSecret; |
|
62 const CSTUNClientState& iReady; |
|
63 }; |
|
64 |
|
65 #endif // C_CSTUNCLIENTRESOLVINGTCP_H |