Yate
Public Member Functions | Static Public Member Functions | Public Attributes
JGStreamHost Class Reference

A Jingle file transfer stream host. More...

#include <yatejingle.h>

Inheritance diagram for JGStreamHost:
String GenObject

List of all members.

Public Member Functions

 JGStreamHost (const char *jid, const char *addr, int port, const char *zeroConf=0)
 JGStreamHost (const JGStreamHost &src)
XmlElementtoXml ()

Static Public Member Functions

static JGStreamHostfromXml (XmlElement *xml)
static XmlElementbuildHosts (const ObjList &hosts, const char *sid, const char *mode="tcp")
static XmlElementbuildRsp (const char *jid)

Public Attributes

String m_address
int m_port
String m_zeroConf

Detailed Description

A Jingle file transfer stream host.

This class holds a file transfer stream host definition


Constructor & Destructor Documentation

JGStreamHost ( const char *  jid,
const char *  addr,
int  port,
const char *  zeroConf = 0 
) [inline]

Constructor

Parameters:
jidStream host jid (id)
addrStream host address
portStream host port
zeroConfOptional zero conf definition (override address/port)
JGStreamHost ( const JGStreamHost src) [inline]

Copy constructor

Parameters:
srcSource stream host to copy from

Member Function Documentation

static XmlElement* buildHosts ( const ObjList hosts,
const char *  sid,
const char *  mode = "tcp" 
) [static]

Build a query XML element carrying a list of stream hosts

Parameters:
hostsList of JGStreamHost objects
sidThe query element's sid attribute
modeThe query element's mode attribute
Returns:
Valid XmlElement pointer
static XmlElement* buildRsp ( const char *  jid) [static]

Build a query XML element with a streamhost-used child

Parameters:
jidThe jid of the stream host used
Returns:
Valid XmlElement pointer
static JGStreamHost* fromXml ( XmlElement xml) [static]

Build a stream host from an XML element

Parameters:
xmlThe element to build from
Returns:
Valid JGStreamHost pointer or 0 on error

Build an XML element from this stream host

Returns:
Valid XmlElement pointer

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