MCPcopy Create free account
hub / github.com/QNapi/qnapi / message

Method message

gui/src/qcumber/qinterprocesschannel.cpp:291–308  ·  view source on GitHub ↗

! \internal */

Source from the content-addressed store, hash-verified

289 \internal
290*/
291void QInterProcessChannel::message(const QString &msg, QManagedSocket *s) {
292 if (!pServer) return;
293
294 // qDebug("message from Inter Process channel : %s", qPrintable(msg));
295
296 QStringList argv = QManagedRequest::splitArguments(msg);
297 const QString cmd = argv.at(0);
298 // const int argc = argv.count();
299
300 if (cmd == "--check") {
301 s->send("[ALIVE]");
302 } else if (cmd == "--request") {
303 argv.removeAt(0);
304 emit request(argv);
305 } else {
306 emit message(msg);
307 }
308}
309
310/*!
311 \brief internal

Callers

nothing calls this directly

Calls 1

sendMethod · 0.80

Tested by

no test coverage detected