| 1 | #cxx . . $ `<file>/src/OpenMSXConnection.h`/ifndef OPENMSXCONNECTION_HH |
| 2 | #define OPENMSXCONNECTION_HHcxx . . $ `src/OpenMSXConnection.h:2:9`! |
| 3 | |
| 4 | #include <QObject> |
| 5 | #include <QAbstractSocket> |
| 6 | #include <QXmlStreamAttributes> |
| 7 | #include <QQueue> |
| 8 | #include <memory> |
| 9 | #include <functional> |
| 10 | |
| 11 | class QXmlStreamReadercxx . . $ QXmlStreamReader#; |
| 12 | |
| 13 | class CommandBasecxx . . $ CommandBase# |
| 14 | { |
| 15 | public: |
| 16 | virtual ~cxx . . $ CommandBase#`~CommandBase`(ced63f7c635d850d).CommandBasecxx . . $ CommandBase#() = default; |
| 17 | |
| 18 | virtual QStringcxx . . $ QString# getCommandcxx . . $ CommandBase#getCommand(6ef7b6c27b00b43d).() const = 0; |
| 19 | virtual void replyOkcxx . . $ CommandBase#replyOk(3520e46b33348bf6). (const QStringcxx . . $ QString#& message) = 0; |
| 20 | virtual void replyNokcxx . . $ CommandBase#replyNok(3520e46b33348bf6).(const QStringcxx . . $ QString#& message) = 0; |
| 21 | virtual void cancelcxx . . $ CommandBase#cancel(49f6e7a06ebc5aa8).() = 0; |
| 22 | }; |
| 23 | |
| 24 | class SimpleCommandcxx . . $ SimpleCommand# : public CommandBasecxx . . $ CommandBase# |
| 25 | { |
| 26 | public: |
| 27 | SimpleCommandcxx . . $ SimpleCommand#SimpleCommand(7df51288a9ebd664).(QStringcxx . . $ QString# command_) |
| 28 | : commandcxx . . $ QString#QString(28715ad661ad3cec).(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(command_)) {} |
| 29 | QStringcxx . . $ QString# getCommandcxx . . $ SimpleCommand#getCommand(6ef7b6c27b00b43d).() const override { return commandcxx . . $ SimpleCommand#command.; } |
| 30 | void replyOkcxx . . $ SimpleCommand#replyOk(3520e46b33348bf6). (const QStringcxx . . $ QString#& message) override; |
| 31 | void replyNokcxx . . $ SimpleCommand#replyNok(3520e46b33348bf6).(const QStringcxx . . $ QString#& message) override; |
| 32 | void cancelcxx . . $ SimpleCommand#cancel(49f6e7a06ebc5aa8).() override; |
| 33 | |
| 34 | private: |
| 35 | QStringcxx . . $ QString# commandcxx . . $ SimpleCommand#command.; |
| 36 | }; |
| 37 | |
| 38 | class Commandcxx . . $ Command# : public CommandBasecxx . . $ CommandBase# |
| 39 | { |
| 40 | public: |
| 41 | Commandcxx . . $ Command#Command(cd32252f2f661ecc).(QStringcxx . . $ QString# command, |
| 42 | stdcxx . . $ std/::functioncxx . . $ std/function#<void(const QStringcxx . . $ QString#&)> okCallback, |
| 43 | stdcxx . . $ std/::functioncxx . . $ std/function#<void(const QStringcxx . . $ QString#&)> errorCallback =cxx . . $ std/function#function(ced63f7c635d850d). {}); |
| 44 | |
| 45 | QStringcxx . . $ QString# getCommandcxx . . $ Command#getCommand(6ef7b6c27b00b43d).() const override; |
| 46 | |
| 47 | void replyOkcxx . . $ Command#replyOk(3520e46b33348bf6). (const QStringcxx . . $ QString#& message) override; |
| 48 | void replyNokcxx . . $ Command#replyNok(3520e46b33348bf6).(const QStringcxx . . $ QString#& message) override; |
| 49 | void cancelcxx . . $ Command#cancel(49f6e7a06ebc5aa8).() override; |
| 50 | |
| 51 | private: |
| 52 | QStringcxx . . $ QString# commandcxx . . $ Command#command.; |
| 53 | stdcxx . . $ std/::functioncxx . . $ std/function# <void (const QStringcxx . . $ QString#&)> okCallbackcxx . . $ Command#okCallback.; |
| 54 | stdcxx . . $ std/::functioncxx . . $ std/function# <void (const QStringcxx . . $ QString#&)> errorCallbackcxx . . $ Command#errorCallback.; |
| 55 | }; |
| 56 | |
| 57 | class ReadDebugBlockCommandcxx . . $ ReadDebugBlockCommand# : public SimpleCommandcxx . . $ SimpleCommand# |
| 58 | { |
| 59 | public: |
| 60 | ReadDebugBlockCommandcxx . . $ ReadDebugBlockCommand#ReadDebugBlockCommand(c313e3c50272059d).(const QStringcxx . . $ QString#& commandString, unsigned size, |
| 61 | unsigned char* target); |
| 62 | ReadDebugBlockCommandcxx . . $ ReadDebugBlockCommand#ReadDebugBlockCommand(738b5a16411aaa2c).(const QStringcxx . . $ QString#& debuggable, unsigned offset, unsigned size, |
| 63 | unsigned char* target); |
| 64 | |
| 65 | protected: |
| 66 | void copyDatacxx . . $ ReadDebugBlockCommand#copyData(3520e46b33348bf6).(const QStringcxx . . $ QString#& message); |
| 67 | |
| 68 | private: |
| 69 | unsigned sizecxx . . $ ReadDebugBlockCommand#size.; |
| 70 | unsigned char* targetcxx . . $ ReadDebugBlockCommand#target.; |
| 71 | }; |
| 72 | |
| 73 | class WriteDebugBlockCommandcxx . . $ WriteDebugBlockCommand# : public SimpleCommandcxx . . $ SimpleCommand# |
| 74 | { |
| 75 | public: |
| 76 | WriteDebugBlockCommandcxx . . $ WriteDebugBlockCommand#WriteDebugBlockCommand(738b5a16411aaa2c).(const QStringcxx . . $ QString#& debuggable, unsigned offset, unsigned size, |
| 77 | unsigned char* source); |
| 78 | }; |
| 79 | |
| 80 | class OpenMSXConnectioncxx . . $ OpenMSXConnection# : public QObjectcxx . . $ QObject# |
| 81 | { |
| 82 | Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`! |
| 83 | public: |
| 84 | /** require: socket must be in connected state */ |
| 85 | OpenMSXConnectioncxx . . $ OpenMSXConnection#OpenMSXConnection(98ecbbf7f4bed384).(QAbstractSocketcxx . . $ QAbstractSocket#* socket); |
| 86 | ~cxx . . $ OpenMSXConnection#`~OpenMSXConnection`(ced63f7c635d850d).OpenMSXConnectioncxx . . $ OpenMSXConnection#() override; |
| 87 | |
| 88 | void sendCommandcxx . . $ OpenMSXConnection#sendCommand(6fe5d9dff2ed3a64).(CommandBasecxx . . $ CommandBase#* command); |
| 89 | |
| 90 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 91 | void disconnectedcxx . . $ OpenMSXConnection#disconnected(49f6e7a06ebc5aa8).(); |
| 92 | void logParsedcxx . . $ OpenMSXConnection#logParsed(c1427772cd1877b0).(const QStringcxx . . $ QString#& level, const QStringcxx . . $ QString#& message); |
| 93 | void updateParsedcxx . . $ OpenMSXConnection#updateParsed(9f9ceb6f9de3a67b).(const QStringcxx . . $ QString#& type, const QStringcxx . . $ QString#& name, const QStringcxx . . $ QString#& message); |
| 94 | |
| 95 | private: |
| 96 | void processDatacxx . . $ OpenMSXConnection#processData(49f6e7a06ebc5aa8).(); |
| 97 | void socketStateChangedcxx . . $ OpenMSXConnection#socketStateChanged(369bba9c19fba560).(QAbstractSocketcxx . . $ QAbstractSocket#::SocketStatecxx . . $ QAbstractSocket#SocketState# state); |
| 98 | void socketErrorcxx . . $ OpenMSXConnection#socketError(c866838463bd22b).(QAbstractSocketcxx . . $ QAbstractSocket#::SocketErrorcxx . . $ QAbstractSocket#SocketError# state); |
| 99 | |
| 100 | void cleanupcxx . . $ OpenMSXConnection#cleanup(49f6e7a06ebc5aa8).(); |
| 101 | void cancelPendingcxx . . $ OpenMSXConnection#cancelPending(49f6e7a06ebc5aa8).(); |
| 102 | |
| 103 | bool startElementcxx . . $ OpenMSXConnection#startElement(ed0becdc17f9a63d).(const QStringRefcxx . . $ QStringRef#& qName, const QXmlStreamAttributescxx . . $ QXmlStreamAttributes#& atts); |
| 104 | bool endElementcxx . . $ OpenMSXConnection#endElement(cfc8bc34dd4f2e69).(const QStringRefcxx . . $ QStringRef#& qName); |
| 105 | bool characterscxx . . $ OpenMSXConnection#characters(cfc8bc34dd4f2e69).(const QStringRefcxx . . $ QStringRef#& ch); |
| 106 | |
| 107 | private: |
| 108 | //std::unique_ptr<QAbstractSocket> socket; |
| 109 | QAbstractSocketcxx . . $ QAbstractSocket#* socketcxx . . $ OpenMSXConnection#socket.; |
| 110 | stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<QXmlStreamReadercxx . . $ QXmlStreamReader#> readercxx . . $ OpenMSXConnection#reader.; |
| 111 | |
| 112 | QStringcxx . . $ QString# xmlDatacxx . . $ OpenMSXConnection#xmlData.; |
| 113 | QXmlStreamAttributescxx . . $ QXmlStreamAttributes# xmlAttrscxx . . $ OpenMSXConnection#xmlAttrs.; |
| 114 | QQueuecxx . . $ QQueue#<CommandBasecxx . . $ CommandBase#*> commandscxx . . $ OpenMSXConnection#commands.; |
| 115 | bool connectedcxx . . $ OpenMSXConnection#connected.; |
| 116 | }; |
| 117 | |
| 118 | #endif |