equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005,2006 Choe Hwanjin |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "OssKeyboard.h" |
|
20 #include "hangul.h" |
|
21 |
|
22 EXPORT_C COssKeyboard* COssKeyboard::NewLC() |
|
23 { |
|
24 COssKeyboard* self = new (ELeave) COssKeyboard(); |
|
25 CleanupStack::PushL(self); |
|
26 self->ConstructL(); |
|
27 return self; |
|
28 } |
|
29 |
|
30 EXPORT_C COssKeyboard* COssKeyboard::NewL() |
|
31 { |
|
32 COssKeyboard* self = COssKeyboard::NewLC(); |
|
33 CleanupStack::Pop(); // self; |
|
34 return self; |
|
35 } |
|
36 |
|
37 COssKeyboard::COssKeyboard() |
|
38 { |
|
39 } |
|
40 |
|
41 EXPORT_C COssKeyboard::~COssKeyboard() |
|
42 { |
|
43 hangul_keyboard_delete(iHangulKeyboard); |
|
44 } |
|
45 |
|
46 void COssKeyboard::ConstructL() |
|
47 { |
|
48 iHangulKeyboard=hangul_keyboard_new(); |
|
49 } |
|
50 |
|
51 EXPORT_C void COssKeyboard::SetValue(const TInt& aKey,const TChar& aValue) |
|
52 { |
|
53 hangul_keyboard_set_value(iHangulKeyboard,aKey,aValue); |
|
54 } |
|
55 |
|
56 EXPORT_C void COssKeyboard::SetType(const TInt& aType) |
|
57 { |
|
58 hangul_keyboard_set_type(iHangulKeyboard,aType); |
|
59 } |