| 1 | /**************************************************************************** |
| 2 | ** |
| 3 | ** Copyright (C) 2006-2008 fullmetalcoder <[email protected]> |
| 4 | ** |
| 5 | ** This file is part of the Edyuk project <http://edyuk.org> |
| 6 | ** |
| 7 | ** This file may be used under the terms of the GNU General Public License |
| 8 | ** version 2 as published by the Free Software Foundation and appearing in the |
| 9 | ** file GPL.txt included in the packaging of this file. |
| 10 | ** |
| 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
| 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
| 13 | ** |
| 14 | ****************************************************************************/ |
| 15 | |
| 16 | #ifndef _QINTER_PROCESS_CHANNEL_H_ |
| 17 | #define _QINTER_PROCESS_CHANNEL_H_cxx . . $ `gui/src/qcumber/qinterprocesschannel.h:17:9`! |
| 18 | |
| 19 | #include "qcumber.h"cxx . . $ `<file>/gui/src/qcumber/qcumber.h`/ |
| 20 | |
| 21 | /*! |
| 22 | \file qinterprocesschannel.h |
| 23 | |
| 24 | \brief Definition of the QInterProcessChannel class. |
| 25 | */ |
| 26 | |
| 27 | #include <QByteArray> |
| 28 | #include <QHostAddress> |
| 29 | #include <QString> |
| 30 | #include <QThread> |
| 31 | |
| 32 | class QTimercxx . . $ QTimer#; |
| 33 | class QTcpServercxx . . $ QTcpServer#; |
| 34 | class QManagedSocketcxx . . $ QManagedSocket#; |
| 35 | |
| 36 | class QCUMBER_EXPORTcxx . . $ `gui/src/qcumber/qcumber.h:20:9`! QInterProcessChannelcxx . . $ QInterProcessChannel# : public QThreadcxx . . $ QThread# { |
| 37 | Q_OBJECTcxx . . $ QInterProcessChannel#trUtf8(75d9f1c324b4579d). |
| 38 | |
| 39 | public: |
| 40 | QInterProcessChannelcxx . . $ QInterProcessChannel#QInterProcessChannel(749de1b6ae65bddd).(QObjectcxx . . $ QObject#* p = 0); |
| 41 | virtual ~cxx . . $ QInterProcessChannel#`~QInterProcessChannel`(49f6e7a06ebc5aa8).QInterProcessChannelcxx . . $ QInterProcessChannel#(); |
| 42 | |
| 43 | bool isServercxx . . $ QInterProcessChannel#isServer(50ce9a9e25b4a850).() const; |
| 44 | |
| 45 | QStringcxx . . $ QString# messageBuffercxx . . $ QInterProcessChannel#messageBuffer(6ef7b6c27b00b43d).() const; |
| 46 | |
| 47 | public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 48 | void closecxx . . $ QInterProcessChannel#close(49f6e7a06ebc5aa8).(); |
| 49 | void reconnectcxx . . $ QInterProcessChannel#reconnect(49f6e7a06ebc5aa8).(); |
| 50 | |
| 51 | void sendMessagecxx . . $ QInterProcessChannel#sendMessage(49f6e7a06ebc5aa8).(); |
| 52 | void sendMessagecxx . . $ QInterProcessChannel#sendMessage(3520e46b33348bf6).(const QStringcxx . . $ QString#& s); |
| 53 | void sendMessagecxx . . $ QInterProcessChannel#sendMessage(45672f3c6961a244).(const QByteArraycxx . . $ QByteArray#& b); |
| 54 | |
| 55 | void setMessageBuffercxx . . $ QInterProcessChannel#setMessageBuffer(3520e46b33348bf6).(const QStringcxx . . $ QString#& s); |
| 56 | |
| 57 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 58 | void connectionLostcxx . . $ QInterProcessChannel#connectionLost(49f6e7a06ebc5aa8).(); |
| 59 | |
| 60 | void messagecxx . . $ QInterProcessChannel#message(3520e46b33348bf6).(const QStringcxx . . $ QString#& s); |
| 61 | void requestcxx . . $ QInterProcessChannel#request(631c0101495f0328).(const QStringListcxx . . $ QStringList#& l); |
| 62 | |
| 63 | void gotServerRolecxx . . $ QInterProcessChannel#gotServerRole(49f6e7a06ebc5aa8).(); |
| 64 | void serverRoleChangedcxx . . $ QInterProcessChannel#serverRoleChanged(b45ddcbc8423892c).(bool y); |
| 65 | |
| 66 | protected: |
| 67 | QStringcxx . . $ QString# rcFilecxx . . $ QInterProcessChannel#rcFile.; |
| 68 | virtual void runcxx . . $ QInterProcessChannel#run(49f6e7a06ebc5aa8).(); |
| 69 | |
| 70 | private slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 71 | void initcxx . . $ QInterProcessChannel#init(49f6e7a06ebc5aa8).(); |
| 72 | void checkcxx . . $ QInterProcessChannel#check(49f6e7a06ebc5aa8).(); |
| 73 | void connectioncxx . . $ QInterProcessChannel#connection(49f6e7a06ebc5aa8).(); |
| 74 | void messagecxx . . $ QInterProcessChannel#message(c179580cee373a57).(const QStringcxx . . $ QString#& m, QManagedSocketcxx . . $ QManagedSocket#* s); |
| 75 | |
| 76 | private: |
| 77 | QStringcxx . . $ QString# sMsgcxx . . $ QInterProcessChannel#sMsg.; |
| 78 | QHostAddresscxx . . $ QHostAddress# m_addrcxx . . $ QInterProcessChannel#m_addr.; |
| 79 | quint16cxx . . $ quint16# m_portcxx . . $ QInterProcessChannel#m_port., m_maxcxx . . $ QInterProcessChannel#m_max.; |
| 80 | |
| 81 | QTcpServercxx . . $ QTcpServer#* pServercxx . . $ QInterProcessChannel#pServer.; |
| 82 | QTimercxx . . $ QTimer#* pServerTimercxx . . $ QInterProcessChannel#pServerTimer.; |
| 83 | }; |
| 84 | |
| 85 | #endif // !_QINTER_PROCESS_CHANNEL_H_ |