equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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: |
|
15 * |
|
16 */ |
|
17 #ifndef AKNINPUTPOLICY_H |
|
18 #define AKNINPUTPOLICY_H |
|
19 |
|
20 #include <e32base.h> |
|
21 |
|
22 // forward declarations |
|
23 class CEikEdwin; |
|
24 |
|
25 class CAknInputPolicyManager : public CBase |
|
26 { |
|
27 public: |
|
28 enum TEventType |
|
29 { |
|
30 ECMEventNull, |
|
31 ECMEventInitialise, |
|
32 ECMEventInlineEditUpdate, |
|
33 ECMEventInsertion, |
|
34 ECMEventDeletion, |
|
35 ECMEventNavigation |
|
36 }; |
|
37 public: |
|
38 /** |
|
39 * 2 phase constructor |
|
40 * |
|
41 */ |
|
42 static CAknInputPolicyManager* NewL(CEikEdwin* aEdwin); |
|
43 |
|
44 /** |
|
45 * Destructor |
|
46 * |
|
47 */ |
|
48 virtual ~CAknInputPolicyManager(); |
|
49 |
|
50 /** |
|
51 * Forwards externally generated events to the appropriate cursor |
|
52 * manager handler method |
|
53 */ |
|
54 void HandleInputPolicyManagerEventL(TEventType aEvent, TInt aData1 = 0, TAny* aData2 = NULL); |
|
55 |
|
56 private: |
|
57 CAknInputPolicyManager(CEikEdwin* aEdwin); |
|
58 void ConstructL(); |
|
59 |
|
60 void NormaliseCursorPositionFollowingDeleteL(); |
|
61 void NormaliseCursorPositionFollowingNavigationL(); |
|
62 void SetCursorUsingLanguageL(); |
|
63 |
|
64 private: |
|
65 // not owned |
|
66 CEikEdwin* iEdwin; |
|
67 }; |
|
68 |
|
69 |
|
70 #endif |