CDiskNotifyHandlerImpl Class Reference

class CDiskNotifyHandlerImpl : public CBase

Class provides actual implementation of disk notify handler.

Since
S60 5.0

Inherits from

  • CDiskNotifyHandlerImpl

Constructor & Destructor Documentation

CDiskNotifyHandlerImpl(MDiskNotifyHandlerCallback &, RFs &)

CDiskNotifyHandlerImpl(MDiskNotifyHandlerCallback &aCallback,
RFs &aFs
)[private]

C++ default constructor.

Parameters

MDiskNotifyHandlerCallback & aCallback
RFs & aFs

~CDiskNotifyHandlerImpl()

~CDiskNotifyHandlerImpl()

Destructor.

Member Functions Documentation

AllowDismount(TInt)

TInt AllowDismount(TIntaDrive)

Allows the dismount of given drive.

Since
S60 5.0

Parameters

TInt aDriveA drive identifier specified by TDriveNumber

CancelNotifyDisk()

voidCancelNotifyDisk()

Cancels listening for disk notifications.

Since
S60 5.0

CancelNotifyDiskSpace(const TInt64 &, TInt)

voidCancelNotifyDiskSpace(const TInt64 &aThreshold,
TIntaDrive
)

Cancels listening for disk space notifications with given threshold.

Since
S60 5.0

Parameters

const TInt64 & aThresholdA threshold that causes notification when crossed.
TInt aDriveA drive identifier specified by TDriveNumber

CancelNotifyDiskSpace(TInt)

voidCancelNotifyDiskSpace(TIntaDrive)

Cancels listening for all disk space notifications with given drive.

Since
S60 5.0

Parameters

TInt aDriveA drive identifier specified by TDriveNumber

CancelNotifyDiskSpace()

voidCancelNotifyDiskSpace()

Cancels listening for all disk space notifications.

Since
S60 5.0

CancelNotifyDismount(TInt)

voidCancelNotifyDismount(TIntaDrive)

Cancels listening for dismount notifications.

Since
S60 5.0

Parameters

TInt aDriveA drive identifier specified by TDriveNumber

CancelNotifyDismount()

voidCancelNotifyDismount()

Cancels listening for all dismount notifications.

Since
S60 5.0

CancelNotifyEntry(TNotifyType, const TDesC &)

voidCancelNotifyEntry(TNotifyTypeaType,
const TDesC &aEntry
)

Cancels listening for entry (i.e. file or folder) change notifications with given entry and notify type.

Since
S60 5.0

Parameters

TNotifyType aTypeA type of notification specified by TNotifyType.
const TDesC & aEntryA full path of the file or folder to be listened.

CancelNotifyEntry(const TDesC &)

voidCancelNotifyEntry(const TDesC &aEntry)

Cancels listening for all entry (i.e. file or folder) change notifications with given entry.

Since
S60 5.0

Parameters

const TDesC & aEntryA full path of the file or folder to be listened.

CancelNotifyEntry()

voidCancelNotifyEntry()

Cancels listening for all entry (i.e. file or folder) change notifications.

Since
S60 5.0

CancelStartedDismount(TInt)

voidCancelStartedDismount(TIntaDrive)

Cancels started dismount of given drive.

Since
S60 5.2

Parameters

TInt aDriveA drive identifier specified by TDriveNumber

CancelStartedDismount()

voidCancelStartedDismount()

Cancels started dismount of all drives.

Since
S60 5.2

NewL(MDiskNotifyHandlerCallback &, RFs &)

CDiskNotifyHandlerImpl *NewL(MDiskNotifyHandlerCallback &aCallback,
RFs &aFs
)[static]

This is a two-phase constructor method that is used to create a new instance for listening to the disk changes.

Since
S60 5.0

Parameters

MDiskNotifyHandlerCallback & aCallbackReference to a callback instance, MDiskNotifyHandlerCallback
RFs & aFsReference to an open file server session

NotifyDisk()

TInt NotifyDisk()

Starts listening for disk notifications.

Since
S60 5.0

NotifyDiskSpace(const TInt64 &, TInt)

TInt NotifyDiskSpace(const TInt64 &aThreshold,
TIntaDrive
)

Starts listening for disk space notifications.

Since
S60 5.0

Parameters

const TInt64 & aThresholdA threshold that causes notification when crossed.
TInt aDriveA drive identifier specified by TDriveNumber

NotifyDismount(TInt)

TInt NotifyDismount(TIntaDrive)

Starts listening for dismount notifications.

Since
S60 5.0

Parameters

TInt aDriveA drive identifier specified by TDriveNumber

NotifyEntry(TNotifyType, const TDesC &)

TInt NotifyEntry(TNotifyTypeaType,
const TDesC &aEntry
)

Starts listening for entry (i.e. file or folder) change notifications.

Since
S60 5.0

Parameters

TNotifyType aTypeA type of notification specified by TNotifyType.
const TDesC & aEntryA full path of the file or folder to be listened.

StartDismount(TInt, TTimeIntervalMicroSeconds32)

TInt StartDismount(TIntaDrive,
TTimeIntervalMicroSeconds32aForcedTimeout
)

Starts dismount with sending notification to registered clients. If dismount is pending after given timeout, forced dismount is done.

Since
S60 5.2

Parameters

TInt aDriveA drive identifier specified by TDriveNumber
TTimeIntervalMicroSeconds32 aForcedTimeoutA timeout to forced dismount in micro seconds.

Member Data Documentation

MDiskNotifyHandlerCallback & iCallback

MDiskNotifyHandlerCallback &iCallback[private]

RPointerArray< CDiskSpaceWatcher > iDiskSpaceWatcherList

RPointerArray< CDiskSpaceWatcher >iDiskSpaceWatcherList[private]

CDiskWatcher * iDiskWatcher

CDiskWatcher *iDiskWatcher[private]

RPointerArray< CDismountWatcher > iDismountWatcherList

RPointerArray< CDismountWatcher >iDismountWatcherList[private]

RPointerArray< CEntryWatcher > iEntryWatcherList

RPointerArray< CEntryWatcher >iEntryWatcherList[private]

RFs & iFs

RFs &iFs[private]

RPointerArray< CStartedDismountWatcher > iStartedDismountWatcherList

RPointerArray< CStartedDismountWatcher >iStartedDismountWatcherList[private]