Changeset View
Changeset View
Standalone View
Standalone View
src/core/idleslave.cpp
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 61 | { | |||
---|---|---|---|---|---|
62 | int cmd; | 62 | int cmd; | ||
63 | QByteArray data; | 63 | QByteArray data; | ||
64 | if (d->mConn.read(&cmd, data) == -1) { | 64 | if (d->mConn.read(&cmd, data) == -1) { | ||
65 | // Communication problem with slave. | 65 | // Communication problem with slave. | ||
66 | //qCritical() << "No communication with KIO slave."; | 66 | //qCritical() << "No communication with KIO slave."; | ||
67 | deleteLater(); | 67 | deleteLater(); | ||
68 | } else if (cmd == MSG_SLAVE_ACK) { | 68 | } else if (cmd == MSG_SLAVE_ACK) { | ||
69 | deleteLater(); | 69 | deleteLater(); | ||
70 | } else if (cmd != MSG_SLAVE_STATUS_V2 && cmd != MSG_SLAVE_STATUS) { | 70 | } else if (cmd != MSG_SLAVE_STATUS_V2 | ||
71 | #if KIOCORE_BUILD_DEPRECATED_SINCE(5, 45) | ||||
72 | && cmd != MSG_SLAVE_STATUS | ||||
73 | #endif | ||||
74 | ) { | ||||
71 | qCritical() << "Unexpected data from KIO slave."; | 75 | qCritical() << "Unexpected data from KIO slave."; | ||
72 | deleteLater(); | 76 | deleteLater(); | ||
73 | } else { | 77 | } else { | ||
74 | QDataStream stream(data); | 78 | QDataStream stream(data); | ||
75 | qint64 pid; | 79 | qint64 pid; | ||
76 | QByteArray protocol; | 80 | QByteArray protocol; | ||
77 | QString host; | 81 | QString host; | ||
78 | qint8 b; | 82 | qint8 b; | ||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |