|
1 /* |
|
2 * Copyright (c) 2004-2007 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 CFLOATCAPABILITY_H |
|
20 #define CFLOATCAPABILITY_H |
|
21 |
|
22 #include "cbasecapability.h" |
|
23 |
|
24 /** |
|
25 * |
|
26 * Capability type for float type of settings |
|
27 * |
|
28 */ |
|
29 class CFloatCapability : |
|
30 public CBaseCapability |
|
31 { |
|
32 public: // Constructors and destructors |
|
33 |
|
34 /** |
|
35 * Destructor |
|
36 */ |
|
37 virtual ~CFloatCapability(); |
|
38 |
|
39 public: // Methods derived from CBaseCapability |
|
40 |
|
41 virtual HBufC* ListBoxTextL(); |
|
42 virtual TBool LaunchPopupListL(); |
|
43 virtual CBaseCapability* CloneL(); |
|
44 |
|
45 public: // New methods |
|
46 |
|
47 /** |
|
48 * Sets the values for denominator, numerator and |
|
49 * maximum numerator. Initializes iRealValue at the same time |
|
50 * |
|
51 * @param aDenom Denominator |
|
52 * @param aNumerator Current numerator |
|
53 * @param aMaxNumerator Maximum numerator |
|
54 * @return Error code |
|
55 */ |
|
56 TInt SetValues( TInt aDenom, TInt aNumerator, TInt aMaxNumerator ); |
|
57 |
|
58 /** |
|
59 * Returns numerator |
|
60 * @return numerator |
|
61 */ |
|
62 TInt Numerator() const; |
|
63 |
|
64 /** |
|
65 * Returns denominator |
|
66 * @return denominator |
|
67 */ |
|
68 TInt Denominator() const; |
|
69 |
|
70 private: // Data |
|
71 |
|
72 // Denominator / Numerator pair |
|
73 TInt iDenominator; |
|
74 TInt iMaxNumerator; |
|
75 |
|
76 TReal iRealValue; |
|
77 }; |
|
78 |
|
79 #endif // CFLOATCAPABILITY_H |
|
80 |
|
81 // End of File |