1 /* |
|
2 * Copyright (c) 2008-2009 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: CMdENumberPropertys' compatible wrapper to CMdEProperty |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __MDENUMBERPROPERTY_H__ |
|
19 #define __MDENUMBERPROPERTY_H__ |
|
20 |
|
21 #include <mdeproperty.h> |
|
22 |
|
23 /** |
|
24 * Template for number property compatibility wrappers to property. |
|
25 */ |
|
26 template< class T > |
|
27 class CMdENumberProperty : public CMdEProperty |
|
28 { |
|
29 public: |
|
30 /** |
|
31 * Returns the value of the property. |
|
32 * |
|
33 * @return value |
|
34 */ |
|
35 T Value() const; |
|
36 |
|
37 /** |
|
38 * Sets the value of the property. |
|
39 * |
|
40 * @param aValue New value. |
|
41 */ |
|
42 void SetValueL(T aValue); |
|
43 }; |
|
44 |
|
45 /* Typedefs for numeric properties. */ |
|
46 typedef CMdENumberProperty<TBool> CMdEBoolProperty; |
|
47 typedef CMdENumberProperty<TInt8> CMdEInt8Property; |
|
48 typedef CMdENumberProperty<TUint8> CMdEUint8Property; |
|
49 typedef CMdENumberProperty<TInt16> CMdEInt16Property; |
|
50 typedef CMdENumberProperty<TUint16> CMdEUint16Property; |
|
51 typedef CMdENumberProperty<TInt32> CMdEInt32Property; |
|
52 typedef CMdENumberProperty<TUint32> CMdEUint32Property; |
|
53 typedef CMdENumberProperty<TInt64> CMdEInt64Property; |
|
54 typedef CMdENumberProperty<TReal32> CMdEReal32Property; |
|
55 typedef CMdENumberProperty<TReal64> CMdEReal64Property; |
|
56 typedef CMdENumberProperty<TTime> CMdETimeProperty; |
|
57 |
|
58 |
|
59 #include <mdenumberproperty.inl> |
|
60 |
|
61 #endif // __MDENUMBERPROPERTY_H__ |
|