Yate
Public Member Functions | Protected Member Functions | Friends

JBComponentStream Class Reference

A Jabber Component stream. More...

#include <yatejabber.h>

Inheritance diagram for JBComponentStream:
JBStream RefObject GenObject

List of all members.

Public Member Functions

virtual ~JBComponentStream ()
virtual void * getObject (const String &name) const

Protected Member Functions

 JBComponentStream (JBEngine *engine, XMPPServerInfo &info, const JabberID &localJid, const JabberID &remoteJid)
virtual XMLElementgetStreamStart ()
virtual XMLElementgetAuthStart ()
virtual void processAuth (XMLElement *xml)
virtual void processStarted (XMLElement *xml)

Friends

class JBEngine

Detailed Description

A Jabber Component stream.

This class holds a Jabber Component stream (implements the Jabber Component Protocol).


Constructor & Destructor Documentation

virtual ~JBComponentStream ( ) [inline, virtual]

Destructor

JBComponentStream ( JBEngine engine,
XMPPServerInfo info,
const JabberID localJid,
const JabberID remoteJid 
) [protected]

Constructor. Build an outgoing stream

Parameters:
engineThe engine that owns this stream
infoStructure containing data used to connect to remote server
localJidLocal party's JID
remoteJidRemote party's JID

Member Function Documentation

virtual XMLElement* getAuthStart ( ) [protected, virtual]

Get the authentication element to be sent when authentication starts

Returns:
XMLElement pointer

Reimplemented from JBStream.

virtual void* getObject ( const String name) const [virtual]

Get an object from this stream

Parameters:
nameThe name of the object to get
Returns:
Pointer to the object or 0 if not found

Reimplemented from JBStream.

virtual XMLElement* getStreamStart ( ) [protected, virtual]

Get the starting stream element to be sent after stream connected

Returns:
XMLElement pointer

Reimplemented from JBStream.

virtual void processAuth ( XMLElement xml) [protected, virtual]

Process a received element in Auth state

Parameters:
xmlValid XMLElement pointer

Reimplemented from JBStream.

virtual void processStarted ( XMLElement xml) [protected, virtual]

Process a received element in Started state

Parameters:
xmlValid XMLElement pointer

Reimplemented from JBStream.


The documentation for this class was generated from the following file: