| 1 | #cxx . . $ `<file>/src/CommClient.cpp`/include "CommClient.h"cxx . . $ `<file>/src/CommClient.h`/ |
| 2 | #include "OpenMSXConnection.h"cxx . . $ `<file>/src/OpenMSXConnection.h`/ |
| 3 | |
| 4 | CommClientcxx . . $ CommClient#::~cxx . . $ CommClient#`~CommClient`(ced63f7c635d850d).CommClientcxx . . $ CommClient#() |
| 5 | { |
| 6 | closeConnectioncxx . . $ CommClient#closeConnection(49f6e7a06ebc5aa8).(); |
| 7 | } |
| 8 | |
| 9 | CommClientcxx . . $ CommClient#& CommClientcxx . . $ CommClient#::instancecxx . . $ CommClient#instance(8cca9d0b1334f685).() |
| 10 | { |
| 11 | static CommClientcxx . . $ CommClient# oneInstancecxx . . $ CommClient#CommClient(49f6e7a06ebc5aa8).; |
| 12 | return oneInstance; |
| 13 | } |
| 14 | |
| 15 | void CommClientcxx . . $ CommClient#::connectToOpenMSXcxx . . $ CommClient#connectToOpenMSX(3dcfe9f30c93cb97).(stdcxx . . $ std/::unique_ptrcxx . . $ std/unique_ptr#<OpenMSXConnectioncxx . . $ OpenMSXConnection#> conn) |
| 16 | { |
| 17 | closeConnectioncxx . . $ CommClient#closeConnection(49f6e7a06ebc5aa8).(); |
| 18 | connectioncxx . . $ CommClient#connection. =cxx . . $ std/unique_ptr#`operator=`(1b63e42eaa758a73). stdcxx . . $ std/::movecxx . . $ std/move(e35c19a1ba7baa26).(conn); |
| 19 | connectcxx . . $ QObject#connect(835f87066c895669).(connectioncxx . . $ CommClient#connection..getcxx . . $ std/unique_ptr#get(ea7391e9eeeaf20e).(), &OpenMSXConnectioncxx . . $ OpenMSXConnection#::disconnectedcxx . . $ OpenMSXConnection#disconnected(49f6e7a06ebc5aa8)., this, &CommClientcxx . . $ CommClient#::closeConnectioncxx . . $ CommClient#closeConnection(49f6e7a06ebc5aa8).); |
| 20 | connectcxx . . $ QObject#connect(835f87066c895669).(connectioncxx . . $ CommClient#connection..getcxx . . $ std/unique_ptr#get(ea7391e9eeeaf20e).(), &OpenMSXConnectioncxx . . $ OpenMSXConnection#::logParsedcxx . . $ OpenMSXConnection#logParsed(c1427772cd1877b0)., this, &CommClientcxx . . $ CommClient#::logParsedcxx . . $ CommClient#logParsed(c1427772cd1877b0).); |
| 21 | connectcxx . . $ QObject#connect(835f87066c895669).(connectioncxx . . $ CommClient#connection..getcxx . . $ std/unique_ptr#get(ea7391e9eeeaf20e).(), &OpenMSXConnectioncxx . . $ OpenMSXConnection#::updateParsedcxx . . $ OpenMSXConnection#updateParsed(9f9ceb6f9de3a67b)., this, &CommClientcxx . . $ CommClient#::updateParsedcxx . . $ CommClient#updateParsed(9f9ceb6f9de3a67b).); |
| 22 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! connectionReadycxx . . $ CommClient#connectionReady(49f6e7a06ebc5aa8).(); |
| 23 | } |
| 24 | |
| 25 | void CommClientcxx . . $ CommClient#::closeConnectioncxx . . $ CommClient#closeConnection(49f6e7a06ebc5aa8).() |
| 26 | { |
| 27 | if (connectioncxx . . $ CommClient#connection.) { |
| 28 | connectioncxx . . $ CommClient#connection..resetcxx . . $ std/unique_ptr#reset(c8c3025d73122d7d).(); |
| 29 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! connectionTerminatedcxx . . $ CommClient#connectionTerminated(49f6e7a06ebc5aa8).(); |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | void CommClientcxx . . $ CommClient#::sendCommandcxx . . $ CommClient#sendCommand(6fe5d9dff2ed3a64).(CommandBasecxx . . $ CommandBase#* command) |
| 34 | { |
| 35 | if (connectioncxx . . $ CommClient#connection.) { |
| 36 | connectioncxx . . $ CommClient#connection.->cxx . . $ std/unique_ptr#`operator->`(ea7391e9eeeaf20e).sendCommandcxx . . $ OpenMSXConnection#sendCommand(6fe5d9dff2ed3a64).(command); |
| 37 | } else { |
| 38 | command->cancelcxx . . $ CommandBase#cancel(49f6e7a06ebc5aa8).(); |
| 39 | } |
| 40 | } |