Yate
|
A Jingle file transfer stream host. More...
#include <yatejingle.h>
Public Member Functions | |
JGStreamHost (const char *jid, const char *addr, int port, const char *zeroConf=0) | |
JGStreamHost (const JGStreamHost &src) | |
XMLElement * | toXml () |
Static Public Member Functions | |
static JGStreamHost * | fromXml (XMLElement *xml) |
static XMLElement * | buildHosts (const ObjList &hosts, const char *sid, const char *mode="tcp") |
static XMLElement * | buildRsp (const char *jid) |
Public Attributes | |
String | m_address |
int | m_port |
String | m_zeroConf |
A Jingle file transfer stream host.
This class holds a file transfer stream host definition
JGStreamHost | ( | const char * | jid, |
const char * | addr, | ||
int | port, | ||
const char * | zeroConf = 0 |
||
) | [inline] |
JGStreamHost | ( | const JGStreamHost & | src | ) | [inline] |
Copy constructor
src | Source stream host to copy from |
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
hosts | List of JGStreamHost objects |
sid | The query element's sid attribute |
mode | The query element's mode attribute |
static XMLElement* buildRsp | ( | const char * | jid | ) | [static] |
Build a query XML element with a streamhost-used child
jid | The jid of the stream host used |
static JGStreamHost* fromXml | ( | XMLElement * | xml | ) | [static] |
Build a stream host from an XML element
xml | The element to build from |
XMLElement* toXml | ( | ) |
Build an XML element from this stream host