diff --git a/backends/libcommuni/session.h b/backends/libcommuni/session.h index bff2aee4c2559489b173fc08efc917cf42418013..507feb93a6e136d0e9eb3424a99b89bc138d8603 100644 --- a/backends/libcommuni/session.h +++ b/backends/libcommuni/session.h @@ -18,6 +18,8 @@ using namespace Transport; +class IRCNetworkPlugin; + class MyIrcSession : public IrcSession { Q_OBJECT @@ -37,7 +39,7 @@ public: typedef std::map > AutoJoinMap; - MyIrcSession(const std::string &user, NetworkPlugin *np, const std::string &suffix = "", QObject* parent = 0); + MyIrcSession(const std::string &user, IRCNetworkPlugin *np, const std::string &suffix = "", QObject* parent = 0); std::map m_modes; std::string suffix; int rooms; @@ -72,11 +74,12 @@ public: protected Q_SLOTS: void on_connected(); void on_disconnected(); + void on_socketError(QAbstractSocket::SocketError error); void onMessageReceived(IrcMessage* message); protected: - NetworkPlugin *np; + IRCNetworkPlugin *np; std::string user; std::string m_identify; AutoJoinMap m_autoJoin;