00001 /* 00002 * ============================================================================ 00003 * Name : PtiCompositionDataIF.h 00004 * Part of : PtiEngine 00005 * Interface : 00006 * Description : MPtiEngineCompositionDataInterface class definitions. 00007 * Version : 00008 * 00009 * Copyright (c) 2003 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. All rights are reserved. Copying, 00013 * including reproducing, storing, adapting or translating, any 00014 * or all of this material requires the prior written consent of 00015 * Nokia Corporation. This material also contains confidential 00016 * information which may not be disclosed to others without the 00017 * prior written consent of Nokia Corporation. 00018 * ============================================================================ 00019 */ 00020 00021 #ifndef MPTIENGINECOMPOSITIONDATAINTERFACE_H 00022 #define MPTIENGINECOMPOSITIONDATAINTERFACE_H 00023 00024 // INCLUDES 00025 #include <e32base.h> 00026 #include <badesca.h> 00027 00028 // CLASS DECLARATION 00029 00037 class MPtiEngineCompositionDataInterface 00038 { 00039 public: 00040 // the attribute of phrase 00041 enum TPtiAttributeOfPhrase 00042 { 00043 EPtiAttributeTransitoryInput, // transitory input(before converting) 00044 EPtiAttributeNonTargetConvert, // non-target phrase(while converting) 00045 EPtiAttributeTargetConvert // target phrase(while converting) 00046 }; 00047 00048 public: 00055 IMPORT_C virtual TInt CursorPosition() const = 0; 00056 00062 IMPORT_C virtual TInt NumberOfPhrase() const = 0; 00063 00069 IMPORT_C virtual TPtrC8 LengthOfPhrase() const = 0; 00070 00076 IMPORT_C virtual TPtrC8 AttributeOfPhrase() const = 0; 00077 00083 IMPORT_C virtual TPtrC ConvertingString() const = 0; 00084 00090 IMPORT_C virtual TPtrC CompletedString() const = 0; 00091 00097 IMPORT_C virtual TPtrC ReadingString() const = 0; 00098 00108 IMPORT_C virtual TBool IsModifiableCharacter() const = 0; 00109 }; 00110 00111 // MPTIENGINECOMPOSITIONDATAINTERFACE_H 00112 #endif 00113 00114 // End of file 00115