diff options
Diffstat (limited to 'Swiften/Events/StanzaEvent.h')
-rw-r--r-- | Swiften/Events/StanzaEvent.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Swiften/Events/StanzaEvent.h b/Swiften/Events/StanzaEvent.h index adef112..b1dc537 100644 --- a/Swiften/Events/StanzaEvent.h +++ b/Swiften/Events/StanzaEvent.h @@ -6,8 +6,13 @@ namespace Swift { class StanzaEvent { public: - StanzaEvent(){}; + StanzaEvent(){concluded_ = false;}; virtual ~StanzaEvent() {}; + void conclude() {concluded_ = true; onConclusion();}; + /** Do not call this directly from outside the class */ boost::signal<void()> onConclusion; + bool getConcluded() {return concluded_;}; + private: + bool concluded_; }; } |