| 112 | } |
| 113 | |
| 114 | void RasterStreamView::sendMessage(const pj_raster::Message& msg) { |
| 115 | if (socket_ == nullptr) { |
| 116 | return; |
| 117 | } |
| 118 | uint8_t bytes[pj_raster::kMessageBytes]; |
| 119 | pj_raster::encodeMessage(msg, bytes); |
| 120 | socket_->write(reinterpret_cast<char*>(bytes), pj_raster::kMessageBytes); |
| 121 | socket_->flush(); |
| 122 | } |
| 123 | |
| 124 | void RasterStreamView::sendKey(int qt_key, bool down) { |
| 125 | const int code = key_translator_(qt_key); |
nothing calls this directly
no test coverage detected