xhtmlim.h
/*
Copyright (c) 2007-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 XHTMLIM_H__
#define XHTMLIM_H__
#include "jid.h"
#include "stanzaextension.h"
#include "tag.h"
#include <string>
namespace gloox
{
class Tag;
class GLOOX_API XHtmlIM : public StanzaExtension
{
public:
XHtmlIM( const Tag* xhtml = 0 );
virtual ~XHtmlIM();
const Tag* xhtml() const { return m_xhtml; }
// reimplemented from StanzaExtension
virtual const std::string& filterString() const;
// reimplemented from StanzaExtension
virtual StanzaExtension* newInstance( const Tag* tag ) const
{
return new XHtmlIM( tag );
}
// reimplemented from StanzaExtension
virtual Tag* tag() const;
// reimplemented from StanzaExtension
virtual StanzaExtension* clone() const;
private:
Tag* m_xhtml;
};
}
#endif // XHTMLIM_H__
gloox::StanzaExtension
This class abstracts a stanza extension, which is usually an XML child element in a specific namespac...
Definition stanzaextension.h:204
gloox::StanzaExtension::StanzaExtension
StanzaExtension(int type)
Definition stanzaextension.h:211
gloox::Tag
This is an abstraction of an XML element.
Definition tag.h:47
gloox::XHtmlIM::xhtml
const Tag * xhtml() const
Definition xhtmlim.h:54
gloox::XHtmlIM::newInstance
virtual StanzaExtension * newInstance(const Tag *tag) const
Definition xhtmlim.h:60
gloox::XHtmlIM::XHtmlIM
XHtmlIM(const Tag *xhtml=0)
Definition xhtmlim.cpp:21
gloox::XHtmlIM::tag
virtual Tag * tag() const
Definition xhtmlim.cpp:44
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28