diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-10-23 21:08:19 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-11-03 12:17:40 (GMT) |
commit | 9d9fb66aefef85a1c5ad432391014d15011747d1 (patch) | |
tree | 55b1ebe7dcb0108008a28ebf8fee773b27e60547 /Swiften/Elements | |
parent | d509598b0f0edf5e103caedbab8662edc834445e (diff) | |
download | swift-contrib-9d9fb66aefef85a1c5ad432391014d15011747d1.zip swift-contrib-9d9fb66aefef85a1c5ad432391014d15011747d1.tar.bz2 |
Added ClientDiscoManager.
Diffstat (limited to 'Swiften/Elements')
-rw-r--r-- | Swiften/Elements/Body.h | 7 | ||||
-rw-r--r-- | Swiften/Elements/CapsInfo.h | 5 | ||||
-rw-r--r-- | Swiften/Elements/Payload.h | 9 |
3 files changed, 12 insertions, 9 deletions
diff --git a/Swiften/Elements/Body.h b/Swiften/Elements/Body.h index e3610c8..8262e09 100644 --- a/Swiften/Elements/Body.h +++ b/Swiften/Elements/Body.h @@ -4,8 +4,7 @@ * See Documentation/Licenses/GPLv3.txt for more information. */ -#ifndef SWIFTEN_Body_H -#define SWIFTEN_Body_H +#pragma once #include "Swiften/Elements/Payload.h" #include "Swiften/Base/String.h" @@ -13,6 +12,8 @@ namespace Swift { class Body : public Payload { public: + typedef boost::shared_ptr<Body> ref; + Body(const String& text = "") : text_(text) { } @@ -28,5 +29,3 @@ namespace Swift { String text_; }; } - -#endif diff --git a/Swiften/Elements/CapsInfo.h b/Swiften/Elements/CapsInfo.h index 1968a29..dc3cc2e 100644 --- a/Swiften/Elements/CapsInfo.h +++ b/Swiften/Elements/CapsInfo.h @@ -6,13 +6,16 @@ #pragma once -#include "Swiften/Base/String.h" +#include <boost/shared_ptr.hpp> +#include "Swiften/Base/String.h" #include "Swiften/Elements/Payload.h" namespace Swift { class CapsInfo : public Payload { public: + typedef boost::shared_ptr<CapsInfo> ref; + CapsInfo(const String& node = "", const String& version = "", const String& hash = "sha-1") : node_(node), version_(version), hash_(hash) {} bool operator==(const CapsInfo& o) const { diff --git a/Swiften/Elements/Payload.h b/Swiften/Elements/Payload.h index 9d7ed16..c87b899 100644 --- a/Swiften/Elements/Payload.h +++ b/Swiften/Elements/Payload.h @@ -4,14 +4,15 @@ * See Documentation/Licenses/GPLv3.txt for more information. */ -#ifndef SWIFTEN_PAYLOAD_H -#define SWIFTEN_PAYLOAD_H +#pragma once + +#include <boost/shared_ptr.hpp> namespace Swift { class Payload { public: + typedef boost::shared_ptr<Payload> ref; + virtual ~Payload(); }; } - -#endif |