summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-10-22 19:58:45 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-10-22 19:58:45 (GMT)
commitfd7d3f4f994159a4990f3a0029597d4c14f727a9 (patch)
tree56286c8258cae942ae641235167b6dfdb512483a /Swift/Controllers/UIInterfaces/EventWindow.h
parent7cac59f3ec12e3440341bb561ab3c8e6c3fe80e0 (diff)
downloadswift-fd7d3f4f994159a4990f3a0029597d4c14f727a9.zip
swift-fd7d3f4f994159a4990f3a0029597d4c14f727a9.tar.bz2
Fixed memory leaks and segfault on signout.
Diffstat (limited to 'Swift/Controllers/UIInterfaces/EventWindow.h')
-rw-r--r--Swift/Controllers/UIInterfaces/EventWindow.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Swift/Controllers/UIInterfaces/EventWindow.h b/Swift/Controllers/UIInterfaces/EventWindow.h
index 0999e0e..e756655 100644
--- a/Swift/Controllers/UIInterfaces/EventWindow.h
+++ b/Swift/Controllers/UIInterfaces/EventWindow.h
@@ -12,8 +12,17 @@
namespace Swift {
class EventWindow {
public:
+ EventWindow(bool candelete = true) : canDelete_(candelete) {}
+
+ bool canDelete() const {
+ return canDelete_;
+ }
+
virtual ~EventWindow() {};
virtual void addEvent(boost::shared_ptr<StanzaEvent> event, bool active) = 0;
virtual void removeEvent(boost::shared_ptr<StanzaEvent> event) = 0;
+
+ private:
+ bool canDelete_;
};
}