|
1 /* |
|
2 * Copyright (c) 2004 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: Lookup key container. |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include "e32std.h" |
|
20 #include "cvimpstsettingslookupkeyvaluepair.h" |
|
21 |
|
22 |
|
23 |
|
24 // ================= MEMBER FUNCTIONS ======================= |
|
25 |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // CVIMPSTSettingsLookupKeyValuePair::NewL() |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 CVIMPSTSettingsLookupKeyValuePair* CVIMPSTSettingsLookupKeyValuePair::NewL() |
|
32 { |
|
33 CVIMPSTSettingsLookupKeyValuePair* self = new (ELeave) CVIMPSTSettingsLookupKeyValuePair; |
|
34 return self; |
|
35 } |
|
36 |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // CVIMPSTSettingsLookupKeyValuePair::~CVIMPSTSettingsLookupKeyValuePair() |
|
40 // Destructor |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 CVIMPSTSettingsLookupKeyValuePair::~CVIMPSTSettingsLookupKeyValuePair() |
|
44 { |
|
45 } |
|
46 |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // CVIMPSTSettingsLookupKeyValuePair::CVIMPSTSettingsLookupKeyValuePair() |
|
50 // C++ default constructor can NOT contain any code, that |
|
51 // might leave. |
|
52 // ----------------------------------------------------------------------------- |
|
53 // |
|
54 CVIMPSTSettingsLookupKeyValuePair::CVIMPSTSettingsLookupKeyValuePair() |
|
55 { |
|
56 } |
|
57 |
|
58 |
|
59 // ----------------------------------------------------------------------------- |
|
60 // CVIMPSTSettingsLookupKeyValuePair::Key() const |
|
61 // ----------------------------------------------------------------------------- |
|
62 // |
|
63 const TDesC& CVIMPSTSettingsLookupKeyValuePair::Key() const |
|
64 { |
|
65 return iLookupKey; |
|
66 } |
|
67 |
|
68 |
|
69 // ----------------------------------------------------------------------------- |
|
70 // CVIMPSTSettingsLookupKeyValuePair::SetLookupKey() |
|
71 // ----------------------------------------------------------------------------- |
|
72 // |
|
73 void CVIMPSTSettingsLookupKeyValuePair::SetLookupKey( const TDesC& aLookUpKey ) |
|
74 { |
|
75 iLookupKey.Set( aLookUpKey ); |
|
76 } |
|
77 |
|
78 |
|
79 // ----------------------------------------------------------------------------- |
|
80 // CVIMPSTSettingsLookupKeyValuePair::ResetLookupKey() |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 void CVIMPSTSettingsLookupKeyValuePair::ResetLookupKey() |
|
84 { |
|
85 iLookupKey.Set( NULL, 0 ); |
|
86 } |
|
87 |
|
88 // End of File |
|
89 |