summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-03-22 17:40:13 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-03-22 17:40:13 (GMT)
commit1ebd045cadb3585c846ea38c63d508e5aa6ec1e7 (patch)
tree304f2b9e8b92e7ff44aa790a298b1d2592d3f083 /Swiften/Events/StanzaEvent.h
parent6581ec0c0881263bea671c6122b546483ad6f2e8 (diff)
downloadswift-1ebd045cadb3585c846ea38c63d508e5aa6ec1e7.zip
swift-1ebd045cadb3585c846ea38c63d508e5aa6ec1e7.tar.bz2
Sucky UI for subscription requests
Diffstat (limited to 'Swiften/Events/StanzaEvent.h')
-rw-r--r--Swiften/Events/StanzaEvent.h7
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_;
};
}