| 56 | } |
| 57 | |
| 58 | bool YACReaderLocalServer::isRunning() |
| 59 | { |
| 60 | QLocalSocket socket; |
| 61 | socket.connectToServer(YACREADERLIBRARY_GUID); |
| 62 | if (socket.waitForConnected(500)) |
| 63 | return true; // Server is running (another instance of YACReaderLibrary has been launched) |
| 64 | return false; |
| 65 | } |
| 66 | |
| 67 | void YACReaderLocalServer::close() |
| 68 | { |
no outgoing calls
no test coverage detected