summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Events')
-rw-r--r--Swiften/Events/ErrorEvent.h31
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_;
+ };
+}
+