#include <yatejingle.h>
Public Member Functions | |
void | add (const char *id, const char *name, const char *clockrate, const char *bitrate, const char *synonym) |
JGAudio * | findSynonym (const String &value) |
XMLElement * | toXML (bool telEvent=true) |
void | fromXML (XMLElement *xml) |
bool | createList (String &dest, bool synonym, const char *sep=",") |
Hold a list of data payloads
void add | ( | const char * | id, | |
const char * | name, | |||
const char * | clockrate, | |||
const char * | bitrate, | |||
const char * | synonym | |||
) | [inline] |
Append a new data payload
id | The payload's id | |
name | The payload's name | |
clockrate | The payload's clockrate | |
bitrate | The payload's bitrate | |
synonym | The payload's synonym |
References ObjList::append().
Find a data payload by its synonym
value | The value to compare with |
XMLElement* toXML | ( | bool | telEvent = true |
) |
Create a 'description' element and add payload children to it
telEvent | True to append a telephone event data payload |
void fromXML | ( | XMLElement * | xml | ) |
Fill this list from an XML element's children. Clear before attempting to fill
xml | The source XML element |
bool createList | ( | String & | dest, | |
bool | synonym, | |||
const char * | sep = "," | |||
) |
Create a list from data payloads
dest | Destination string | |
synonym | True to create from synonyms, false to create from names | |
sep | List item separator |