summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-10-15 19:42:01 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-10-15 19:42:01 (GMT)
commit9173ea9c7d9e35a6b0fd87ee51a07f4e96b53fd6 (patch)
tree399911d37b7b7378be12a368717cd7c7142523ef /Swiften/Elements
parent062658db9f46ef749eeec09c162e5afaf1524ab6 (diff)
downloadswift-contrib-9173ea9c7d9e35a6b0fd87ee51a07f4e96b53fd6.zip
swift-contrib-9173ea9c7d9e35a6b0fd87ee51a07f4e96b53fd6.tar.bz2
Added ComponentSession.
Diffstat (limited to 'Swiften/Elements')
-rw-r--r--Swiften/Elements/AuthFailure.h8
-rw-r--r--Swiften/Elements/ComponentHandshake.h3
2 files changed, 5 insertions, 6 deletions
diff --git a/Swiften/Elements/AuthFailure.h b/Swiften/Elements/AuthFailure.h
index ff1468e..348a19b 100644
--- a/Swiften/Elements/AuthFailure.h
+++ b/Swiften/Elements/AuthFailure.h
@@ -4,16 +4,14 @@
* See Documentation/Licenses/GPLv3.txt for more information.
*/
-#ifndef SWIFTEN_AuthFailure_H
-#define SWIFTEN_AuthFailure_H
+#pragma once
#include "Swiften/Elements/Element.h"
+#include "Swiften/Base/Shared.h"
namespace Swift {
- class AuthFailure : public Element {
+ class AuthFailure : public Element, public Shared<AuthFailure> {
public:
AuthFailure() {}
};
}
-
-#endif
diff --git a/Swiften/Elements/ComponentHandshake.h b/Swiften/Elements/ComponentHandshake.h
index 1067310..d9088e0 100644
--- a/Swiften/Elements/ComponentHandshake.h
+++ b/Swiften/Elements/ComponentHandshake.h
@@ -8,9 +8,10 @@
#include "Swiften/Elements/Element.h"
#include "Swiften/Base/String.h"
+#include "Swiften/Base/Shared.h"
namespace Swift {
- class ComponentHandshake : public Element {
+ class ComponentHandshake : public Element, public Shared<ComponentHandshake> {
public:
ComponentHandshake(const String& data = "") : data(data) {
}