gloox 1.0
|
00001 /* 00002 Copyright (c) 2007-2009 by Jakob Schroeter <js@camaya.net> 00003 This file is part of the gloox library. http://camaya.net/gloox 00004 00005 This software is distributed under a license. The full license 00006 agreement can be found in the file LICENSE in this distribution. 00007 This software may not be copied, modified, sold or distributed 00008 other than expressed in the named license agreement. 00009 00010 This software is distributed without any warranty. 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 // reimplemented from StanzaExtension 00057 virtual const std::string& filterString() const; 00058 00059 // reimplemented from StanzaExtension 00060 virtual StanzaExtension* newInstance( const Tag* tag ) const 00061 { 00062 return new XHtmlIM( tag ); 00063 } 00064 00065 // reimplemented from StanzaExtension 00066 virtual Tag* tag() const; 00067 00068 // reimplemented from StanzaExtension 00069 virtual StanzaExtension* clone() const; 00070 00071 private: 00072 Tag* m_xhtml; 00073 00074 }; 00075 00076 } 00077 00078 #endif // XHTMLIM_H__