|
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: ITUT layout UI class implementation file. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 // System includes |
|
30 #include <aknedsts.h> // CAknEdwinState |
|
31 #include <peninputclient.h> |
|
32 |
|
33 // User includes |
|
34 #include "pluginfepmanageritut.h" |
|
35 #include "peninputimepluginitut.h" |
|
36 #include "eikon.hrh" |
|
37 |
|
38 // ======== MEMBER FUNCTIONS ======== |
|
39 |
|
40 |
|
41 // ----------------------------------------------------------------------------- |
|
42 // CPluginFepManagerItut::NewL |
|
43 // Factory function |
|
44 // (other items were commented in a header). |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 CPluginFepManagerItut* CPluginFepManagerItut::NewL( |
|
48 CPenInputImePluginItut& aOwner, RPeninputServer* aPenInputServer ) |
|
49 { |
|
50 CPluginFepManagerItut* self = new ( ELeave ) CPluginFepManagerItut( |
|
51 aOwner, aPenInputServer ); |
|
52 CleanupStack::PushL( self ); |
|
53 self->BaseConstructL(); |
|
54 CleanupStack::Pop( self ); |
|
55 return self; |
|
56 } |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // CPluginFepManagerItut::CPluginFepManagerItut |
|
60 // constructor |
|
61 // (other items were commented in a header). |
|
62 // ----------------------------------------------------------------------------- |
|
63 // |
|
64 CPluginFepManagerItut::CPluginFepManagerItut( CPenInputImePluginItut& aOwner, |
|
65 RPeninputServer* aPenInputServer ) |
|
66 :CPluginFepManagerBase( aOwner, aPenInputServer ) |
|
67 { |
|
68 } |
|
69 |
|
70 // ----------------------------------------------------------------------------- |
|
71 // CPluginFepManagerItut::HandleKeyL |
|
72 // Handle key event. |
|
73 // (other items were commented in a header). |
|
74 // ----------------------------------------------------------------------------- |
|
75 // |
|
76 TBool CPluginFepManagerItut::HandleKeyL( TInt aKey, TKeyPressLength aLength, TEventCode /*aEventCode*/ ) |
|
77 { |
|
78 TInt ret; |
|
79 TPckgC<TInt> msgdata(aKey); |
|
80 |
|
81 if (aLength == ELongKeyPress) |
|
82 { |
|
83 iPenInputServer->HandleCommand(ECmdPenInputFingerLongKeyPress, msgdata, ret); |
|
84 } |
|
85 else |
|
86 { |
|
87 iPenInputServer->HandleCommand(ECmdPenInputFingerKeyPress, msgdata, ret); |
|
88 } |
|
89 |
|
90 return ret == KErrNone ? ETrue:EFalse; |
|
91 } |
|
92 |
|
93 // End Of File |