|
1 /* |
|
2 * Copyright (c) 2002-2004 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: Implementation of CAknJapaneseReading class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "AknJapaneseReading.h" |
|
21 #include "AknJapaneseReadingDLL.h" |
|
22 #include <PtiEngine.h> |
|
23 |
|
24 // EXTERNAL DATA STRUCTURES |
|
25 |
|
26 // EXTERNAL FUNCTION PROTOTYPES |
|
27 |
|
28 // CONSTANTS |
|
29 |
|
30 // MACROS |
|
31 |
|
32 // LOCAL CONSTANTS AND MACROS |
|
33 |
|
34 // MODULE DATA STRUCTURES |
|
35 |
|
36 // LOCAL FUNCTION PROTOTYPES |
|
37 |
|
38 // FORWARD DECLARATIONS |
|
39 |
|
40 // ============================= LOCAL FUNCTIONS =============================== |
|
41 |
|
42 // ============================ MEMBER FUNCTIONS =============================== |
|
43 |
|
44 // ----------------------------------------------------------------------------- |
|
45 // CAknJapaneseReading::CAknJapaneseReading |
|
46 // Constructor. |
|
47 // ----------------------------------------------------------------------------- |
|
48 // |
|
49 CAknJapaneseReading::CAknJapaneseReading() |
|
50 : CCoeStatic(KAknJapaneseReadingStaticId) |
|
51 { |
|
52 } |
|
53 |
|
54 // ----------------------------------------------------------------------------- |
|
55 // CAknJapaneseReading::~CAknJapaneseReading |
|
56 // Destructor. |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 CAknJapaneseReading::~CAknJapaneseReading() |
|
60 { |
|
61 } |
|
62 |
|
63 // ----------------------------------------------------------------------------- |
|
64 // CAknJapaneseReading::CreateL |
|
65 // |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 EXPORT_C void CAknJapaneseReading::CreateL(CPtiEngine* aPtiEngine) |
|
69 { |
|
70 CAknJapaneseReading* self |
|
71 = static_cast<CAknJapaneseReading*> |
|
72 (CCoeEnv::Static(KAknJapaneseReadingStaticId)); |
|
73 if (!self) |
|
74 { |
|
75 // create singleton |
|
76 self = new(ELeave) CAknJapaneseReading; |
|
77 } |
|
78 self->iPtiEngine = aPtiEngine; |
|
79 } |
|
80 |
|
81 // ----------------------------------------------------------------------------- |
|
82 // CAknJapaneseReading::ReadingTextL |
|
83 // Return Reading Text when completed string. |
|
84 // ----------------------------------------------------------------------------- |
|
85 // |
|
86 EXPORT_C TPtrC CAknJapaneseReading::ReadingTextL() |
|
87 { |
|
88 CAknJapaneseReading* self = Static(); |
|
89 if (!self) |
|
90 { |
|
91 return TPtrC(); |
|
92 } |
|
93 return self->iPtiEngine->ReadingTextL(); |
|
94 } |
|
95 |
|
96 // End of File |