|
1 /* |
|
2 * Copyright (c) 2002-2005 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: peninput VKB data manager |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // System includes |
|
20 #include <peninputdataconverter.h> |
|
21 #include <centralrepository.h> |
|
22 #include <settingsinternalcrkeys.h> |
|
23 #include <peninputlayoutcontext.h> |
|
24 #include <peninputcommonlayoutglobalenum.h> |
|
25 |
|
26 // User includes |
|
27 #include "peninputgenericvkbdatamgr.h" |
|
28 |
|
29 |
|
30 // ======== MEMBER FUNCTIONS ======== |
|
31 |
|
32 // --------------------------------------------------------------------------- |
|
33 // CPeninputGenericVkbDataMgr::NewL |
|
34 // (other items were commented in a header) |
|
35 // --------------------------------------------------------------------------- |
|
36 // |
|
37 CPeninputGenericVkbDataMgr* CPeninputGenericVkbDataMgr::NewL( |
|
38 MPeninputLayoutContext* aContext ) |
|
39 { |
|
40 CPeninputGenericVkbDataMgr* self = NewLC( aContext ); |
|
41 CleanupStack::Pop(self); |
|
42 |
|
43 return self; |
|
44 } |
|
45 |
|
46 // --------------------------------------------------------------------------- |
|
47 // CPeninputGenericVkbDataMgr::NewLC |
|
48 // (other items were commented in a header) |
|
49 // --------------------------------------------------------------------------- |
|
50 // |
|
51 CPeninputGenericVkbDataMgr* CPeninputGenericVkbDataMgr::NewLC( |
|
52 MPeninputLayoutContext* aContext ) |
|
53 { |
|
54 CPeninputGenericVkbDataMgr* self = |
|
55 new ( ELeave ) CPeninputGenericVkbDataMgr( aContext ); |
|
56 CleanupStack::PushL( self ); |
|
57 self->ConstructL(); |
|
58 |
|
59 return self; |
|
60 } |
|
61 |
|
62 // --------------------------------------------------------------------------- |
|
63 // CPeninputGenericVkbDataMgr::CPeninputGenericVkbDataMgr |
|
64 // (other items were commented in a header) |
|
65 // --------------------------------------------------------------------------- |
|
66 // |
|
67 CPeninputGenericVkbDataMgr::CPeninputGenericVkbDataMgr( |
|
68 MPeninputLayoutContext* aContext ) |
|
69 : CPeninputDataMgr( aContext ) |
|
70 { |
|
71 } |
|
72 |
|
73 // --------------------------------------------------------------------------- |
|
74 // CPeninputGenericVkbDataMgr::~CPeninputGenericVkbDataMgr |
|
75 // (other items were commented in a header) |
|
76 // --------------------------------------------------------------------------- |
|
77 // |
|
78 CPeninputGenericVkbDataMgr::~CPeninputGenericVkbDataMgr() |
|
79 { |
|
80 } |
|
81 |
|
82 // --------------------------------------------------------------------------- |
|
83 // CPeninputGenericVkbDataMgr::InitMore |
|
84 // (other items were commented in a header) |
|
85 // --------------------------------------------------------------------------- |
|
86 // |
|
87 void CPeninputGenericVkbDataMgr::InitMore() |
|
88 { |
|
89 } |
|
90 |
|
91 // --------------------------------------------------------------------------- |
|
92 // CPeninputGenericVkbDataMgr::HandleGSRepositoryChange |
|
93 // (other items were commented in a header) |
|
94 // --------------------------------------------------------------------------- |
|
95 // |
|
96 void CPeninputGenericVkbDataMgr::HandleGSRepositoryChange( TInt aChangedKey ) |
|
97 { |
|
98 if ( aChangedKey == KSettingsPenInputLang ) |
|
99 { |
|
100 // Read peninput language again |
|
101 // Do what you want |
|
102 } |
|
103 } |
|
104 |
|
105 // --------------------------------------------------------------------------- |
|
106 // CPeninputGenericVkbDataMgr::Reset |
|
107 // (other items were commented in a header) |
|
108 // --------------------------------------------------------------------------- |
|
109 // |
|
110 void CPeninputGenericVkbDataMgr::Reset() |
|
111 { |
|
112 iShiftDown = 0; |
|
113 iCapslockDown = 0; |
|
114 } |