CMPXPluginMonitor Class Reference

class CMPXPluginMonitor : public CActive

Monitors a designated plugin interface. When a plugin for that interface is added or removed, if a client is interested in the event, client will be notified through MMPXPluginMonitorObserver interface.

mpxcommon.lib

Inherits from

Constructor & Destructor Documentation

CMPXPluginMonitor(const TUid &)

CMPXPluginMonitor(const TUid &aInterfaceUid)[private]

C++ constructor.

Since
S60 3.2.3

Parameters

const TUid & aInterfaceUidThe UID of the plugin interface to be monitored by this instance of CMPXPluginMonitor

~CMPXPluginMonitor()

IMPORT_C~CMPXPluginMonitor()

Destructor.

Since
S60 3.2.3

Member Functions Documentation

AddObserverL(MMPXPluginMonitorObserver &)

voidAddObserverL(MMPXPluginMonitorObserver &aObs)

Add a observer.

Since
S60 3.2.3

Parameters

MMPXPluginMonitorObserver & aObsobserver to be added

ConstructL()

voidConstructL()[private]

2nd phase contructor.

Since
S60 3.2.3

DoCancel()

voidDoCancel()[private, virtual]

From CActive. Implements cancellation of an outstanding request.

Since
S60 3.2.3

NewL(const TUid &)

IMPORT_C CMPXPluginMonitor *NewL(const TUid &aInterfaceUid)[static]

Two-phased constructor.

Since
S60 3.2.3

Parameters

const TUid & aInterfaceUidThe UID of the plugin interface to be monitored by this instance of CMPXPluginMonitor

NotifyUnload(const TUid &)

voidNotifyUnload(const TUid &aPluginUid)

Request to notify all observers that they should unload a specified plugin because it is being updated.

Since
S60 3.2.3

Parameters

const TUid & aPluginUidplugin that is being updated

RemoveObserverL(MMPXPluginMonitorObserver &)

voidRemoveObserverL(MMPXPluginMonitorObserver &aObs)

Remove a observer.

Since
S60 3.2.3

Parameters

MMPXPluginMonitorObserver & aObsobserver to be removed

RunError(TInt)

TInt RunError(TIntaError)[private, virtual]

From CActive. Handles a leave occurring in the request completion event handler RunL().

Since
S60 3.2.3

Parameters

TInt aErrorerror code

RunL()

voidRunL()[private, virtual]

From CActive. Handles an active object's request completion event.

Since
S60 3.2.3

Member Data Documentation

REComSession iECs

REComSession iECs[private]

TUid iInterfaceUid

TUid iInterfaceUid[private]

RPointerArray< MMPXPluginMonitorObserver > iObservers

RPointerArray< MMPXPluginMonitorObserver >iObservers[private]