diff -r 000000000000 -r eb1f2e154e89 textinput/peninputgenericvkb/src/peninputgenericvkbdatamgr.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/textinput/peninputgenericvkb/src/peninputgenericvkbdatamgr.cpp Tue Feb 02 01:02:04 2010 +0200 @@ -0,0 +1,114 @@ +/* +* 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: peninput VKB data manager +* +*/ + + +// System includes +#include +#include +#include +#include +#include + +// User includes +#include "peninputgenericvkbdatamgr.h" + + +// ======== MEMBER FUNCTIONS ======== + +// --------------------------------------------------------------------------- +// CPeninputGenericVkbDataMgr::NewL +// (other items were commented in a header) +// --------------------------------------------------------------------------- +// +CPeninputGenericVkbDataMgr* CPeninputGenericVkbDataMgr::NewL( + MPeninputLayoutContext* aContext ) + { + CPeninputGenericVkbDataMgr* self = NewLC( aContext ); + CleanupStack::Pop(self); + + return self; + } + +// --------------------------------------------------------------------------- +// CPeninputGenericVkbDataMgr::NewLC +// (other items were commented in a header) +// --------------------------------------------------------------------------- +// +CPeninputGenericVkbDataMgr* CPeninputGenericVkbDataMgr::NewLC( + MPeninputLayoutContext* aContext ) + { + CPeninputGenericVkbDataMgr* self = + new ( ELeave ) CPeninputGenericVkbDataMgr( aContext ); + CleanupStack::PushL( self ); + self->ConstructL(); + + return self; + } + +// --------------------------------------------------------------------------- +// CPeninputGenericVkbDataMgr::CPeninputGenericVkbDataMgr +// (other items were commented in a header) +// --------------------------------------------------------------------------- +// +CPeninputGenericVkbDataMgr::CPeninputGenericVkbDataMgr( + MPeninputLayoutContext* aContext ) + : CPeninputDataMgr( aContext ) + { + } + +// --------------------------------------------------------------------------- +// CPeninputGenericVkbDataMgr::~CPeninputGenericVkbDataMgr +// (other items were commented in a header) +// --------------------------------------------------------------------------- +// +CPeninputGenericVkbDataMgr::~CPeninputGenericVkbDataMgr() + { + } + +// --------------------------------------------------------------------------- +// CPeninputGenericVkbDataMgr::InitMore +// (other items were commented in a header) +// --------------------------------------------------------------------------- +// +void CPeninputGenericVkbDataMgr::InitMore() + { + } + +// --------------------------------------------------------------------------- +// CPeninputGenericVkbDataMgr::HandleGSRepositoryChange +// (other items were commented in a header) +// --------------------------------------------------------------------------- +// +void CPeninputGenericVkbDataMgr::HandleGSRepositoryChange( TInt aChangedKey ) + { + if ( aChangedKey == KSettingsPenInputLang ) + { + // Read peninput language again + // Do what you want + } + } + +// --------------------------------------------------------------------------- +// CPeninputGenericVkbDataMgr::Reset +// (other items were commented in a header) +// --------------------------------------------------------------------------- +// +void CPeninputGenericVkbDataMgr::Reset() + { + iShiftDown = 0; + iCapslockDown = 0; + }