diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-06-12 10:26:41 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-06-12 10:26:41 (GMT) |
commit | 9bc8ddaf40d73647944592385bf56ece41046846 (patch) | |
tree | 200c49a14f60754050af71922234d4aadb991bd1 /Swiften/Queries/Request.h | |
parent | eded58915fd89e8b008ba7e078c5967fdef9f4cb (diff) | |
download | swift-contrib-9bc8ddaf40d73647944592385bf56ece41046846.zip swift-contrib-9bc8ddaf40d73647944592385bf56ece41046846.tar.bz2 |
Removing auto delete stuff from Request.
This should now be handled properly by using shared_ptrs.
Diffstat (limited to 'Swiften/Queries/Request.h')
-rw-r--r-- | Swiften/Queries/Request.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Swiften/Queries/Request.h b/Swiften/Queries/Request.h index 52d1d15..1c972dc 100644 --- a/Swiften/Queries/Request.h +++ b/Swiften/Queries/Request.h @@ -3,6 +3,7 @@ #include <boost/shared_ptr.hpp> #include <boost/optional.hpp> +#include <boost/enable_shared_from_this.hpp> #include "Swiften/Base/String.h" #include "Swiften/Queries/IQHandler.h" @@ -12,19 +13,13 @@ #include "Swiften/JID/JID.h" namespace Swift { - class Request : public IQHandler { + class Request : public IQHandler, public boost::enable_shared_from_this<Request> { public: - enum AutoDeleteBehavior { - DoNotAutoDelete, - AutoDeleteAfterResponse - }; - Request( IQ::Type type, const JID& receiver, boost::shared_ptr<Payload> payload, - IQRouter* router, - AutoDeleteBehavior = DoNotAutoDelete); + IQRouter* router); void send(); @@ -39,7 +34,6 @@ namespace Swift { IQ::Type type_; JID receiver_; boost::shared_ptr<Payload> payload_; - AutoDeleteBehavior autoDeleteBehavior_; String id_; bool sent_; }; |