--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textinput/ptihangulcore/src/OssKeyboard.cpp Sun Mar 14 13:11:12 2010 +0000
@@ -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);
+ }