xhtmlim.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef XHTMLIM_H__
00015 #define XHTMLIM_H__
00016
00017 #include "jid.h"
00018 #include "stanzaextension.h"
00019 #include "tag.h"
00020
00021 #include <string>
00022
00023 namespace gloox
00024 {
00025
00026 class Tag;
00027
00034 class GLOOX_API XHtmlIM : public StanzaExtension
00035 {
00036
00037 public:
00042 XHtmlIM( const Tag* xhtml = 0 );
00043
00047 virtual ~XHtmlIM();
00048
00054 const Tag* xhtml() const { return m_xhtml; }
00055
00056
00057 virtual const std::string& filterString() const;
00058
00059
00060 virtual StanzaExtension* newInstance( const Tag* tag ) const
00061 {
00062 return new XHtmlIM( tag );
00063 }
00064
00065
00066 virtual Tag* tag() const;
00067
00068
00069 virtual StanzaExtension* clone() const;
00070
00071 private:
00072 Tag* m_xhtml;
00073
00074 };
00075
00076 }
00077
00078 #endif // XHTMLIM_H__