00001 #ifndef EXAMPLEBOARDIMPL_H
00002 #define EXAMPLEBOARDIMPL_H
00003
00004 #include <qhbox.h>
00005
00006 #include <qpe/inputmethodinterface.h>
00007
00008 class QPixmap;
00009 class QCheckBox;
00010 class ExampleBoard : public QHBox {
00011 Q_OBJECT
00012 public:
00013 ExampleBoard( QWidget *par, WFlags f );
00014 ~ExampleBoard();
00015 void resetState();
00016 private slots:
00017 void slotKey(int);
00018 void slotShift(bool);
00019 void slotAlt(bool);
00020 void slotCtrl(bool);
00021 signals:
00022 void key(ushort,ushort,ushort,bool,bool);
00023 private:
00024 int m_state;
00025 QCheckBox *m_alt,*m_shi,*m_ctrl;
00026 };
00027
00028 class ExampleboardImpl : public InputMethodInterface
00029 {
00030 public:
00031 ExampleboardImpl();
00032 virtual ~ExampleboardImpl();
00033
00034 #ifndef QT_NO_COMPONENT
00035 QRESULT queryInterface( const QUuid&, QUnknownInterface** );
00036 Q_REFCOUNT
00037 #endif
00038
00039 virtual QWidget *inputMethod( QWidget *parent, Qt::WFlags f );
00040 virtual void resetState();
00041 virtual QPixmap *icon();
00042 virtual QString name();
00043 virtual void onKeyPress( QObject *receiver, const char *slot );
00044
00045 private:
00046 ExampleBoard *m_pickboard;
00047 QPixmap *m_icn;
00048 };
00049
00050 #endif