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