textinput/peninputgenericvkb/src/peninputgenericvkbdatamgr.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 14 Sep 2010 21:59:06 +0300
branchRCL_3
changeset 22 bd83ceabce89
parent 0 eb1f2e154e89
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* 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 <peninputdataconverter.h>
#include <centralrepository.h>
#include <settingsinternalcrkeys.h>
#include <peninputlayoutcontext.h>
#include <peninputcommonlayoutglobalenum.h>

// 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;
    }