1 /* |
|
2 * Copyright (c) 2007-2008 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 #include <liwservicehandler.h> |
|
20 |
|
21 #include "hnmdstring16key.h" |
|
22 |
|
23 // ======== MEMBER FUNCTIONS ======== |
|
24 |
|
25 // --------------------------------------------------------------------------- |
|
26 // |
|
27 // --------------------------------------------------------------------------- |
|
28 // |
|
29 CHnMdString16Key* CHnMdString16Key::NewL() |
|
30 { |
|
31 CHnMdString16Key* self = NewLC(); |
|
32 CleanupStack::Pop( self ); |
|
33 return self; |
|
34 } |
|
35 |
|
36 // --------------------------------------------------------------------------- |
|
37 // |
|
38 // --------------------------------------------------------------------------- |
|
39 // |
|
40 CHnMdString16Key* CHnMdString16Key::NewLC() |
|
41 { |
|
42 CHnMdString16Key* self = new ( ELeave ) CHnMdString16Key(); |
|
43 CleanupStack::PushL( self ); |
|
44 self->ConstructL(); |
|
45 return self; |
|
46 } |
|
47 |
|
48 // --------------------------------------------------------------------------- |
|
49 // |
|
50 // --------------------------------------------------------------------------- |
|
51 // |
|
52 CHnMdString16Key* CHnMdString16Key::NewL( const CHnMdString16Key* aKey ) |
|
53 { |
|
54 CHnMdString16Key* self = NewLC( aKey ); |
|
55 CleanupStack::Pop( self ); |
|
56 return self; |
|
57 } |
|
58 |
|
59 // --------------------------------------------------------------------------- |
|
60 // |
|
61 // --------------------------------------------------------------------------- |
|
62 // |
|
63 CHnMdString16Key* CHnMdString16Key::NewLC( const CHnMdString16Key* aKey ) |
|
64 { |
|
65 CHnMdString16Key* self = new ( ELeave ) CHnMdString16Key(); |
|
66 CleanupStack::PushL( self ); |
|
67 self->ConstructL( aKey ); |
|
68 return self; |
|
69 } |
|
70 |
|
71 // --------------------------------------------------------------------------- |
|
72 // |
|
73 // --------------------------------------------------------------------------- |
|
74 // |
|
75 CHnMdBaseKey* CHnMdString16Key::CopyLC() |
|
76 { |
|
77 CHnMdString16Key* self = CHnMdString16Key::NewL( this ); |
|
78 CleanupStack::PushL( self ); |
|
79 return self; |
|
80 } |
|
81 |
|
82 // --------------------------------------------------------------------------- |
|
83 // |
|
84 // --------------------------------------------------------------------------- |
|
85 // |
|
86 CHnMdString16Key::~CHnMdString16Key() |
|
87 { |
|
88 } |
|
89 |
|
90 // --------------------------------------------------------------------------- |
|
91 // |
|
92 // --------------------------------------------------------------------------- |
|
93 // |
|
94 CHnMdString16Key::CHnMdString16Key() |
|
95 { |
|
96 } |
|
97 |
|
98 // --------------------------------------------------------------------------- |
|
99 // |
|
100 // --------------------------------------------------------------------------- |
|
101 // |
|
102 void CHnMdString16Key::ConstructL() |
|
103 { |
|
104 } |
|
105 |
|
106 // --------------------------------------------------------------------------- |
|
107 // |
|
108 // --------------------------------------------------------------------------- |
|
109 // |
|
110 void CHnMdString16Key::ConstructL( const CHnMdString16Key* aKey ) |
|
111 { |
|
112 BaseConstructL( aKey ); |
|
113 } |
|
114 |
|
115 // --------------------------------------------------------------------------- |
|
116 // |
|
117 // --------------------------------------------------------------------------- |
|
118 // |
|
119 void CHnMdString16Key::ToVariantL( TLiwVariant& aRet ) const |
|
120 { |
|
121 aRet.SetL( TLiwVariant( KeyContent() ) ); |
|
122 } |
|
123 |
|