| 34 | } |
| 35 | |
| 36 | void LocalClientDevice::socketError() |
| 37 | { |
| 38 | switch (m_socket->error()) { |
| 39 | case QLocalSocket::ConnectionRefusedError: |
| 40 | case QLocalSocket::ServerNotFoundError: |
| 41 | case QLocalSocket::SocketAccessError: |
| 42 | case QLocalSocket::SocketTimeoutError: |
| 43 | case QLocalSocket::ConnectionError: |
| 44 | case QLocalSocket::UnknownSocketError: |
| 45 | emit transientError(); |
| 46 | break; |
| 47 | default: |
| 48 | if (m_tries) { |
| 49 | --m_tries; |
| 50 | emit transientError(); |
| 51 | } else { |
| 52 | emit persistentError(m_socket->errorString()); |
| 53 | } |
| 54 | break; |
| 55 | } |
| 56 | } |
nothing calls this directly
no test coverage detected