| 36 | } |
| 37 | |
| 38 | void BackendCommander::initAndSend() |
| 39 | { |
| 40 | connection_ = new IPC::Connection(); |
| 41 | connect(connection_, &IPC::Connection::newCommand, this, &BackendCommander::onConnectionNewCommand, Qt::QueuedConnection); |
| 42 | connect(connection_, &IPC::Connection::stateChanged, this, &BackendCommander::onConnectionStateChanged, Qt::QueuedConnection); |
| 43 | connectingTimer_.start(); |
| 44 | ipcState_ = IPC_CONNECTING; |
| 45 | connection_->connect(); |
| 46 | } |
| 47 | |
| 48 | void BackendCommander::onConnectionNewCommand(IPC::Command *command, IPC::Connection * /*connection*/) |
| 49 | { |