|
1 /* |
|
2 * Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "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: Model inline function for gspeninputplugin. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 inline TInt CGSPenInputModel::InputLanguageIndex() const |
|
20 { |
|
21 return iLanguageIndex; |
|
22 } |
|
23 |
|
24 inline void CGSPenInputModel::SetInputLanguageIndex(TInt aIndex) |
|
25 { |
|
26 iLanguageIndex = aIndex; |
|
27 } |
|
28 |
|
29 inline TBool CGSPenInputModel::ChineseLanguage() |
|
30 { |
|
31 if (iInputLanguage == ELangPrcChinese || |
|
32 iInputLanguage == ELangHongKongChinese || |
|
33 iInputLanguage == ELangTaiwanChinese) |
|
34 { |
|
35 return ETrue; |
|
36 } |
|
37 |
|
38 return EFalse; |
|
39 } |
|
40 |
|
41 inline TBool CGSPenInputModel::JapaneseLanguage() |
|
42 { |
|
43 if (iInputLanguage == ELangJapanese) |
|
44 { |
|
45 return ETrue; |
|
46 } |
|
47 |
|
48 return EFalse; |
|
49 } |
|
50 |
|
51 inline TBool CGSPenInputModel::AvailableTrailColor(TRgb color) |
|
52 { |
|
53 if (color == KRgbBlack || color == KRgbDarkGray || color ==KRgbDarkRed || |
|
54 color == KRgbDarkGreen || color == KRgbDarkYellow || color == KRgbDarkBlue || |
|
55 color == KRgbDarkMagenta || color == KRgbDarkCyan || color == KRgbRed || |
|
56 color == KRgbGreen || color == KRgbYellow || color == KRgbBlue || |
|
57 color == KRgbMagenta || color == KRgbCyan || color == KRgbGray || color == KRgbWhite) |
|
58 { |
|
59 return ETrue; |
|
60 } |
|
61 |
|
62 return EFalse; |
|
63 } |
|
64 |
|
65 inline void CGSPenInputModel::SetOwner(MGsCenRepNotifyHandlerCallback* aOwner) |
|
66 { |
|
67 iOwner = aOwner; |
|
68 } |
|
69 |
|
70 // End Of File |