14 #include "jinglecontent.h"
15 #include "jinglepluginfactory.h"
24 static const char* creatorValues [] = {
34 static const char* sendersValues [] = {
47 Senders senders,
const std::string& disposition )
49 m_name( name ), m_senders( senders )
57 if( !tag || tag->
name() !=
"content" )
75 static const std::string filter =
"jingle/content";
84 Tag* t =
new Tag(
"content" );
85 t->
addAttribute(
"creator", util::lookup( m_creator, creatorValues ) );
88 t->
addAttribute(
"senders", util::lookup( m_senders, sendersValues ) );
90 PluginList::const_iterator it = m_plugins.begin();
91 for( ; it != m_plugins.end(); ++it )
An abstraction of a Jingle plugin. This is part of Jingle (XEP-0166 et al.)
const PluginList & plugins() const
virtual Tag * tag() const
void addPlugins(Plugin &plugin, const Tag *tag)
A factory for which creates Plugin instances based on Tags. This is part of Jingle (XEP-0166)...
void addChild(Tag *child)
virtual Plugin * clone() const
The namespace for the gloox library.
Content(const std::string &name, const PluginList &plugins, Creator creator=CInitiator, Senders senders=SBoth, const std::string &disposition="session")
const std::string & findAttribute(const std::string &name) const
virtual const std::string & filterString() const
bool addAttribute(Attribute *attr)
const std::string & name() const
std::list< const Plugin * > PluginList
This is an abstraction of an XML element.