summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Events/MessageEvent.h')
m---------Swiften0
-rw-r--r--Swiften/Events/MessageEvent.h33
2 files changed, 0 insertions, 33 deletions
diff --git a/Swiften b/Swiften
new file mode 160000
+Subproject 8213ba16d0043d2461f4b031c881d61dda5a38c
diff --git a/Swiften/Events/MessageEvent.h b/Swiften/Events/MessageEvent.h
deleted file mode 100644
index 43174a1..0000000
--- a/Swiften/Events/MessageEvent.h
+++ /dev/null
@@ -1,33 +0,0 @@
-#ifndef SWIFTEN_MessageEvent_H
-#define SWIFTEN_MessageEvent_H
-
-#include <cassert>
-
-#include <boost/signals.hpp>
-#include <boost/shared_ptr.hpp>
-
-#include "Swiften/Events/StanzaEvent.h"
-#include "Swiften/Elements/Message.h"
-
-namespace Swift {
- class MessageEvent : public StanzaEvent {
- public:
- MessageEvent(boost::shared_ptr<Message> stanza) : stanza_(stanza){};
- virtual ~MessageEvent(){};
- boost::shared_ptr<Message> getStanza() {return stanza_;}
-
- bool isReadable() {
- return getStanza()->isError() || !getStanza()->getBody().isEmpty();
- }
-
- void read() {
- assert (isReadable());
- conclude();
- }
-
- private:
- boost::shared_ptr<Message> stanza_;
- };
-}
-
-#endif