|
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_CSTUNBINDINGGETSHAREDSECRET_H |
|
22 #define C_CSTUNBINDINGGETSHAREDSECRET_H |
|
23 |
|
24 // INCLUDES |
|
25 #include "cstunbindingstate.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * In this state, the binding is waiting to get a shared secret. |
|
33 * |
|
34 * @lib ?library |
|
35 * @since S60 ?S60_version *** for example, S60 v3.0 |
|
36 */ |
|
37 class CSTUNBindingGetSharedSecret : public CSTUNBindingState |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Constructor |
|
43 * @param aGetAddress GetAddress state |
|
44 */ |
|
45 CSTUNBindingGetSharedSecret( CSTUNBindingState& aGetAddress ); |
|
46 |
|
47 /** |
|
48 * Destructor |
|
49 */ |
|
50 virtual ~CSTUNBindingGetSharedSecret(); |
|
51 |
|
52 public: // From CSTUNBindingState |
|
53 |
|
54 void SharedSecretObtainedL( CBindingImplementation& aContext, |
|
55 const TDesC8& aUsername, |
|
56 const TDesC8& aPassword ) const; |
|
57 |
|
58 void SendRequestL( CBindingImplementation& aContext ) const; |
|
59 |
|
60 private: |
|
61 |
|
62 CSTUNBindingGetSharedSecret(); |
|
63 |
|
64 CSTUNBindingGetSharedSecret( |
|
65 const CSTUNBindingGetSharedSecret& aGetSharedSecret ); |
|
66 |
|
67 private: // Data |
|
68 |
|
69 //Next possible states |
|
70 CSTUNBindingState& iGetPublicAddress; |
|
71 }; |
|
72 |
|
73 #endif // C_CSTUNBINDINGGETSHAREDSECRET_H |