diff -r 000000000000 -r eb1f2e154e89 fep/aknfep/peninputplugins/peninputimepluginitut/src/pluginfepmanageritut.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/fep/aknfep/peninputplugins/peninputimepluginitut/src/pluginfepmanageritut.cpp Tue Feb 02 01:02:04 2010 +0200 @@ -0,0 +1,93 @@ +/* +* Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0"" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: ITUT layout UI class implementation file. +* +*/ + + + + + + + + + + + + +// System includes +#include // CAknEdwinState +#include + +// User includes +#include "pluginfepmanageritut.h" +#include "peninputimepluginitut.h" +#include "eikon.hrh" + +// ======== MEMBER FUNCTIONS ======== + + +// ----------------------------------------------------------------------------- +// CPluginFepManagerItut::NewL +// Factory function +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +CPluginFepManagerItut* CPluginFepManagerItut::NewL( + CPenInputImePluginItut& aOwner, RPeninputServer* aPenInputServer ) + { + CPluginFepManagerItut* self = new ( ELeave ) CPluginFepManagerItut( + aOwner, aPenInputServer ); + CleanupStack::PushL( self ); + self->BaseConstructL(); + CleanupStack::Pop( self ); + return self; + } + +// ----------------------------------------------------------------------------- +// CPluginFepManagerItut::CPluginFepManagerItut +// constructor +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +CPluginFepManagerItut::CPluginFepManagerItut( CPenInputImePluginItut& aOwner, + RPeninputServer* aPenInputServer ) + :CPluginFepManagerBase( aOwner, aPenInputServer ) + { + } + +// ----------------------------------------------------------------------------- +// CPluginFepManagerItut::HandleKeyL +// Handle key event. +// (other items were commented in a header). +// ----------------------------------------------------------------------------- +// +TBool CPluginFepManagerItut::HandleKeyL( TInt aKey, TKeyPressLength aLength, TEventCode /*aEventCode*/ ) + { + TInt ret; + TPckgC msgdata(aKey); + + if (aLength == ELongKeyPress) + { + iPenInputServer->HandleCommand(ECmdPenInputFingerLongKeyPress, msgdata, ret); + } + else + { + iPenInputServer->HandleCommand(ECmdPenInputFingerKeyPress, msgdata, ret); + } + + return ret == KErrNone ? ETrue:EFalse; + } + +// End Of File