00001 /* 00002 * ============================================================================ 00003 * Name : PtiUserDicEntry.h 00004 * Part of : PtiEngine 00005 * Description: User dictionary interface 00006 * Version: 00007 * 00008 * Copyright © 2003-2007 Nokia Corporation. 00009 * This material, including documentation and any related 00010 * computer programs, is protected by copyright controlled by 00011 * Nokia Corporation. All rights are reserved. Copying, 00012 * including reproducing, storing, adapting or translating, any 00013 * or all of this material requires the prior written consent of 00014 * Nokia Corporation. This material also contains confidential 00015 * information which may not be disclosed to others without the 00016 * prior written consent of Nokia Corporation. 00017 * ============================================================================ 00018 */ 00019 00020 #ifndef _PTI_USERDICENTRY_H 00021 #define _PTI_USERDICENTRY_H 00022 00023 // INCLUDES 00024 #include <e32base.h> 00025 00026 // CONSTANTS 00027 const TInt KMaxUserDictionaryEntrySize = 100; 00028 00032 class MPtiUserDictionaryEntry 00033 { 00034 public: 00041 virtual TPtrC Word() const = 0; 00042 00050 virtual TPtrC Reading() const = 0; // Needed for Japanese input. 00051 00060 virtual void SetWord(TDesC& aWord, TDesC& aReading) = 0; 00061 00069 virtual void SetWord(TDesC& aWord) = 0; 00070 }; 00071 00072 00080 class TPtiUserDictionaryEntry : public MPtiUserDictionaryEntry 00081 { 00082 public: 00083 inline TPtiUserDictionaryEntry(); 00084 inline TPtiUserDictionaryEntry(const TDesC& aWord); 00085 00086 inline TPtrC Word() const; 00087 inline TPtrC Reading() const; 00088 inline void SetWord(TDesC& aWord, TDesC& aReading); 00089 inline void SetWord(TDesC& aWord); 00090 00091 private: 00092 TBuf<KMaxUserDictionaryEntrySize> iEntry; 00093 }; 00094 00095 #include "PtiUserDicEntry.inl" 00096 00097 #endif 00098 00099 // End of file 00100