diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-04-12 13:47:07 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-04-12 13:47:07 (GMT) |
commit | a65372d1a0a85d04329cd91bcf6bdff2de492c80 (patch) | |
tree | e9ac9af516f402aa4ee62027894a28da5cab98ec /Swiften | |
parent | ed38ddf609f1190ecb2aebb5e23ead115e6a6a8d (diff) | |
download | swift-contrib-a65372d1a0a85d04329cd91bcf6bdff2de492c80.zip swift-contrib-a65372d1a0a85d04329cd91bcf6bdff2de492c80.tar.bz2 |
Show ErrorEvent when roster push fails.
Resolves: #293
Diffstat (limited to 'Swiften')
-rw-r--r-- | Swiften/Events/ErrorEvent.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Swiften/Events/ErrorEvent.h b/Swiften/Events/ErrorEvent.h new file mode 100644 index 0000000..9a0d163 --- /dev/null +++ b/Swiften/Events/ErrorEvent.h @@ -0,0 +1,31 @@ +/* + * Copyright (c) 2010 Kevin Smith + * Licensed under the GNU General Public License v3. + * See Documentation/Licenses/GPLv3.txt for more information. + */ + +#pragma once + +#include <cassert> + +#include <boost/signals.hpp> +#include <boost/shared_ptr.hpp> + +#include "Swiften/Events/StanzaEvent.h" +#include "Swiften/Base/String.h" +#include "Swiften/JID/JID.h" + +namespace Swift { + class ErrorEvent : public StanzaEvent { + public: + ErrorEvent(const JID& jid, const String& text) : jid_(jid), text_(text){}; + virtual ~ErrorEvent(){}; + const JID& getJID() const {return jid_;}; + const String& getText() const {return text_;}; + + private: + JID jid_; + String text_; + }; +} + |