X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcorenetwork.h;h=d596c5380c17c37be925659c48ade627f7965e11;hb=af787c6830e12c665572044db1beab65473607b9;hp=669b667521d26a919382082e17161f4813c34e86;hpb=45a0d954542db252ceb62b61243ee5c2253383de;p=quassel.git diff --git a/src/core/corenetwork.h b/src/core/corenetwork.h index 669b6675..d596c538 100644 --- a/src/core/corenetwork.h +++ b/src/core/corenetwork.h @@ -156,7 +156,18 @@ public slots: void setPingInterval(int interval); void connectToIrc(bool reconnecting = false); - void disconnectFromIrc(bool requested = true, const QString &reason = QString(), bool withReconnect = false); + /** + * Disconnect from the IRC server. + * + * Begin disconnecting from the IRC server, including optionally reconnecting. + * + * @param requested If true, user requested this disconnect; don't try to reconnect + * @param reason Reason for quitting, defaulting to the user-configured quit reason + * @param withReconnect Reconnect to the network after disconnecting (e.g. ping timeout) + * @param forceImmediate Immediately disconnect from network, skipping queue of other commands + */ + void disconnectFromIrc(bool requested = true, const QString &reason = QString(), + bool withReconnect = false, bool forceImmediate = false); void userInput(BufferInfo bufferInfo, QString msg);