2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: MPtiEngineCompositionDataInterface class definitions.
32 #ifndef MPTIENGINECOMPOSITIONDATAINTERFACE_H
33 #define MPTIENGINECOMPOSITIONDATAINTERFACE_H
42 * MPtiEngineCompositionDataInterface class.
43 * This is a class which returned by CPtiEngine::CompositionData() API.
48 class MPtiEngineCompositionDataInterface
51 // the attribute of phrase
52 enum TPtiAttributeOfPhrase
54 EPtiAttributeTransitoryInput, // transitory input(before converting)
55 EPtiAttributeNonTargetConvert, // non-target phrase(while converting)
56 EPtiAttributeTargetConvert // target phrase(while converting)
61 * Gets a cursor position on converting string
63 * @return TInt : The current cursor position
64 * If the cursor is left side, the returned value is 0.
66 IMPORT_C virtual TInt CursorPosition() const = 0;
69 * Gets the number of phrases on converting string
71 * @return TInt : the number of phrases
73 IMPORT_C virtual TInt NumberOfPhrase() const = 0;
76 * Gets the character count of each phrase
78 * @return TPtrC8 : the arrary keeping the character count
80 IMPORT_C virtual TPtrC8 LengthOfPhrase() const = 0;
83 * Gets the attribute of each phrase
85 * @return TPtrC8 : the arrary keeping the value of TPtiAttributeOfPhrase
87 IMPORT_C virtual TPtrC8 AttributeOfPhrase() const = 0;
90 * Gets the converting string
92 * @return TPtrC : the converting string
94 IMPORT_C virtual TPtrC ConvertingString() const = 0;
97 * Gets the specified string
99 * @return TPtrC : the completed string
101 IMPORT_C virtual TPtrC CompletedString() const = 0;
104 * Gets the reading string of the completed string
106 * @return TPtrC : the reading string
108 IMPORT_C virtual TPtrC ReadingString() const = 0;
111 * Checking it whether a character in a current cursor position
112 * is in modifiable character.
113 * The modifiable character is diacritics and small characters.
114 * There are two diacritics marks in Japanese: viced sound mark
115 * and semi-voiced sound mark.
117 * @return TBool : ETrue is modifiable character.
119 IMPORT_C virtual TBool IsModifiableCharacter() const = 0;
122 #endif // MPTIENGINECOMPOSITIONDATAINTERFACE_H