#include <yatemime.h>
Inheritance diagram for MimeSdpBody:
Public Member Functions | |
MimeSdpBody () | |
MimeSdpBody (const String &type, const char *buf, int len) | |
virtual | ~MimeSdpBody () |
virtual void * | getObject (const String &name) const |
virtual bool | isSDP () const |
virtual MimeBody * | clone () const |
const ObjList & | lines () const |
void | addLine (const char *name, const char *value=0) |
const NamedString * | getLine (const char *name) const |
const NamedString * | getNextLine (const NamedString *line) const |
Protected Member Functions | |
MimeSdpBody (const MimeSdpBody &original) | |
virtual void | buildBody () const |
An object holding the lines of an application/sdp MIME type
MimeSdpBody | ( | ) |
Default constructor, builds an empty application/sdp
MimeSdpBody | ( | const String & | type, | |
const char * | buf, | |||
int | len | |||
) |
Constructor from block of data
buf | Pointer to buffer of data | |
len | Length of data in buffer | |
type | Name of the MIME type/subtype, should be "application/sdp" |
virtual ~MimeSdpBody | ( | ) | [virtual] |
Destructor
MimeSdpBody | ( | const MimeSdpBody & | original | ) | [protected] |
Copy constructor
virtual void* getObject | ( | const String & | name | ) | const [virtual] |
RTTI method, get a pointer to a derived class given that class name
name | Name of the class we are asking for |
Reimplemented from MimeBody.
virtual bool isSDP | ( | ) | const [inline, virtual] |
Override that checks if this body is an Session Description Protocol
Reimplemented from MimeBody.
virtual MimeBody* clone | ( | ) | const [virtual] |
const ObjList& lines | ( | ) | const [inline] |
Retrive the lines hold in data
void addLine | ( | const char * | name, | |
const char * | value = 0 | |||
) | [inline] |
Append a new name=value line of SDP data
name | Name of the line, should be one character | |
value | Text of the line |
const NamedString* getLine | ( | const char * | name | ) | const |
Retrive the first line matching a name
name | Name of the line to search |
const NamedString* getNextLine | ( | const NamedString * | line | ) | const |
Retrive the next line of the same type as the current
line | Current line |
virtual void buildBody | ( | ) | const [protected, virtual] |
Override that is called internally to build the binary encoded body
Implements MimeBody.