X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorenetwork.h;h=8d5f7201eb21e3e162d10615ff0b00d015898e09;hp=f121986a042e3361fa6702c91f42a7e5d4cea65b;hb=59ed0127591f946a68a6ee7f30b23deb37d26821;hpb=ff2aeb5dad907f833b4311243213e5ee9fe12dfc diff --git a/src/core/corenetwork.h b/src/core/corenetwork.h index f121986a..8d5f7201 100644 --- a/src/core/corenetwork.h +++ b/src/core/corenetwork.h @@ -169,6 +169,17 @@ public slots: void disconnectFromIrc(bool requested = true, const QString &reason = QString(), bool withReconnect = false, bool forceImmediate = false); + /** + * Forcibly close the IRC server socket, waiting for it to close. + * + * Call CoreNetwork::disconnectFromIrc() first, allow the event loop to run, then if you need to + * be sure the network's disconencted (e.g. clean-up), call this. + * + * @param msecs Maximum time to wait for socket to close, in milliseconds. + * @return True if socket closes successfully; false if error occurs or timeout reached + */ + bool forceDisconnect(int msecs = 1000); + void userInput(BufferInfo bufferInfo, QString msg); /**