|
1 /* |
|
2 * Copyright (c) 2002-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: Intermediate class for defining data shared between numeric |
|
15 * edwins |
|
16 * |
|
17 */ |
|
18 |
|
19 #if !defined(__AKNNUMED_H_) |
|
20 #define __AKNNUMED_H_ |
|
21 |
|
22 // INCLUDES |
|
23 #include <eikedwin.h> |
|
24 |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Intermediate class for defining data shared between numeric edwins |
|
30 * |
|
31 * @since Series 60 0.9 |
|
32 */ |
|
33 class CAknNumericEdwin : public CEikEdwin |
|
34 { |
|
35 public: |
|
36 /** |
|
37 * Destructor. |
|
38 */ |
|
39 IMPORT_C virtual ~CAknNumericEdwin(); |
|
40 |
|
41 /** |
|
42 * |
|
43 * Indicates a validiton status for values read from the control. |
|
44 * |
|
45 */ |
|
46 enum TValidationStatus |
|
47 { |
|
48 EValueValid = KErrNone,/**< Read value is valid. */ |
|
49 EValueTooSmall, /**< Read value is smaller than the minimum value. */ |
|
50 EValueTooLarge, /**< Read value is larger than the maximum value. */ |
|
51 EValueNotParsed, /**< Read value can not be parsed. */ |
|
52 EEmpty /**< The control is empty. */ |
|
53 }; |
|
54 |
|
55 // From CCoeControl |
|
56 IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); |
|
57 |
|
58 protected: |
|
59 /** |
|
60 * Maps a key event so that any numeric character is mapped to the correct |
|
61 * digit type that this editor is using. |
|
62 * @since Series 60 2.0 |
|
63 * @param aKeyEvent The key event to modify. |
|
64 * @param aType The type to modify. |
|
65 * @param aDigitType The digit type to map all numeric characters to. |
|
66 */ |
|
67 IMPORT_C void MapKeyEvent( |
|
68 TKeyEvent& aKeyEvent, |
|
69 TEventCode& /*aType*/, |
|
70 TDigitType aDigitType) const; |
|
71 |
|
72 |
|
73 private: |
|
74 /** |
|
75 * From CAknControl |
|
76 */ |
|
77 IMPORT_C void* ExtensionInterface( TUid aInterface ); |
|
78 private: // from CEikEdwin |
|
79 IMPORT_C virtual void Reserved_3(); |
|
80 private: |
|
81 TInt iSpare; // Needs at least some data |
|
82 }; |
|
83 |
|
84 |
|
85 #endif |