|
SCIMBridge 0.4.x
|
00001 /* 00002 * SCIM Bridge 00003 * 00004 * Copyright (c) 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net> 00005 * 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation and 00010 * appearing in the file LICENSE.LGPL included in the package of this file. 00011 * You can also redistribute it and/or modify it under the terms of 00012 * the GNU General Public License as published by the Free Software Foundation and 00013 * appearing in the file LICENSE.GPL included in the package of this file. 00014 * 00015 * This library is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00018 */ 00019 00026 #ifndef SCIMBRIDGECLIENTQT_H_ 00027 #define SCIMBRIDGECLIENTQT_H_ 00028 00029 #ifdef QT4 00030 #include <QObject> 00031 #include <QSocketNotifier> 00032 #else 00033 #include <qobject.h> 00034 #include <qsocketnotifier.h> 00035 #endif 00036 00037 #include "scim-bridge.h" 00038 #include "scim-bridge-client-imcontext-qt.h" 00039 #include "scim-bridge-client-common-qt.h" 00040 00044 class ScimBridgeClientQt: public QObject 00045 { 00046 00047 Q_OBJECT 00048 00049 public slots: 00050 00051 void handle_message (); 00052 00053 00054 public: 00055 00056 00060 ScimBridgeClientQt (); 00061 00062 00066 ~ScimBridgeClientQt (); 00067 00068 00072 void messenger_opened (); 00073 00074 00078 void messenger_closed (); 00079 00080 00081 private: 00082 00083 00087 QSocketNotifier *socket_notifier; 00088 00089 }; 00090 00091 #endif /*SCIMBRIDGECLIENTQT_H_*/
1.7.3