diff --git a/include/Swiften/Elements/HintPayload.h b/include/Swiften/Elements/HintPayload.h new file mode 100644 index 0000000000000000000000000000000000000000..add9d6fd61e02d786cc31dc027f1b2ff347077a3 --- /dev/null +++ b/include/Swiften/Elements/HintPayload.h @@ -0,0 +1,33 @@ +/* + * Implements XEP-0334: Message Processing Hints + * Licensed under the Simplified BSD license. + * See Documentation/Licenses/BSD-simplified.txt for more information. + */ + +#pragma once + +#include +#include +#include + +#include + +#include "Swiften/SwiftenCompat.h" + +namespace Swift { + class HintPayload : public Payload { + public: + typedef SWIFTEN_SHRPTR_NAMESPACE::shared_ptr ref; + + enum Type { NoPermanentStore, NoStore, NoCopy, Store }; + + public: + HintPayload(Type type = NoCopy); + + void setType(Type type) { type_ = type; } + const Type getType() { return type_; } + + private: + Type type_; + }; +}