diff --git a/include/transport/networkplugin.h b/include/transport/networkplugin.h index c8e238c697000466b96fa35691a1a3202de08485..279a3c5d4503cd09454668d1ab738d4d2927b755 100644 --- a/include/transport/networkplugin.h +++ b/include/transport/networkplugin.h @@ -39,16 +39,18 @@ class NetworkPlugin { class PluginConfig { public: - PluginConfig() : m_needPassword(true), m_needRegistration(false) {} + PluginConfig() : m_needPassword(true), m_needRegistration(false), m_supportMUC(false) {} virtual ~PluginConfig() {} void setNeedRegistration(bool needRegistration = false) { m_needRegistration = needRegistration; } void setNeedPassword(bool needPassword = true) { m_needPassword = needPassword; } + void setSupportMUC(bool supportMUC = true) { m_supportMUC = supportMUC; } void setExtraFields(const std::vector &fields) { m_extraFields = fields; } private: bool m_needPassword; bool m_needRegistration; + bool m_supportMUC; std::vector m_extraFields; friend class NetworkPlugin; @@ -111,7 +113,7 @@ class NetworkPlugin { /// \param message Plain text message. /// \param nickname Nickname of buddy in room. Empty if it's normal chat message. /// \param xhtml XHTML message. - void handleMessage(const std::string &user, const std::string &legacyName, const std::string &message, const std::string &nickname = "", const std::string &xhtml = "", const std::string ×tamp = "", bool headline = false); + void handleMessage(const std::string &user, const std::string &legacyName, const std::string &message, const std::string &nickname = "", const std::string &xhtml = "", const std::string ×tamp = "", bool headline = false, bool pm = false); void handleMessageAck(const std::string &user, const std::string &legacyName, const std::string &id);