X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=network%2Fserver.h;h=5e619588df85df2fcaa73d3576364c04fa06958e;hp=b0077c19072d3c4499bfcf1de64cd9079784d99d;hb=04e21ce26ebabdde9586ca9d2a3168431e448df5;hpb=91ee3f5533474f265553a0870bb1c07a4b686906 diff --git a/network/server.h b/network/server.h index b0077c19..5e619588 100644 --- a/network/server.h +++ b/network/server.h @@ -29,8 +29,9 @@ #define DEFAULT_PORT 6667 +/*! \file */ -/** +/*! \class Server * This is a server object, managing a single connection to an IRC server, handling the associated channels and so on. * We have this run in its own thread mainly to not block other server objects or the core if something goes wrong, * e.g. if some scripts starts running wild... @@ -47,6 +48,7 @@ class Server : public QThread { void run(); // serverState state(); + bool isConnected() { return socket.state() == QAbstractSocket::ConnectedState; } public slots: // void setServerOptions();