|
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 |
|
20 #ifndef C_HNMDSTRING16KEY_H |
|
21 #define C_HNMDSTRING16KEY_H |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 #include "hnmdbasekey.h" |
|
26 |
|
27 /** |
|
28 * Defines particular key type which is unicode string. |
|
29 * |
|
30 * @lib hierarchynavigatorengine |
|
31 * @since S60 v5.0 |
|
32 * @ingroup group_hnutilities |
|
33 */ |
|
34 NONSHARABLE_CLASS( CHnMdString16Key ) : public CHnMdBaseKey |
|
35 { |
|
36 friend class HnMdKeyFactory; |
|
37 |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Standard factory method. |
|
42 * |
|
43 * @return Fully constructed object. |
|
44 */ |
|
45 static CHnMdString16Key* NewL(); |
|
46 |
|
47 /** |
|
48 * Standard factory method. |
|
49 * |
|
50 * @return Fully constructed object. |
|
51 */ |
|
52 static CHnMdString16Key* NewLC(); |
|
53 |
|
54 /** |
|
55 * Standard factory method. |
|
56 * |
|
57 * @param aKey Reference key. |
|
58 * @return Fully constructed object. |
|
59 */ |
|
60 static CHnMdString16Key* NewL( const CHnMdString16Key* aKey ); |
|
61 |
|
62 /** |
|
63 * Standard factory method. |
|
64 * |
|
65 * @param aKey Reference key. |
|
66 * @return Fully constructed object. |
|
67 */ |
|
68 static CHnMdString16Key* NewLC( const CHnMdString16Key* aKey ); |
|
69 |
|
70 /** |
|
71 * Factory method. |
|
72 * |
|
73 * since S60 v5.0 |
|
74 * @return Fully constructed object. |
|
75 */ |
|
76 virtual CHnMdBaseKey* CopyLC(); |
|
77 |
|
78 /** |
|
79 * Standard destructor. |
|
80 */ |
|
81 virtual ~CHnMdString16Key(); |
|
82 |
|
83 /** |
|
84 * Change to variant. |
|
85 * |
|
86 * @since S60 v5.0 |
|
87 * @param aRet Output variant. |
|
88 * |
|
89 */ |
|
90 virtual void ToVariantL( TLiwVariant& aRet ) const; |
|
91 |
|
92 protected: |
|
93 |
|
94 /** |
|
95 * Standard constructor. |
|
96 * |
|
97 * @since S60 v5.0 |
|
98 */ |
|
99 CHnMdString16Key(); |
|
100 |
|
101 /** |
|
102 * Symbian constructor for performing 2nd stage construction. |
|
103 * |
|
104 * @since S60 v5.0 |
|
105 */ |
|
106 void ConstructL(); |
|
107 |
|
108 /** |
|
109 * Symbian constructor for performing 2nd stage construction. |
|
110 * |
|
111 * @since S60 v5.0 |
|
112 * @param aKey Reference key. |
|
113 */ |
|
114 void ConstructL( const CHnMdString16Key* aKey ); |
|
115 }; |
|
116 |
|
117 #endif // C_HNMDSTRING16KEY_H |