#include <yatecbase.h>
Public Member Functions | |
virtual void | initialize ()=0 |
virtual bool | msgExecute (Message &msg, String &dest) |
virtual void | msgTimer (Message &msg) |
virtual bool | msgRoute (Message &msg) |
virtual bool | received (Message &msg, int id) |
const String & | activeId () const |
bool | setActive (const String &id=String::empty()) |
ClientChannel * | findLine (int line) |
Static Public Member Functions | |
static ClientDriver * | self () |
static const String & | device () |
static bool | setAudioTransfer (const String &id, const String &target=String::empty()) |
static bool | setConference (const String &id, bool in, const String *confName=0) |
static ClientChannel * | findChan (const String &id) |
static ClientChannel * | findChanByPeer (const String &peer) |
static ClientChannel * | findActiveChan () |
Static Public Attributes | |
static String | s_confName |
static bool | s_dropConfPeer |
Protected Member Functions | |
void | setup () |
Protected Attributes | |
String | m_activeId |
Static Protected Attributes | |
static ClientDriver * | s_driver |
static String | s_device |
Friends | |
class | ClientChannel |
Abstract client Driver that implements some of the specific functionality
virtual void initialize | ( | ) | [pure virtual] |
This method is called to initialize the loaded module
Reimplemented from Driver.
Create an outgoing calling channel
msg | Call execute message | |
dest | Destination of the new call |
Implements Driver.
virtual void msgTimer | ( | Message & | msg | ) | [virtual] |
virtual bool msgRoute | ( | Message & | msg | ) | [virtual] |
Routing message handler. The default implementation routes to this driver if it owns a line named in the "account" or "line" parameter.
msg | Call routing message |
Reimplemented from Driver.
virtual bool received | ( | Message & | msg, | |
int | id | |||
) | [virtual] |
const String& activeId | ( | ) | const [inline] |
Get the active channel's id
bool setActive | ( | const String & | id = String::empty() |
) |
Set/reset the active channel. Does nothing if the selected channel is the active one. Put the active channel on hold before trying to set the active channel
id | The new active channel's id. Set to empty if don't want to set a new active channel |
ClientChannel* findLine | ( | int | line | ) |
static ClientDriver* self | ( | ) | [inline, static] |
Get the global client driver object's address
static const String& device | ( | ) | [inline, static] |
Get the current audio device's name
static bool setAudioTransfer | ( | const String & | id, | |
const String & | target = String::empty() | |||
) | [static] |
Attach/detach client channels peers' source/consumer
id | The id of the channel to tranfer | |
target | The transfer target. Leave blank to reset the channel's transfer id |
Attach/detach a client channel to/from a conference room
id | The id of the channel to process | |
in | True to enter the conference room, false to exit from it | |
confName | Optional id of the conference. Set to 0 to use the default one Ignored if 'in' is false |
static ClientChannel* findChan | ( | const String & | id | ) | [static] |
Get a referenced channel found by its id
id | The id of the channel to find |
static ClientChannel* findChanByPeer | ( | const String & | peer | ) | [static] |
Get a referenced channel whose stored peer is the given one
peer | Peer id to check |
static ClientChannel* findActiveChan | ( | ) | [inline, static] |
Get the active channel
void setup | ( | ) | [protected] |
Install standard message relays
Reimplemented from Module.
String s_confName [static] |
The name to use when the client is in conference
bool s_dropConfPeer [static] |
Indicates wether a channel should drop its former peer when terminated while in conference