void AbstractClient::queuePendingCommand(PendingCommand *pend) { // This function is always called from the client thread via signal/slot. const int cmdId = getNewCmdId(); pend->getCommandContainer().set_cmd_id(cmdId); pendingCommands.insert(cmdId, pend); sendCommandContainer(pend->getCommandContainer()); }
void RemoteClient::slotConnected() { timeRunning = lastDataReceived = 0; timer->start(); // dirty hack to be compatible with v14 server sendCommandContainer(CommandContainer()); getNewCmdId(); // end of hack }
void AbstractClient::sendCommand(Command *cmd) { sendCommandContainer(new CommandContainer(QList<Command *>() << cmd)); }