Location:
mda\client\utility.h
Link against: mediaclient.lib
CMdaServer
Supported from 6.0
Manages a connection to the media server.
The class also maintains a list of object event listeners. When events occur to server-side objects owned by media server clients, the events are passed on to this class by the server, and this class sends them to the appropriate object event listener.
A pointer to an object of this class can be passed to several
NewL() functions in media server APIs, for instance CMdaAudioToneUtility. In each case, if the pointer is NULL, a
connection to the media server is made on the caller's behalf.
|
Defined in CMdaServer:
AddListenerL(), NewL(), Registry(), RemoveListener(), ~CMdaServer()
Inherited from CActive:
Cancel(),
Deque(),
DoCancel(),
EPriorityHigh,
EPriorityIdle,
EPriorityLow,
EPriorityStandard,
EPriorityUserInput,
IsActive(),
IsAdded(),
Priority(),
RunError(),
RunL(),
SetActive(),
SetPriority(),
TPriority,
iStatus
Inherited from CBase:
operator new()
static CMdaServer* NewL();
Connects to and starts the media server.
|
~CMdaServer();
Destructor. Closes the session with the media server.
|
void AddListenerL(MMdaObjectEventListener& aListener);
Adds an object event listener, so that events can be passed to it.
|
void RemoveListener(MMdaObjectEventListener& aListener);
Removes an object event listener so that events can no longer be passed to it. The specified listener must be in the list, or a panic occurs.
|
const RMdaRegistry& Registry();
Gets a handle to the server side registry. This function would be called in order to query the registry, for instance to get the format of a file.
|