Qtopia library API Documentation

inputmethodinterface.h

00001 /**********************************************************************
00002 ** Copyright (C) 2000-2002 Trolltech AS.  All rights reserved.
00003 **
00004 ** This file is part of the Qtopia Environment.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00015 **
00016 ** Contact info@trolltech.com if any conditions of this licensing are
00017 ** not clear to you.
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 // {637A8A14-AF98-41DA-969A-2BD16ECDA8C7}
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 // {70F0991C-8282-4625-A279-BD9D7D959FF6}
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     //identifying functions.
00058     virtual QString name() = 0;
00059     virtual QPixmap *icon() = 0;
00060 
00061     // state managment.
00062     virtual void resetState() = 0;
00063 
00064     virtual QWidget *keyboardWidget( QWidget *parent, Qt::WFlags f ) = 0;
00065     // filenames, not menu names.
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
KDE Logo
This file is part of the documentation for OPIE Version 1.5.5.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:24:05 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001