#include <yatephone.h>
Inheritance diagram for CallEndpoint:
Public Member Functions | |
virtual void | destroyed () |
virtual void * | getObject (const String &name) const |
virtual const String & | toString () const |
const String & | id () const |
CallEndpoint * | getPeer () const |
const String & | getPeerId () const |
Mutex * | mutex () const |
bool | connect (CallEndpoint *peer, const char *reason=0, bool notify=true) |
bool | disconnect (const char *reason=0, bool notify=true) |
DataEndpoint * | getEndpoint (const char *type="audio") const |
DataEndpoint * | setEndpoint (const char *type="audio") |
void | clearEndpoint (const char *type=0) |
void | setSource (DataSource *source=0, const char *type="audio") |
DataSource * | getSource (const char *type="audio") const |
void | setConsumer (DataConsumer *consumer=0, const char *type="audio") |
DataConsumer * | getConsumer (const char *type="audio") const |
Static Public Member Functions | |
static Mutex & | commonMutex () |
Protected Member Functions | |
CallEndpoint (const char *id=0) | |
virtual void | connected (const char *reason) |
virtual void | disconnected (bool final, const char *reason) |
void | setPeer (CallEndpoint *peer, const char *reason=0, bool notify=true) |
void | setEndpoint (DataEndpoint *endPoint) |
virtual void | setId (const char *newId) |
Protected Attributes | |
ObjList | m_data |
Mutex * | m_mutex |
Friends | |
class | DataEndpoint |
A class that holds common call control and data related features
CallEndpoint | ( | const char * | id = 0 |
) | [protected] |
Constructor
virtual void destroyed | ( | ) | [virtual] |
Destruct notification, performs cleanups
Reimplemented from RefObject.
virtual void* getObject | ( | const String & | name | ) | const [virtual] |
virtual const String& toString | ( | ) | const [inline, virtual] |
Get a string representation of this channel
Reimplemented from GenObject.
const String& id | ( | ) | const [inline] |
Get the unique channel identifier
CallEndpoint* getPeer | ( | ) | const [inline] |
Get the connected peer call
const String& getPeerId | ( | ) | const [inline] |
Get the connected peer call id
Mutex* mutex | ( | ) | const [inline] |
Get the mutex that serializes access to this call endpoint, if any
static Mutex& commonMutex | ( | ) | [static] |
Get the big mutex that serializes access to all call endpoints
bool connect | ( | CallEndpoint * | peer, | |
const char * | reason = 0 , |
|||
bool | notify = true | |||
) |
Connect the call endpoint to a peer.
peer | Pointer to the peer call endpoint. | |
reason | Text that describes connect reason. | |
notify | Call disconnected() notification method on old peer |
bool disconnect | ( | const char * | reason = 0 , |
|
bool | notify = true | |||
) | [inline] |
Disconnect from the connected peer call endpoint.
reason | Text that describes disconnect reason. | |
notify | Call disconnected() notification method on old peer |
DataEndpoint* getEndpoint | ( | const char * | type = "audio" |
) | const |
Get a data endpoint of this object
type | Type of data endpoint: "audio", "video", "text" |
DataEndpoint* setEndpoint | ( | const char * | type = "audio" |
) |
Get a data endpoint of this object, create if required
type | Type of data endpoint: "audio", "video", "text" |
void clearEndpoint | ( | const char * | type = 0 |
) |
Clear one or all data endpoints of this object
type | Type of data endpoint: "audio", "video", "text", NULL to clear all |
void setSource | ( | DataSource * | source = 0 , |
|
const char * | type = "audio" | |||
) |
Set a data source of this object
source | A pointer to the new source or NULL | |
type | Type of data node: "audio", "video", "text" |
DataSource* getSource | ( | const char * | type = "audio" |
) | const |
Get a data source of this object
type | Type of data node: "audio", "video", "text" |
void setConsumer | ( | DataConsumer * | consumer = 0 , |
|
const char * | type = "audio" | |||
) |
Set the data consumer of this object
consumer | A pointer to the new consumer or NULL | |
type | Type of data node: "audio", "video", "text" |
DataConsumer* getConsumer | ( | const char * | type = "audio" |
) | const |
Get the data consumer of this object
type | Type of data node: "audio", "video", "text" |
virtual void connected | ( | const char * | reason | ) | [inline, protected, virtual] |
Connect notification method.
reason | Text that describes connect reason. |
Reimplemented in Channel.
virtual void disconnected | ( | bool | final, | |
const char * | reason | |||
) | [inline, protected, virtual] |
Disconnect notification method.
final | True if this disconnect was called from the destructor. | |
reason | Text that describes disconnect reason. |
Reimplemented in Channel, and ClientChannel.
void setPeer | ( | CallEndpoint * | peer, | |
const char * | reason = 0 , |
|||
bool | notify = true | |||
) | [protected] |
Set the peer call endpoint pointer.
peer | A pointer to the new peer or NULL. | |
reason | Text describing the reason in case of disconnect. | |
notify | Call notification methods - connected() or disconnected() |
void setEndpoint | ( | DataEndpoint * | endPoint | ) | [protected] |
Set a foreign data endpoint in this object
endPoint | Data endpoint to set, will replace one with same type |
virtual void setId | ( | const char * | newId | ) | [protected, virtual] |
Set a new ID for this call endpoint
newId | New ID to set to this call |
Reimplemented in Channel.