14 #ifndef JINGLESESSION_H__
15 #define JINGLESESSION_H__
17 #include "stanzaextension.h"
19 #include "iqhandler.h"
20 #include "jingleplugin.h"
163 const std::string&
sid()
const {
return m_sid; }
170 const std::string&
text()
const {
return m_text; }
173 virtual const std::string& filterString()
const;
176 virtual Tag* tag()
const;
182 virtual Plugin* clone()
const;
219 const std::string&
sid()
const {
return m_sid; }
243 void addPlugin(
const Plugin* plugin ) {
if( plugin ) m_plugins.push_back( plugin ); }
258 virtual const std::string& filterString()
const;
267 virtual Tag* tag()
const;
288 const PluginList& plugins,
const std::string& sid );
302 const Plugin* plugin,
const std::string& sid );
366 bool contentAccept(
const Content* content );
374 bool contentAdd(
const Content* content );
382 bool contentAdd(
const PluginList& contents );
390 bool contentModify(
const Content* content );
398 bool contentReject(
const Content* content );
406 bool contentRemove(
const Content* content );
414 bool descriptionInfo(
const Plugin* info );
422 bool securityInfo(
const Plugin* info );
431 bool sessionAccept(
const Content* content );
439 bool sessionAccept(
const PluginList& plugins );
447 bool sessionInfo(
const Plugin* info );
455 bool sessionInitiate(
const Content* content );
465 bool sessionInitiate(
const PluginList& plugins );
482 bool transportAccept(
const Content* content );
490 bool transportInfo(
const Plugin* info );
498 bool transportReject(
const Content* content );
506 bool transportReplace(
const Content* content );
519 void setSID(
const std::string& sid ) { m_sid = sid; }
525 const std::string&
sid()
const {
return m_sid; }
528 virtual bool handleIq(
const IQ& iq );
531 virtual void handleIqID(
const IQ& iq,
int context );
575 #endif // JINGLESESSION_H__
An abstraction of a Jingle plugin. This is part of Jingle (XEP-0166 et al.)
const std::string & sid() const
An abstraction of an IQ stanza.
const std::string & sid() const
virtual Plugin * newInstance(const Tag *tag) const
void setResponder(const JID &jid)
const std::string & sid() const
void addPlugin(const Plugin *plugin)
An abstraction of a Jingle (XEP-0166) session terminate reason.
const std::string & text() const
const PluginList & plugins() const
const JID & initiator() const
This is an implementation of a Jingle Session (XEP-0166).
The namespace for the gloox library.
This class abstracts a stanza extension, which is usually an element in a specific namespace...
void setHandler(SessionHandler *handler)
void setSID(const std::string &sid)
virtual StanzaExtension * newInstance(const Tag *tag) const
A Jingle session handler.
This is an abstraction of Jingle's (XEP-0166) element as a StanzaExtension.
A virtual interface which can be reimplemented to receive IQ stanzas.
The SessionManager is responsible for creating and destroying Jingle sessions, as well as for delegat...
const JID & responder() const
Tag * embeddedTag() const
void setInitiator(const JID &initiator)
std::list< const Plugin * > PluginList
const std::string EmptyString
const JID & responder() const
This is the common base class for a Jabber/XMPP Client and a Jabber Component.
const JID & initiator() const
This is an abstraction of an XML element.
An abstraction of a Jingle Content Type. This is part of Jingle (XEP-0166).