diff --git a/backends/libircclient-qt/session.h b/backends/libircclient-qt/session.h index 1f9e021d1bb5cac864abd7387a90cbf673773362..b782c7c5161b112edeceac68891f06ad26dc6567 100644 --- a/backends/libircclient-qt/session.h +++ b/backends/libircclient-qt/session.h @@ -22,8 +22,9 @@ class MyIrcSession : public Irc::Session Q_OBJECT public: - MyIrcSession(const std::string &user, NetworkPlugin *np, QObject* parent = 0); + MyIrcSession(const std::string &user, NetworkPlugin *np, const std::string &suffix = "", QObject* parent = 0); std::map m_modes; + std::string suffix; protected Q_SLOTS: void on_connected(); @@ -35,6 +36,7 @@ protected Q_SLOTS: protected: NetworkPlugin *np; std::string user; + virtual Irc::Buffer* createBuffer(const QString& receiver); }; @@ -43,11 +45,12 @@ class MyIrcBuffer : public Irc::Buffer Q_OBJECT public: - MyIrcBuffer(const QString& receiver, const std::string &user, NetworkPlugin *np, Irc::Session* parent); + MyIrcBuffer(const QString& receiver, const std::string &user, NetworkPlugin *np, const std::string &suffix, Irc::Session* parent); NetworkPlugin *np; std::string user; MyIrcSession *p; std::string m_topicData; + std::string suffix; protected Q_SLOTS: void on_receiverChanged(const QString& receiver);