|
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 #include "natfwunsafdataattribute.h" |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // CNATFWUNSAFDataAttribute::NewL |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 EXPORT_C CNATFWUNSAFDataAttribute* CNATFWUNSAFDataAttribute::NewL( |
|
28 const TDesC8& aData) |
|
29 { |
|
30 CNATFWUNSAFDataAttribute* self = CNATFWUNSAFDataAttribute::NewLC( |
|
31 aData); |
|
32 CleanupStack::Pop(self); |
|
33 return self; |
|
34 } |
|
35 |
|
36 // ----------------------------------------------------------------------------- |
|
37 // CNATFWUNSAFDataAttribute::NewLC |
|
38 // ----------------------------------------------------------------------------- |
|
39 // |
|
40 EXPORT_C CNATFWUNSAFDataAttribute* CNATFWUNSAFDataAttribute::NewLC( |
|
41 const TDesC8& aData) |
|
42 { |
|
43 CNATFWUNSAFDataAttribute* self = |
|
44 new (ELeave) CNATFWUNSAFDataAttribute(); |
|
45 CleanupStack::PushL(self); |
|
46 self->CNATFWUNSAFTextAttribute::ConstructL(aData); |
|
47 return self; |
|
48 } |
|
49 |
|
50 // ----------------------------------------------------------------------------- |
|
51 // CNATFWUNSAFDataAttribute::DecodeAttributeL |
|
52 // ----------------------------------------------------------------------------- |
|
53 // |
|
54 CNATFWUNSAFAttribute* |
|
55 CNATFWUNSAFDataAttribute::DecodeAttributeL(const TDesC8& aByteStream) |
|
56 { |
|
57 CNATFWUNSAFDataAttribute* self = |
|
58 new (ELeave) CNATFWUNSAFDataAttribute(); |
|
59 CleanupStack::PushL(self); |
|
60 self->DecodeL(aByteStream); |
|
61 CleanupStack::Pop(self); |
|
62 return self; |
|
63 } |
|
64 |
|
65 // ----------------------------------------------------------------------------- |
|
66 // CNATFWUNSAFDataAttribute::CNATFWUNSAFDataAttribute |
|
67 // ----------------------------------------------------------------------------- |
|
68 // |
|
69 CNATFWUNSAFDataAttribute::CNATFWUNSAFDataAttribute() |
|
70 { |
|
71 } |
|
72 |
|
73 // ----------------------------------------------------------------------------- |
|
74 // CNATFWUNSAFDataAttribute::~CNATFWUNSAFDataAttribute |
|
75 // ----------------------------------------------------------------------------- |
|
76 // |
|
77 CNATFWUNSAFDataAttribute::~CNATFWUNSAFDataAttribute() |
|
78 { |
|
79 } |
|
80 |
|
81 // ----------------------------------------------------------------------------- |
|
82 // CNATFWUNSAFDataAttribute::Type |
|
83 // ----------------------------------------------------------------------------- |
|
84 // |
|
85 CNATFWUNSAFAttribute::TType CNATFWUNSAFDataAttribute::Type() const |
|
86 { |
|
87 return EData; |
|
88 } |