/***************************************************************************
- * Copyright (C) 2005-2013 by the Quassel Project *
+ * Copyright (C) 2005-2014 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
void setState(State state);
private slots:
- void socketError(QAbstractSocket::SocketError error);
+ void onSocketError(QAbstractSocket::SocketError error);
+ void onSocketDisconnected();
private:
void invalidMessage();
State _state;
QTcpSocket *_socket; // FIXME: should be a QSharedPointer? -> premature disconnect before the peer has taken over
+ bool _disconnectedSent;
};
#endif