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