inputmethodinterface.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef INPUTMETHODINTERFACE_H
00022 #define INPUTMETHODINTERFACE_H
00023
00024 #include <qpe/qcom.h>
00025
00026 #include <qnamespace.h>
00027 #include <qstring.h>
00028
00029 #ifndef QT_NO_COMPONENT
00030
00031 # ifndef IID_InputMethod
00032 # define IID_InputMethod QUuid( 0x637a8a14, 0xaf98, 0x41da, 0x96, 0x9a, 0x2b, 0xd1, 0x6e, 0xcd, 0xa8, 0xc7)
00033 # endif
00034 #endif
00035
00036 class QWidget;
00037 class QPixmap;
00038 class QObject;
00039 class QWSInputMethod;
00040
00041 struct InputMethodInterface : public QUnknownInterface
00042 {
00043 virtual QWidget *inputMethod( QWidget *parent, Qt::WFlags f ) = 0;
00044 virtual void resetState() = 0;
00045 virtual QPixmap *icon() = 0;
00046 virtual QString name() = 0;
00047 virtual void onKeyPress( QObject *receiver, const char *slot ) = 0;
00048 };
00049
00050
00051 #ifndef IID_ExtInputMethod
00052 #define IID_ExtInputMethod QUuid( 0x70f0991c, 0x8282, 0x4625, 0xa2, 0x79, 0xbd, 0x9d, 0x7d, 0x95, 0x9f, 0xf6)
00053 #endif
00054
00055 struct ExtInputMethodInterface : public QUnknownInterface
00056 {
00057
00058 virtual QString name() = 0;
00059 virtual QPixmap *icon() = 0;
00060
00061
00062 virtual void resetState() = 0;
00063
00064 virtual QWidget *keyboardWidget( QWidget *parent, Qt::WFlags f ) = 0;
00065
00066 virtual QStringList compatible() = 0;
00067
00068 virtual QWSInputMethod *inputMethod() = 0;
00069 virtual QWidget *statusWidget( QWidget *parent, Qt::WFlags f )= 0;
00070
00071 virtual void qcopReceive( const QCString &msg, const QByteArray &data )= 0;
00072 };
00073
00074
00075 #endif
This file is part of the documentation for OPIE Version 1.5.5.