pubsubitem.h
/*
Copyright (c) 2005-2023 by Jakob Schröter <js@camaya.net>
This file is part of the gloox library. http://camaya.net/gloox
This software is distributed under a license. The full license
agreement can be found in the file LICENSE in this distribution.
This software may not be copied, modified, sold or distributed
other than expressed in the named license agreement.
This software is distributed without any warranty.
*/
#ifndef PUBSUBITEM_H__
#define PUBSUBITEM_H__
#include "gloox.h"
#include <string>
namespace gloox
{
class Tag;
namespace PubSub
{
class GLOOX_API Item
{
public:
Item();
Item( const Tag* tag );
Item( const Item& item );
~Item();
const Tag* payload() const { return m_payload; }
void setPayload( Tag* tag );
const std::string& id() const { return m_id; }
void setID( const std::string& id ) { m_id = id; }
Tag* tag() const;
private:
Tag* m_payload;
std::string m_id;
};
}
}
#endif // PUBSUBITEM_H__
gloox::PubSub::Item::payload
const Tag * payload() const
Definition pubsubitem.h:66
gloox::PubSub::Item::id
const std::string & id() const
Definition pubsubitem.h:78
gloox::PubSub::Item::setID
void setID(const std::string &id)
Definition pubsubitem.h:84
gloox::PubSub::Item::Item
Item()
Definition pubsubitem.cpp:23
gloox::PubSub::Item::tag
Tag * tag() const
Definition pubsubitem.cpp:57
gloox::Tag
This is an abstraction of an XML element.
Definition tag.h:47
gloox::PubSub
Namespace holding all the Pubsub-related structures and definitions.
Definition pubsub.h:28
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28