Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Z760IMethod.h

Go to the documentation of this file.
00001 //------------------------------------------------------------------------
00002 //
00003 //  Header Name: ZIMethod.h
00004 //
00005 //  General Description: Input method definitions
00006 //
00007 //-------------------------------------------------------------------------------------------------
00008 //
00009 //                            Motorola Confidential Proprietary
00010 //                     Template ID and version: TMP_LFC_50068  Version 1.2
00011 //                      (c) Copyright Motorola 2004, All Rights Reserved
00012 //
00013 //-------------------------------------------------------------------------------------------------
00014 
00015 #ifndef Z760_IMETHOD_H
00016 #define Z760_IMETHOD_H
00017 
00018 #ifndef __cplusplus
00019 #error "This is a C++ header file;it requires C++ to compile."
00020 #endif
00021 
00022 
00023 #include <quuid.h>
00024 #include <qmap.h>
00025 #include <qstring.h>
00026 
00027 /**
00028  * This file defines the EZX pre-defined keyboards and some keyboard 
00029  * related functions.
00030  */
00031 
00032 /**
00033  * English keyboard 
00034  *
00035  * {637A8A14-AF98-41DA-969A-2BD16ECDA800}
00036  */
00037 #ifndef IMID_ENGLISH_KB
00038 #  define IMID_ENGLISH_KB QUuid( 0x637a8a14, 0xaf98, 0x41da, 0x96, 0x9a, 0x2b, 0xd1, 0x6e, 0xcd, 0xa8, 0x00)
00039 #endif
00040 
00041 
00042 /**
00043  * Number keyboard 
00044  *
00045  * {637A8A14-AF98-41DA-969A-2BD16ECDA810}
00046  */
00047 #ifndef IMID_NUMBER_KB
00048 #  define IMID_NUMBER_KB QUuid( 0x637a8a14, 0xaf98, 0x41da, 0x96, 0x9a, 0x2b, 0xd1, 0x6e, 0xcd, 0xa8, 0x10)
00049 #endif
00050 
00051 /**
00052  * Chinese PinYin keyboard 
00053  *
00054  * {637A8A14-AF98-41DA-969A-2BD16ECD0010}
00055  */
00056 #ifndef IMID_PINYIN_KB
00057 #  define IMID_PINYIN_KB QUuid( 0x637a8a14, 0xaf98, 0x41da, 0x96, 0x9a, 0x2b, 0xd1, 0x6e, 0xcd, 0x00, 0x10)
00058 #endif
00059 
00060 
00061 /**
00062  * Chinese ZhuYin keyboard 
00063  *
00064  * {637A8A14-AF98-41DA-969A-2BD16ECDA010}
00065  */
00066 #ifndef IMID_ZHUYIN_KB
00067 #  define IMID_ZHUYIN_KB QUuid( 0x637a8a14, 0xaf98, 0x41da, 0x96, 0x9a, 0x2b, 0xd1, 0x6e, 0xcd, 0xa0, 0x10)
00068 #endif
00069 
00070 // {637A8A10-AF98-41DA-969A-2BD16ECDA813}
00071 # ifndef IMID_THAI_KB
00072 #  define IMID_THAI_KB QUuid( 0x637a8a10, 0xaf98, 0x41da, 0x96, 0x9a, 0x2b, 0xd1, 0x6e, 0xcd, 0xa8, 0x13)
00073 # endif
00074 
00075 /**
00076  * Handwriting keyboard 
00077  *
00078  * {HWRCLASS-AF98-41DA-969A-2BD16ECDA410}
00079  */
00080 #define HWRCLASS     0x6919720a
00081 #ifndef IMID_HANDWRITING_KB
00082 #  define IMID_HANDWRITING_KB QUuid( HWRCLASS, 0xaf98, 0x41da, 0x96, 0x9a, 0x2b, 0xd1, 0x6e, 0xcd, 0xa4, 0x10)
00083 #endif
00084 
00085 
00086 
00087 /**
00088  * MMS message composer object keyboard 
00089  *
00090  * {637A8A00-AF98-41DA-969A-2BD16ECD0000}
00091  */
00092 #ifndef IMID_MMSOBJECT_KB
00093 #  define IMID_MMSOBJECT_KB QUuid( 0x637a8a00, 0xaf98, 0x41da, 0x96, 0x9a, 0x2b, 0xd1, 0x6e, 0xcd, 0x00, 0x00)
00094 #endif
00095 
00096 
00097 /**
00098  * EMS message composer object keyboard 
00099  *
00100  * {637A8A00-AF98-41DA-969A-2BD16ECD0010}
00101  */
00102 #ifndef IMID_EMSOBJECT_KB
00103 #  define IMID_EMSOBJECT_KB QUuid( 0x637a8a00, 0xaf98, 0x41da, 0x96, 0x9a, 0x2b, 0xd1, 0x6e, 0xcd, 0x00, 0x10)
00104 #endif
00105 
00106 
00107 #ifndef IMID_UNDEFINED
00108 #define IMID_UNDEFINED QUuid()
00109 #endif
00110 
00111 typedef QMap<QUuid, QString> QIMMap;
00112 
00113 namespace ZGlobal
00114 {
00115     /**
00116      * Set the input method
00117      *
00118      * @param inputMethod the input method selected.  If the input method is not 
00119      * specified, the default input method will be used
00120      *
00121      * @see ZApplication
00122      *
00123      * @see ZMainWidget
00124      *
00125      * @note the function will be implemented in the A780
00126      */
00127     void setInputMethod(const QUuid& inputMethod = IMID_UNDEFINED);
00128 
00129     /**
00130      * Hide the input method widget
00131      *
00132      * @note the function will be implemented in the A780
00133      */
00134     void hideInputWidget();
00135 
00136     /**
00137      * Show the input method widget
00138      *
00139      * @param mwId the id of the widget which is bound with input widget
00140      *
00141      * @internal
00142      */
00143     void showInputWidget(int mwId, int show, bool local = false);
00144 
00145     /**
00146      * Set the input method
00147      *
00148      * @param mwId the id of the widget which is bound with input widget
00149      * @param inputMethod the input method selected
00150      *
00151      * @internal
00152      */
00153     void setInputMethod(int mwId, const QUuid& inputMethod, bool local = false);
00154 };
00155 
00156 #endif //Z760_IMETHOD_H
00157 
00158 
00159 

Generated at Wed Mar 3 13:21:58 2004 by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001