| 1 | #cxx . . $ `<file>/src/OpenMSXConnection.cpp`/include "OpenMSXConnection.h"cxx . . $ `<file>/src/OpenMSXConnection.h`/ |
| 2 | #include <QXmlStreamReader> |
| 3 | #include <cassert> |
| 4 | |
| 5 | |
| 6 | void SimpleCommandcxx . . $ SimpleCommand#::replyOkcxx . . $ SimpleCommand#replyOk(3520e46b33348bf6). (const QStringcxx . . $ QString#& /*message*/) |
| 7 | { |
| 8 | delete this; |
| 9 | } |
| 10 | |
| 11 | void SimpleCommandcxx . . $ SimpleCommand#::replyNokcxx . . $ SimpleCommand#replyNok(3520e46b33348bf6).(const QStringcxx . . $ QString#& /*message*/) |
| 12 | { |
| 13 | cancelcxx . . $ SimpleCommand#cancel(49f6e7a06ebc5aa8).(); |
| 14 | } |
| 15 | |
| 16 | void SimpleCommandcxx . . $ SimpleCommand#::cancelcxx . . $ SimpleCommand#cancel(49f6e7a06ebc5aa8).() |
| 17 | { |
| 18 | delete this; |
| 19 | } |
| 20 | |
| 21 | |
| 22 | Commandcxx . . $ Command#::Commandcxx . . $ Command#Command(cd32252f2f661ecc).(QStringcxx . . $ QString# command_, |
| 23 | stdcxx . . $ std/::functioncxx . . $ std/function#<void(const QStringcxx . . $ QString#&)> okCallback_, |
| 24 | stdcxx . . $ std/::functioncxx . . $ std/function#<void(const QStringcxx . . $ QString#&)> errorCallback_) |
| 25 | : commandcxx . . $ Command#command.(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(command_)) |
| 26 | , okCallbackcxx . . $ Command#okCallback.(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(okCallback_)) |
| 27 | , errorCallbackcxx . . $ Command#errorCallback.(stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(errorCallback_)) |
| 28 | { |
| 29 | } |
| 30 | |
| 31 | void Commandcxx . . $ Command#::replyOkcxx . . $ Command#replyOk(3520e46b33348bf6).(const QStringcxx . . $ QString#& message) |
| 32 | { |
| 33 | okCallbackcxx . . $ Command#okCallback.(cxx . . $ std/function#`operator()`(39e0826ffb540481).message); |
| 34 | delete this; |
| 35 | } |
| 36 | |
| 37 | void Commandcxx . . $ Command#::replyNokcxx . . $ Command#replyNok(3520e46b33348bf6).(const QStringcxx . . $ QString#& message) |
| 38 | { |
| 39 | if (errorCallbackcxx . . $ Command#errorCallback. !=cxx . . $ std/`operator!=`(4c6f199c20229037). nullptr) |
| 40 | errorCallbackcxx . . $ Command#errorCallback.(cxx . . $ std/function#`operator()`(39e0826ffb540481).message); |
| 41 | cancelcxx . . $ Command#cancel(49f6e7a06ebc5aa8).(); |
| 42 | } |
| 43 | |
| 44 | QStringcxx . . $ QString# Commandcxx . . $ Command#::getCommandcxx . . $ Command#getCommand(6ef7b6c27b00b43d).() const |
| 45 | { |
| 46 | return commandcxx . . $ QString#QString(132dd6869045752b).; |
| 47 | } |
| 48 | |
| 49 | void Commandcxx . . $ Command#::cancelcxx . . $ Command#cancel(49f6e7a06ebc5aa8).() |
| 50 | { |
| 51 | delete this; |
| 52 | } |
| 53 | |
| 54 | static QStringcxx . . $ QString# createDebugCommandcxx . . $ createDebugCommand(76d1232f10aaa36b).(const QStringcxx . . $ QString#& debuggable, |
| 55 | unsigned offset, unsigned size) |
| 56 | { |
| 57 | return QStringcxx . . $ QString#QString(85c52e162fed56f9).("debug_bin2hex [ debug read_block %1 %2 %3 ]") |
| 58 | .argcxx . . $ QString#arg(bc823072288cbbb5).(debuggable).argcxx . . $ QString#arg(173a29139b43af1f).(offset).argcxx . . $ QString#arg(173a29139b43af1f).(size); |
| 59 | } |
| 60 | |
| 61 | ReadDebugBlockCommandcxx . . $ ReadDebugBlockCommand#::ReadDebugBlockCommandcxx . . $ ReadDebugBlockCommand#ReadDebugBlockCommand(c313e3c50272059d).(const QStringcxx . . $ QString#& commandString, |
| 62 | unsigned size_, unsigned char* target_) |
| 63 | : SimpleCommandcxx . . $ SimpleCommand#(commandStringcxx . . $ QString#QString(132dd6869045752b).) |
| 64 | , sizecxx . . $ ReadDebugBlockCommand#size.(size_), targetcxx . . $ ReadDebugBlockCommand#target.(target_) |
| 65 | { |
| 66 | } |
| 67 | |
| 68 | ReadDebugBlockCommandcxx . . $ ReadDebugBlockCommand#::ReadDebugBlockCommandcxx . . $ ReadDebugBlockCommand#ReadDebugBlockCommand(738b5a16411aaa2c).(const QStringcxx . . $ QString#& debuggable, |
| 69 | unsigned offset, unsigned size_, unsigned char* target_) |
| 70 | : SimpleCommandcxx . . $ SimpleCommand#(createDebugCommandcxx . . $ createDebugCommand(76d1232f10aaa36b).(debuggable, offset, size_)) |
| 71 | , sizecxx . . $ ReadDebugBlockCommand#size.(size_), targetcxx . . $ ReadDebugBlockCommand#target.(target_) |
| 72 | { |
| 73 | } |
| 74 | |
| 75 | static QStringcxx . . $ QString# createDebugWriteCommandcxx . . $ createDebugWriteCommand(7a973c8cf294c05e).(const QStringcxx . . $ QString#& debuggable, |
| 76 | unsigned offset, unsigned size, unsigned char *data) |
| 77 | { |
| 78 | QStringcxx . . $ QString# cmd = QStringcxx . . $ QString#QString(85c52e162fed56f9).("debug write_block %1 %2 [ debug_hex2bin \"") |
| 79 | .argcxx . . $ QString#arg(bc823072288cbbb5).(debuggable).argcxx . . $ QString#arg(173a29139b43af1f).(offset); |
| 80 | for (unsigned i = offset; i < offset + size; ++i) { |
| 81 | cmd +=cxx . . $ QString#`operator+=`(6a89d0b7f4d2681c). QStringcxx . . $ QString#QString(85c52e162fed56f9).("%1").argcxx . . $ QString#arg(64ab2ed17cc11715).(int(data[i]), 2, 16, QCharcxx . . $ QChar#('0')).toUppercxx . . $ QString#toUpper(30b3b70527b1c61a).(); |
| 82 | } |
| 83 | cmd +=cxx . . $ QString#`operator+=`(d02845eef0c33901). "\" ]"; |
| 84 | return cmdcxx . . $ QString#QString(28715ad661ad3cec).; |
| 85 | } |
| 86 | WriteDebugBlockCommandcxx . . $ WriteDebugBlockCommand#::WriteDebugBlockCommandcxx . . $ WriteDebugBlockCommand#WriteDebugBlockCommand(738b5a16411aaa2c).(const QStringcxx . . $ QString#& debuggable, |
| 87 | unsigned offset, unsigned size_, unsigned char* source_) |
| 88 | : SimpleCommandcxx . . $ SimpleCommand#(createDebugWriteCommandcxx . . $ createDebugWriteCommand(7a973c8cf294c05e).(debuggable, offset, size_, source_)) |
| 89 | { |
| 90 | } |
| 91 | |
| 92 | |
| 93 | static unsigned char hex2valcxx . . $ hex2val(37bf0c9286c484e9).(char c) |
| 94 | { |
| 95 | return (c <= '9') ? (c - '0') : (c - 'A' + 10); |
| 96 | } |
| 97 | void ReadDebugBlockCommandcxx . . $ ReadDebugBlockCommand#::copyDatacxx . . $ ReadDebugBlockCommand#copyData(3520e46b33348bf6).(const QStringcxx . . $ QString#& message) |
| 98 | { |
| 99 | assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(static_cast<unsigned>(message.size()) == 2 * size); |
| 100 | for (unsigned i = 0; i < sizecxx . . $ ReadDebugBlockCommand#size.; ++i) { |
| 101 | targetcxx . . $ ReadDebugBlockCommand#target.[i] = (hex2valcxx . . $ hex2val(37bf0c9286c484e9).(message[cxx . . $ QString#`operator[]`(22c1bbde645d9599).2 * i + 0].toLatin1cxx . . $ QChar#toLatin1(a33b425be6aff8f0).()) << 4) + |
| 102 | (hex2valcxx . . $ hex2val(37bf0c9286c484e9).(message[cxx . . $ QString#`operator[]`(22c1bbde645d9599).2 * i + 1].toLatin1cxx . . $ QChar#toLatin1(a33b425be6aff8f0).()) << 0); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | |
| 107 | OpenMSXConnectioncxx . . $ OpenMSXConnection#::OpenMSXConnectioncxx . . $ OpenMSXConnection#OpenMSXConnection(98ecbbf7f4bed384).(QAbstractSocketcxx . . $ QAbstractSocket#* socket_) |
| 108 | : socketcxx . . $ OpenMSXConnection#socket.(socket_) |
| 109 | , readercxx . . $ OpenMSXConnection#reader.(new QXmlStreamReadercxx . . $ QXmlStreamReader#()) |
| 110 | , connectedcxx . . $ OpenMSXConnection#connected.(true) |
| 111 | { |
| 112 | assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(socket->isValid()); |
| 113 | |
| 114 | connectcxx . . $ QObject#connect(835f87066c895669).(socketcxx . . $ OpenMSXConnection#socket., &QAbstractSocketcxx . . $ QAbstractSocket#::readyReadcxx . . $ QIODevice#readyRead(49f6e7a06ebc5aa8)., |
| 115 | this, &OpenMSXConnectioncxx . . $ OpenMSXConnection#::processDatacxx . . $ OpenMSXConnection#processData(49f6e7a06ebc5aa8).); |
| 116 | connectcxx . . $ QObject#connect(835f87066c895669).(socketcxx . . $ OpenMSXConnection#socket., &QAbstractSocketcxx . . $ QAbstractSocket#::stateChangedcxx . . $ QAbstractSocket#stateChanged(369bba9c19fba560)., |
| 117 | this, &OpenMSXConnectioncxx . . $ OpenMSXConnection#::socketStateChangedcxx . . $ OpenMSXConnection#socketStateChanged(369bba9c19fba560).); |
| 118 | connectcxx . . $ QObject#connect(835f87066c895669).(socketcxx . . $ OpenMSXConnection#socket., &QAbstractSocketcxx . . $ QAbstractSocket#::errorOccurredcxx . . $ QAbstractSocket#errorOccurred(c866838463bd22b)., |
| 119 | this, &OpenMSXConnectioncxx . . $ OpenMSXConnection#::socketErrorcxx . . $ OpenMSXConnection#socketError(c866838463bd22b).); |
| 120 | |
| 121 | socketcxx . . $ OpenMSXConnection#socket.->writecxx . . $ QIODevice#write(1f59e9b51d5369a2).("<openmsx-control>\n"); |
| 122 | } |
| 123 | |
| 124 | OpenMSXConnectioncxx . . $ OpenMSXConnection#::~cxx . . $ OpenMSXConnection#`~OpenMSXConnection`(ced63f7c635d850d).OpenMSXConnectioncxx . . $ OpenMSXConnection#() |
| 125 | { |
| 126 | cleanupcxx . . $ OpenMSXConnection#cleanup(49f6e7a06ebc5aa8).(); |
| 127 | assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(commands.empty()); |
| 128 | assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(!connected); |
| 129 | socketcxx . . $ OpenMSXConnection#socket.->deleteLatercxx . . $ QObject#deleteLater(49f6e7a06ebc5aa8).(); |
| 130 | } |
| 131 | |
| 132 | void OpenMSXConnectioncxx . . $ OpenMSXConnection#::sendCommandcxx . . $ OpenMSXConnection#sendCommand(6fe5d9dff2ed3a64).(CommandBasecxx . . $ CommandBase#* command) |
| 133 | { |
| 134 | assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(command); |
| 135 | if (connectedcxx . . $ OpenMSXConnection#connected. && socketcxx . . $ OpenMSXConnection#socket.->isValidcxx . . $ QAbstractSocket#isValid(50ce9a9e25b4a850).()) { |
| 136 | commandscxx . . $ OpenMSXConnection#commands..enqueuecxx . . $ QQueue#enqueue(77d9f17553126ecb).(command); |
| 137 | QStringcxx . . $ QString# cmd = "<command>" +cxx . . $ operator+(c75c3ae4eb9af1a8). command->getCommandcxx . . $ CommandBase#getCommand(6ef7b6c27b00b43d).() +cxx . . $ operator+(3d22f08efddf8107). "</command>"; |
| 138 | socketcxx . . $ OpenMSXConnection#socket.->writecxx . . $ QIODevice#write(4ee2750a0be83987).(cmd.toUtf8cxx . . $ QString#toUtf8(ef52b713090bc85a).()); |
| 139 | } else { |
| 140 | command->cancelcxx . . $ CommandBase#cancel(49f6e7a06ebc5aa8).(); |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | void OpenMSXConnectioncxx . . $ OpenMSXConnection#::cleanupcxx . . $ OpenMSXConnection#cleanup(49f6e7a06ebc5aa8).() |
| 145 | { |
| 146 | if (!connectedcxx . . $ OpenMSXConnection#connected.) return; |
| 147 | |
| 148 | connectedcxx . . $ OpenMSXConnection#connected. = false; |
| 149 | if (socketcxx . . $ OpenMSXConnection#socket.->isValidcxx . . $ QAbstractSocket#isValid(50ce9a9e25b4a850).()) { |
| 150 | socketcxx . . $ OpenMSXConnection#socket.->disconnectcxx . . $ QObject#disconnect(105bbb4f746c4352).(this); |
| 151 | socketcxx . . $ OpenMSXConnection#socket.->writecxx . . $ QIODevice#write(1f59e9b51d5369a2).("</openmsx-control>\n"); |
| 152 | socketcxx . . $ OpenMSXConnection#socket.->disconnectFromHostcxx . . $ QAbstractSocket#disconnectFromHost(49f6e7a06ebc5aa8).(); |
| 153 | } |
| 154 | cancelPendingcxx . . $ OpenMSXConnection#cancelPending(49f6e7a06ebc5aa8).(); |
| 155 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! disconnectedcxx . . $ OpenMSXConnection#disconnected(49f6e7a06ebc5aa8).(); |
| 156 | } |
| 157 | |
| 158 | void OpenMSXConnectioncxx . . $ OpenMSXConnection#::cancelPendingcxx . . $ OpenMSXConnection#cancelPending(49f6e7a06ebc5aa8).() |
| 159 | { |
| 160 | assertcxx . . $ `<external>/4398592474888995393/assert.h:102:11`!(!connected); |
| 161 | while (!commandscxx . . $ OpenMSXConnection#commands..emptycxx . . $ QList#empty(50ce9a9e25b4a850).()) { |
| 162 | CommandBasecxx . . $ CommandBase#* command = commandscxx . . $ OpenMSXConnection#commands..dequeuecxx . . $ QQueue#dequeue(5f357b03ed472e5e).(); |
| 163 | command->cancelcxx . . $ CommandBase#cancel(49f6e7a06ebc5aa8).(); |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | void OpenMSXConnectioncxx . . $ OpenMSXConnection#::socketStateChangedcxx . . $ OpenMSXConnection#socketStateChanged(369bba9c19fba560).(QAbstractSocketcxx . . $ QAbstractSocket#::SocketStatecxx . . $ QAbstractSocket#SocketState# state) |
| 168 | { |
| 169 | if (state != QAbstractSocketcxx . . $ QAbstractSocket#::ConnectedStatecxx . . $ QAbstractSocket#ConnectedState.) { |
| 170 | cleanupcxx . . $ OpenMSXConnection#cleanup(49f6e7a06ebc5aa8).(); |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | void OpenMSXConnectioncxx . . $ OpenMSXConnection#::socketErrorcxx . . $ OpenMSXConnection#socketError(c866838463bd22b).(QAbstractSocketcxx . . $ QAbstractSocket#::SocketErrorcxx . . $ QAbstractSocket#SocketError# /*state*/) |
| 175 | { |
| 176 | cleanupcxx . . $ OpenMSXConnection#cleanup(49f6e7a06ebc5aa8).(); |
| 177 | } |
| 178 | |
| 179 | |
| 180 | void OpenMSXConnectioncxx . . $ OpenMSXConnection#::processDatacxx . . $ OpenMSXConnection#processData(49f6e7a06ebc5aa8).() |
| 181 | { |
| 182 | if (!readercxx . . $ OpenMSXConnection#reader.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).devicecxx . . $ QXmlStreamReader#device(84cdc49e7936af4f).()) { |
| 183 | readercxx . . $ OpenMSXConnection#reader.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).setDevicecxx . . $ QXmlStreamReader#setDevice(bebe8f2dee7f9e86).(socketcxx . . $ OpenMSXConnection#socket.); |
| 184 | } |
| 185 | |
| 186 | while (!readercxx . . $ OpenMSXConnection#reader.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).atEndcxx . . $ QXmlStreamReader#atEnd(50ce9a9e25b4a850).()) { |
| 187 | readercxx . . $ OpenMSXConnection#reader.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).readNextcxx . . $ QXmlStreamReader#readNext(b7ff4e19d2a802cc).(); |
| 188 | if (readercxx . . $ OpenMSXConnection#reader.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).isStartElementcxx . . $ QXmlStreamReader#isStartElement(50ce9a9e25b4a850).()) { |
| 189 | startElementcxx . . $ OpenMSXConnection#startElement(ed0becdc17f9a63d).(readercxx . . $ OpenMSXConnection#reader.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).namecxx . . $ QXmlStreamReader#name(d2d1e01c834b11a).(), readercxx . . $ OpenMSXConnection#reader.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).attributescxx . . $ QXmlStreamReader#attributes(67475bfd56333fa4).()); |
| 190 | } else if (readercxx . . $ OpenMSXConnection#reader.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).isEndElementcxx . . $ QXmlStreamReader#isEndElement(50ce9a9e25b4a850).()) { |
| 191 | endElementcxx . . $ OpenMSXConnection#endElement(cfc8bc34dd4f2e69).(readercxx . . $ OpenMSXConnection#reader.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).namecxx . . $ QXmlStreamReader#name(d2d1e01c834b11a).()); |
| 192 | } else if (readercxx . . $ OpenMSXConnection#reader.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).isCharacterscxx . . $ QXmlStreamReader#isCharacters(50ce9a9e25b4a850).()) { |
| 193 | characterscxx . . $ OpenMSXConnection#characters(cfc8bc34dd4f2e69).(readercxx . . $ OpenMSXConnection#reader.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).textcxx . . $ QXmlStreamReader#text(d2d1e01c834b11a).()); |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | if (readercxx . . $ OpenMSXConnection#reader.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).hasErrorcxx . . $ QXmlStreamReader#hasError(50ce9a9e25b4a850).() && readercxx . . $ OpenMSXConnection#reader.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).errorcxx . . $ QXmlStreamReader#error(918ce36fbc1b4676).() != QXmlStreamReadercxx . . $ QXmlStreamReader#::PrematureEndOfDocumentErrorcxx . . $ QXmlStreamReader#PrematureEndOfDocumentError.) { |
| 198 | qWarningcxx . . $ `<external>/10450329605257866924/qlogging.h:166:9`!("Fatal error on line %lli, column %lli: %s", |
| 199 | readercxx . . $ OpenMSXConnection#reader.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).lineNumbercxx . . $ QXmlStreamReader#lineNumber(98833e9ab7de59a4).(), readercxx . . $ OpenMSXConnection#reader.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).columnNumbercxx . . $ QXmlStreamReader#columnNumber(98833e9ab7de59a4).(), |
| 200 | readercxx . . $ OpenMSXConnection#reader.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).errorStringcxx . . $ QXmlStreamReader#errorString(6ef7b6c27b00b43d).().toLatin1cxx . . $ QString#toLatin1(7c2073558a834e49).().datacxx . . $ QByteArray#data(41208ce6ca65dd58).()); |
| 201 | cleanupcxx . . $ OpenMSXConnection#cleanup(49f6e7a06ebc5aa8).(); |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | bool OpenMSXConnectioncxx . . $ OpenMSXConnection#::startElementcxx . . $ OpenMSXConnection#startElement(ed0becdc17f9a63d).(const QStringRefcxx . . $ QStringRef#& /*qName*/, const QXmlStreamAttributescxx . . $ QXmlStreamAttributes#& atts) |
| 206 | { |
| 207 | xmlAttrscxx . . $ OpenMSXConnection#xmlAttrs. =cxx . . $ QXmlStreamAttributes#`operator=`(338e1a17a0ff1459). atts; |
| 208 | xmlDatacxx . . $ OpenMSXConnection#xmlData..clearcxx . . $ QString#clear(49f6e7a06ebc5aa8).(); |
| 209 | return true; |
| 210 | } |
| 211 | |
| 212 | bool OpenMSXConnectioncxx . . $ OpenMSXConnection#::endElementcxx . . $ OpenMSXConnection#endElement(cfc8bc34dd4f2e69).(const QStringRefcxx . . $ QStringRef#& qName) |
| 213 | { |
| 214 | if (qName ==cxx . . $ QStringRef#`operator==`(7d4bdb1abc417636). "openmsx-output") { |
| 215 | // ignore |
| 216 | } else if (qName ==cxx . . $ QStringRef#`operator==`(7d4bdb1abc417636). "reply") { |
| 217 | if (connectedcxx . . $ OpenMSXConnection#connected.) { |
| 218 | CommandBasecxx . . $ CommandBase#* command = commandscxx . . $ OpenMSXConnection#commands..dequeuecxx . . $ QQueue#dequeue(5f357b03ed472e5e).(); |
| 219 | if (xmlAttrscxx . . $ OpenMSXConnection#xmlAttrs..valuecxx . . $ QXmlStreamAttributes#value(d1818b7318ce2ed4).("result"cxx . . $ QString#QString(85c52e162fed56f9).) ==cxx . . $ QStringRef#`operator==`(7d4bdb1abc417636). "ok") { |
| 220 | command->replyOkcxx . . $ CommandBase#replyOk(3520e46b33348bf6). (xmlDatacxx . . $ OpenMSXConnection#xmlData.); |
| 221 | } else { |
| 222 | command->replyNokcxx . . $ CommandBase#replyNok(3520e46b33348bf6).(xmlDatacxx . . $ OpenMSXConnection#xmlData.); |
| 223 | } |
| 224 | } else { |
| 225 | // still receive a reply while we're already closing |
| 226 | // the connection, ignore it |
| 227 | } |
| 228 | } else if (qName ==cxx . . $ QStringRef#`operator==`(7d4bdb1abc417636). "log") { |
| 229 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! logParsedcxx . . $ OpenMSXConnection#logParsed(c1427772cd1877b0).(xmlAttrscxx . . $ OpenMSXConnection#xmlAttrs..valuecxx . . $ QXmlStreamAttributes#value(d1818b7318ce2ed4).("level"cxx . . $ QString#QString(85c52e162fed56f9).).toStringcxx . . $ QStringRef#toString(6ef7b6c27b00b43d).(), xmlDatacxx . . $ OpenMSXConnection#xmlData.); |
| 230 | } else if (qName ==cxx . . $ QStringRef#`operator==`(7d4bdb1abc417636). "update") { |
| 231 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! updateParsedcxx . . $ OpenMSXConnection#updateParsed(9f9ceb6f9de3a67b).(xmlAttrscxx . . $ OpenMSXConnection#xmlAttrs..valuecxx . . $ QXmlStreamAttributes#value(d1818b7318ce2ed4).("type"cxx . . $ QString#QString(85c52e162fed56f9).).toStringcxx . . $ QStringRef#toString(6ef7b6c27b00b43d).(), xmlAttrscxx . . $ OpenMSXConnection#xmlAttrs..valuecxx . . $ QXmlStreamAttributes#value(d1818b7318ce2ed4).("name"cxx . . $ QString#QString(85c52e162fed56f9).).toStringcxx . . $ QStringRef#toString(6ef7b6c27b00b43d).(), xmlDatacxx . . $ OpenMSXConnection#xmlData.); |
| 232 | } else { |
| 233 | qWarningcxx . . $ `<external>/10450329605257866924/qlogging.h:166:9`!("Unknown XML tag: %s", qName.toLatin1cxx . . $ QStringRef#toLatin1(a96750bfbcb1fbe9).().datacxx . . $ QByteArray#data(41208ce6ca65dd58).()); |
| 234 | } |
| 235 | return true; |
| 236 | } |
| 237 | |
| 238 | bool OpenMSXConnectioncxx . . $ OpenMSXConnection#::characterscxx . . $ OpenMSXConnection#characters(cfc8bc34dd4f2e69).(const QStringRefcxx . . $ QStringRef#& ch) |
| 239 | { |
| 240 | xmlDatacxx . . $ OpenMSXConnection#xmlData. +=cxx . . $ QString#`operator+=`(3a5c1f0b1e8ee725). ch; |
| 241 | return true; |
| 242 | } |