MDiskNotifyHandlerCallback Class Reference

class MDiskNotifyHandlerCallback

Class provides a callback interface for handling the notififications from the file server. The Client derives a class from this interface and implements the HandleNotify-methods that interest it. An empty default implementation is provided for all of the methods. In debug build the default implementations print out a debug trace.

disknotifyhandler.lib
Since
S60 5.0
Public Member Functions
IMPORT_C voidHandleNotifyDisk(TInt, const TDiskEvent &)
IMPORT_C voidHandleNotifyDiskSpace(TInt, const TDiskSpaceEvent &)
IMPORT_C voidHandleNotifyDismount(TInt, const TDismountEvent &)
IMPORT_C voidHandleNotifyDismountFinished(TInt, const TDismountFinishedEvent &)
IMPORT_C voidHandleNotifyEntry(TInt, const TEntryEvent &)
Public Member Enumerations
enumTDiskEventType { EDiskError = 0, EDiskAdded, EDiskRemoved, EDiskStatusChanged }

Member Functions Documentation

HandleNotifyDisk(TInt, const TDiskEvent &)

IMPORT_C voidHandleNotifyDisk(TIntaError,
const TDiskEvent &aEvent
)[virtual]

This callback method is used to notify the client about disk notifications, i.e. memory card has been inserted

TDiskEvent

Parameters

TInt aErrorSystem wide error code from file server
const TDiskEvent & aEventThe disk event data data specified by TDiskEvent

HandleNotifyDiskSpace(TInt, const TDiskSpaceEvent &)

IMPORT_C voidHandleNotifyDiskSpace(TIntaError,
const TDiskSpaceEvent &aEvent
)[virtual]

This callback method is used to notify the client about disk space notifications.

TDiskSpaceEvent

Parameters

TInt aErrorSystem wide error code from file server
const TDiskSpaceEvent & aEventThe disk space event data specified by TDiskSpaceEvent

HandleNotifyDismount(TInt, const TDismountEvent &)

IMPORT_C voidHandleNotifyDismount(TIntaError,
const TDismountEvent &aEvent
)[virtual]

This callback method is used to notify the client about dismount notifications. Client have to call CDiskNotifyHandler's AllowDismount after it has finished preparing for dismount.

TDismountEvent

Parameters

TInt aErrorSystem wide error code from file server
const TDismountEvent & aEventThe dismount event data specified by TDismountEvent

HandleNotifyDismountFinished(TInt, const TDismountFinishedEvent &)

IMPORT_C voidHandleNotifyDismountFinished(TIntaError,
const TDismountFinishedEvent &aEvent
)[virtual]

This callback method is used to notify the client when started dismount has finished.

TDismountFinishedEvent

Parameters

TInt aErrorSystem wide error code
const TDismountFinishedEvent & aEventThe event data specified by TDismountFinishedEvent

HandleNotifyEntry(TInt, const TEntryEvent &)

IMPORT_C voidHandleNotifyEntry(TIntaError,
const TEntryEvent &aEvent
)[virtual]

This callback method is used to notify the client about entry notifications.

TEntryEvent

Parameters

TInt aErrorSystem wide error code from file server
const TEntryEvent & aEventThe entry event data specified by TEntryEvent

Member Enumerations Documentation

Enum TDiskEventType

Defines the disk notification types.

Enumerators

EDiskError = 0

To indicate disk notification error. It also indicates that there is no valid disk event data available.

EDiskAdded

To indicate that a new drive has been added to the drive list of file server.

EDiskRemoved

To indicate that a drive has been removed from the drive list of file server.

EDiskStatusChanged

To indicate that drive status has been changed. E.g. A memory card has been inserted, removed or unlocked.