44
|
1 |
/*
|
|
2 |
* Copyright (c) 2002-2006 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 |
#include "PeninputImePluginKr.h"
|
|
19 |
#include "eikon.hrh"
|
|
20 |
|
|
21 |
#include <aknedsts.h> //CAknEdwinState
|
|
22 |
#include <aknfeppeninputenums.h>
|
|
23 |
|
|
24 |
|
|
25 |
#include "PluginKrFepManagerItut.h"
|
|
26 |
|
|
27 |
CPluginKrFepManagerItut* CPluginKrFepManagerItut::NewLC(
|
|
28 |
CPeninputPluginKr& aOwner,
|
|
29 |
RPeninputServer& aPenInputServer)
|
|
30 |
{
|
|
31 |
CPluginKrFepManagerItut* self =
|
|
32 |
new (ELeave) CPluginKrFepManagerItut(aOwner,aPenInputServer);
|
|
33 |
CleanupStack::PushL(self);
|
|
34 |
self->ConstructL();
|
|
35 |
return self;
|
|
36 |
}
|
|
37 |
|
|
38 |
CPluginKrFepManagerItut* CPluginKrFepManagerItut::NewL(
|
|
39 |
CPeninputPluginKr& aOwner,
|
|
40 |
RPeninputServer& aPenInputServer)
|
|
41 |
{
|
|
42 |
CPluginKrFepManagerItut* self =
|
|
43 |
CPluginKrFepManagerItut::NewLC(aOwner,aPenInputServer);
|
|
44 |
CleanupStack::Pop(); // self;
|
|
45 |
return self;
|
|
46 |
}
|
|
47 |
|
|
48 |
TBool CPluginKrFepManagerItut::HandleKeyL( TInt aKey, TKeyPressLength aLength,
|
|
49 |
TEventCode /*aEventCode*/)
|
|
50 |
{
|
|
51 |
TInt ret;
|
|
52 |
TPckgC<TInt> msgdata(aKey);
|
|
53 |
|
|
54 |
if (aLength == ELongKeyPress)
|
|
55 |
{
|
|
56 |
iPenInputServer.HandleCommand(ECmdPenInputFingerLongKeyPress, msgdata, ret);
|
|
57 |
}
|
|
58 |
else
|
|
59 |
{
|
|
60 |
iPenInputServer.HandleCommand(ECmdPenInputFingerKeyPress, msgdata, ret);
|
|
61 |
}
|
|
62 |
|
|
63 |
return ret == KErrNone ? ETrue:EFalse;
|
|
64 |
}
|
|
65 |
|
|
66 |
CPluginKrFepManagerItut::CPluginKrFepManagerItut(
|
|
67 |
CPeninputPluginKr& aOwner,
|
|
68 |
RPeninputServer& aPenInputServer)
|
|
69 |
: CPluginKrFepManagerBase(aOwner,aPenInputServer)
|
|
70 |
{
|
|
71 |
}
|
|
72 |
|
|
73 |
void CPluginKrFepManagerItut::ConstructL()
|
|
74 |
{
|
|
75 |
}
|
|
76 |
|
|
77 |
CPluginKrFepManagerItut::~CPluginKrFepManagerItut()
|
|
78 |
{
|
|
79 |
}
|