|
1 /* |
|
2 * Copyright (c) 2006-2007 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 CNATFWUNSAFSHAREDSECRETREQUEST_H |
|
22 #define CNATFWUNSAFSHAREDSECRETREQUEST_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 #include "natfwunsafmessage.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 |
|
30 // CLASS DECLARATION |
|
31 /** |
|
32 * NATFWUNSAF Shared Secret Request message |
|
33 * |
|
34 * @lib natfwunsafprotocols.lib |
|
35 */ |
|
36 class CNATFWUNSAFSharedSecretRequest : public CNATFWUNSAFMessage |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Creates a CNATFWUNSAFSharedSecretRequest instance |
|
42 * @param aTransactionID NATFWUNSAF transaction ID |
|
43 * @return A new instance of CNATFWUNSAFSharedSecretRequest |
|
44 */ |
|
45 IMPORT_C static CNATFWUNSAFSharedSecretRequest* |
|
46 NewL(const TNATFWUNSAFTransactionID& aTransactionID); |
|
47 |
|
48 /** |
|
49 * Creates a CNATFWUNSAFSharedSecretRequest instance and pushes it to |
|
50 * CleanupStack |
|
51 * @param aTransactionID NATFWUNSAF transaction ID |
|
52 * @return A new instance of CNATFWUNSAFSharedSecretRequest |
|
53 */ |
|
54 IMPORT_C static CNATFWUNSAFSharedSecretRequest* |
|
55 NewLC(const TNATFWUNSAFTransactionID& aTransactionID); |
|
56 |
|
57 /** |
|
58 * Creates a CNATFWUNSAFSharedSecretRequest instance. |
|
59 * Used from lookup table. |
|
60 * @param aTransactionID NATFWUNSAF transaction ID |
|
61 * @return A new instance of CNATFWUNSAFMessage, |
|
62 * ownership is transferred. |
|
63 */ |
|
64 static CNATFWUNSAFMessage* |
|
65 CreateL(const TNATFWUNSAFTransactionID& aTransactionID); |
|
66 |
|
67 /** |
|
68 * Destructor, deletes the resources of CNATFWUNSAFSharedSecretRequest. |
|
69 */ |
|
70 ~CNATFWUNSAFSharedSecretRequest(); |
|
71 |
|
72 public: // From CNATFWUNSAFMessage |
|
73 |
|
74 TType Type() const; |
|
75 |
|
76 TBool Validate() const; |
|
77 |
|
78 TBool IsAllowed(TUint16 aAttributeType) const; |
|
79 |
|
80 private: // Constructors |
|
81 |
|
82 CNATFWUNSAFSharedSecretRequest( |
|
83 const TNATFWUNSAFTransactionID& aTransactionID); |
|
84 }; |
|
85 |
|
86 #endif // CNATFWUNSAFSHAREDSECRETREQUEST_H |
|
87 |
|
88 |