diff -r eb1f2e154e89 -r f5a1e66df979 textinput/ptihangulcore/src/OssKeyboard.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/textinput/ptihangulcore/src/OssKeyboard.cpp Fri Feb 19 23:09:27 2010 +0200 @@ -0,0 +1,59 @@ +/* +* Copyright (c) 2005,2006 Choe Hwanjin +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "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: +* +*/ + + +#include "OssKeyboard.h" +#include "hangul.h" + +EXPORT_C COssKeyboard* COssKeyboard::NewLC() + { + COssKeyboard* self = new (ELeave) COssKeyboard(); + CleanupStack::PushL(self); + self->ConstructL(); + return self; + } + +EXPORT_C COssKeyboard* COssKeyboard::NewL() + { + COssKeyboard* self = COssKeyboard::NewLC(); + CleanupStack::Pop(); // self; + return self; + } + +COssKeyboard::COssKeyboard() + { + } + +EXPORT_C COssKeyboard::~COssKeyboard() + { + hangul_keyboard_delete(iHangulKeyboard); + } + +void COssKeyboard::ConstructL() + { + iHangulKeyboard=hangul_keyboard_new(); + } + +EXPORT_C void COssKeyboard::SetValue(const TInt& aKey,const TChar& aValue) + { + hangul_keyboard_set_value(iHangulKeyboard,aKey,aValue); + } + +EXPORT_C void COssKeyboard::SetType(const TInt& aType) + { + hangul_keyboard_set_type(iHangulKeyboard,aType); + }