/* * Copyright (c) 2010 Kevin Smith * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ #pragma once #include #include "Swiften/Base/boost_bsignals.h" #include #include "Swift/Controllers/XMPPEvents/StanzaEvent.h" #include #include "Swiften/JID/JID.h" namespace Swift { class ErrorEvent : public StanzaEvent { public: ErrorEvent(const JID& jid, const std::string& text) : jid_(jid), text_(text){}; virtual ~ErrorEvent(){}; const JID& getJID() const {return jid_;}; const std::string& getText() const {return text_;}; private: JID jid_; std::string text_; }; }