|
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 CNATFWUNSAFREMOTEADDRESSATTRIBUTE_H |
|
22 #define CNATFWUNSAFREMOTEADDRESSATTRIBUTE_H |
|
23 |
|
24 #include "natfwunsafaddressattribute.h" |
|
25 |
|
26 /** |
|
27 * Class for REMOTE-ADDRESS attribute. |
|
28 * |
|
29 * @lib natfwunsafprotocols.lib |
|
30 * @since S60 3.2 |
|
31 */ |
|
32 class CNATFWUNSAFRemoteAddressAttribute : |
|
33 public CNATFWUNSAFAddressAttribute |
|
34 { |
|
35 public: // Constructors and destructor |
|
36 |
|
37 /** |
|
38 * Decodes a UNSAF attribute from a byte stream. |
|
39 * This version is for lookup table. |
|
40 * @param aByteStream Byte stream, containing attribute type,length and |
|
41 * value. |
|
42 * @return Decoded UNSAF attribute, ownership is transferred. |
|
43 */ |
|
44 static CNATFWUNSAFAttribute* DecodeAttributeL( |
|
45 const TDesC8& aByteStream); |
|
46 |
|
47 /** |
|
48 * Creates a new instance of CNATFWUNSAFRemoteAddressAttribute |
|
49 * @param aAddress the address |
|
50 * @return A new instance of CNATFWUNSAFRemoteAddressAttribute |
|
51 * ownership is transferred. |
|
52 */ |
|
53 IMPORT_C static CNATFWUNSAFRemoteAddressAttribute* NewL( |
|
54 const TInetAddr& aAddress); |
|
55 |
|
56 /** |
|
57 * Creates a new instance of CNATFWUNSAFRemoteAddressAttribute and |
|
58 * pushes it to the CleanupStack. |
|
59 * @param aAddress the address |
|
60 * @return A new instance of CNATFWUNSAFRemoteAddressAttribute, |
|
61 * ownership is transferred. |
|
62 */ |
|
63 IMPORT_C static CNATFWUNSAFRemoteAddressAttribute* NewLC( |
|
64 const TInetAddr& aAddress); |
|
65 |
|
66 /** |
|
67 * Destructor, deletes the resources of |
|
68 * CNATFWUNSAFRemoteAddressAttribute. |
|
69 */ |
|
70 ~CNATFWUNSAFRemoteAddressAttribute(); |
|
71 |
|
72 public: // From CNATFWUNSAFAttribute |
|
73 |
|
74 CNATFWUNSAFAttribute::TType Type() const; |
|
75 |
|
76 private: // Constructors |
|
77 |
|
78 CNATFWUNSAFRemoteAddressAttribute(const TInetAddr& aAddress); |
|
79 }; |
|
80 |
|
81 #endif // CNATFWUNSAFREMOTEADDRESSATTRIBUTE_H |
|
82 |
|
83 |