The version 0 of a jingle session. More...
#include <yatejingle.h>
Public Member Functions | |
| virtual | ~JGSession0 () |
| virtual XMLElement * | checkJingle (XMLElement *xml) |
| virtual bool | accept (const ObjList &contents, String *stanzaId=0) |
Protected Member Functions | |
| JGSession0 (JGEngine *engine, JBStream *stream, const String &callerJID, const String &calledJID, const char *msg=0) | |
| JGSession0 (JGEngine *engine, JBEvent *event, const String &id) | |
| virtual bool | initiate (const ObjList &contents, XMLElement *extra, const char *subject=0) |
| virtual bool | sendContent (Action action, const ObjList &contents, String *stanzaId=0) |
| virtual JGEvent * | decodeJingle (JBEvent *jbev) |
| virtual XMLElement * | createJingle (Action action, XMLElement *element1=0, XMLElement *element2=0, XMLElement *element3=0) |
| virtual XMLElement * | createDtmf (const char *dtmf, unsigned int msDuration=0) |
Protected Attributes | |
| String | m_sessContentName |
Friends | |
| class | JGEvent |
| class | JGEngine |
The version 0 of a jingle session.
A session implementing the old jingle protocol
| virtual ~JGSession0 | ( | ) | [virtual] |
Destructor
| JGSession0 | ( | JGEngine * | engine, | |
| JBStream * | stream, | |||
| const String & | callerJID, | |||
| const String & | calledJID, | |||
| const char * | msg = 0 | |||
| ) | [protected] |
Constructor. Create an outgoing session
| engine | The engine that owns this session | |
| stream | The stream this session is bound to | |
| callerJID | The caller's full JID | |
| calledJID | The called party's full JID | |
| msg | Optional message to be sent before session initiate |
| JGSession0 | ( | JGEngine * | engine, | |
| JBEvent * | event, | |||
| const String & | id | |||
| ) | [protected] |
Constructor. Create an incoming session.
| engine | The engine that owns this session | |
| event | A valid Jabber Jingle event with action session initiate | |
| id | Session id |
Accept a Pending incoming session. This method is thread safe
| contents | The list of accepted contents | |
| stanzaId | Optional string to be filled with sent stanza id (used to track the response) |
Reimplemented from JGSession.
| virtual XMLElement* checkJingle | ( | XMLElement * | xml | ) | [virtual] |
Check if a given XML element is valid jingle one
| xml | Element to check |
Reimplemented from JGSession.
| virtual XMLElement* createDtmf | ( | const char * | dtmf, | |
| unsigned int | msDuration = 0 | |||
| ) | [protected, virtual] |
Create a dtmf XML element
| dtmf | The dtmf string | |
| msDuration | The tone duration in miliseconds. Ignored if 0 |
Implements JGSession.
| virtual XMLElement* createJingle | ( | Action | action, | |
| XMLElement * | element1 = 0, |
|||
| XMLElement * | element2 = 0, |
|||
| XMLElement * | element3 = 0 | |||
| ) | [protected, virtual] |
Create an 'iq' of type 'set' with a 'jingle' child
| action | The action of the Jingle stanza | |
| element1 | Optional child element | |
| element2 | Optional child element | |
| element3 | Optional child element |
Implements JGSession.
| virtual bool initiate | ( | const ObjList & | contents, | |
| XMLElement * | extra, | |||
| const char * | subject = 0 | |||
| ) | [protected, virtual] |
Build and send the initial message on an outgoing session
| contents | The session contents to be sent with session initiate element | |
| extra | Optional extra child to be added to the session initiate element | |
| subject | Optional session subject |
Implements JGSession.
| virtual bool sendContent | ( | Action | action, | |
| const ObjList & | contents, | |||
| String * | stanzaId = 0 | |||
| ) | [protected, virtual] |
Send a stanza with session content(s) This method is thread safe
| action | Must be a transport- action | |
| contents | Non empty list with content(s) to send | |
| stanzaId | Optional string to be filled with sent stanza id (used to track the response) |
Reimplemented from JGSession.
1.6.3