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 )
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 )
virtual Plugin * clone() const
virtual const std::string & filterString() const
Content(const std::string &name, const PluginList &plugins, Creator creator=CInitiator, Senders senders=SBoth, const std::string &disposition="session")
virtual Tag * tag() const
A factory for which creates Plugin instances based on Tags. This is part of Jingle (XEP-0166).
void addPlugins(Plugin &plugin, const Tag *tag)
An abstraction of a Jingle plugin. This is part of Jingle (XEP-0166 et al.)
const PluginList & plugins() const
This is an abstraction of an XML element.
bool addAttribute(Attribute *attr)
void addChild(Tag *child)
const std::string & findAttribute(const std::string &name) const
const std::string & name() const
std::list< const Plugin * > PluginList
The namespace for the gloox library.