MAccMonitorObserver Class Reference

#include <AccMonitor.h>

class MAccMonitorObserver
Public Member Functions
pure virtual voidAccMonitorObserverError(TInt)
pure virtual voidConnectedL(CAccMonitorInfo *)
pure virtual voidDisconnectedL(CAccMonitorInfo *)

Detailed Description

The observer offers methods to observe connection/disconnection notifications from some defined accessory or all accessory connection/disconnection notifications.

Member Function Documentation

AccMonitorObserverError ( TInt )

voidAccMonitorObserverError(TIntaError)[pure virtual]

A callback for error situations.

ConnectedL ( CAccMonitorInfo * )

voidConnectedL(CAccMonitorInfo *aAccessoryInfo)[pure virtual]

A callback method for accessory connection notifications.

ParameterDescription
aAccessoryInfoinstance of the connected accessory. The content of the pointer must be copied to an instance CAccMonitorInfo because the original pointer is destroyed after the ConnectedL metdhod.

DisconnectedL ( CAccMonitorInfo * )

voidDisconnectedL(CAccMonitorInfo *aAccessoryInfo)[pure virtual]

A callback method for accessory disconnection notifications.

ParameterDescription
aAccessoryInfoinstance of the connected accessory. The content of the pointer must be copied to an instance CAccMonitorInfo because the original pointer is destroyed after the DisconnectedL metdhod.