CDiskNotifyHandlerImpl Class Reference
class CDiskNotifyHandlerImpl : public CBase |
Class provides actual implementation of disk notify handler.
Constructor & Destructor Documentation
CDiskNotifyHandlerImpl(MDiskNotifyHandlerCallback &, RFs &)
~CDiskNotifyHandlerImpl()
~CDiskNotifyHandlerImpl | ( | ) | |
Member Functions Documentation
AllowDismount(TInt)
Allows the dismount of given drive.
Parameters
TInt aDrive | A drive identifier specified by TDriveNumber |
CancelNotifyDisk()
Cancels listening for disk notifications.
CancelNotifyDiskSpace(const TInt64 &, TInt)
void | CancelNotifyDiskSpace | ( | const TInt64 & | aThreshold, |
| TInt | aDrive |
| ) | |
Cancels listening for disk space notifications with given threshold.
Parameters
const TInt64 & aThreshold | A threshold that causes notification when crossed. |
TInt aDrive | A drive identifier specified by TDriveNumber |
CancelNotifyDiskSpace(TInt)
void | CancelNotifyDiskSpace | ( | TInt | aDrive | ) | |
Cancels listening for all disk space notifications with given drive.
Parameters
TInt aDrive | A drive identifier specified by TDriveNumber |
CancelNotifyDiskSpace()
void | CancelNotifyDiskSpace | ( | ) | |
Cancels listening for all disk space notifications.
CancelNotifyDismount(TInt)
void | CancelNotifyDismount | ( | TInt | aDrive | ) | |
Cancels listening for dismount notifications.
Parameters
TInt aDrive | A drive identifier specified by TDriveNumber |
CancelNotifyDismount()
void | CancelNotifyDismount | ( | ) | |
Cancels listening for all dismount notifications.
CancelNotifyEntry(TNotifyType, const TDesC &)
Cancels listening for entry (i.e. file or folder) change notifications with given entry and notify type.
Parameters
TNotifyType aType | A type of notification specified by TNotifyType. |
const TDesC & aEntry | A full path of the file or folder to be listened. |
CancelNotifyEntry(const TDesC &)
void | CancelNotifyEntry | ( | const TDesC & | aEntry | ) | |
Cancels listening for all entry (i.e. file or folder) change notifications with given entry.
Parameters
const TDesC & aEntry | A full path of the file or folder to be listened. |
CancelNotifyEntry()
Cancels listening for all entry (i.e. file or folder) change notifications.
CancelStartedDismount(TInt)
void | CancelStartedDismount | ( | TInt | aDrive | ) | |
Cancels started dismount of given drive.
Parameters
TInt aDrive | A drive identifier specified by TDriveNumber |
CancelStartedDismount()
void | CancelStartedDismount | ( | ) | |
Cancels started dismount of all drives.
NewL(MDiskNotifyHandlerCallback &, RFs &)
This is a two-phase constructor method that is used to create a new instance for listening to the disk changes.
Parameters
MDiskNotifyHandlerCallback & aCallback | Reference to a callback instance, MDiskNotifyHandlerCallback |
RFs & aFs | Reference to an open file server session |
NotifyDisk()
Starts listening for disk notifications.
NotifyDiskSpace(const TInt64 &, TInt)
Starts listening for disk space notifications.
Parameters
const TInt64 & aThreshold | A threshold that causes notification when crossed. |
TInt aDrive | A drive identifier specified by TDriveNumber |
NotifyDismount(TInt)
Starts listening for dismount notifications.
Parameters
TInt aDrive | A drive identifier specified by TDriveNumber |
NotifyEntry(TNotifyType, const TDesC &)
Starts listening for entry (i.e. file or folder) change notifications.
Parameters
TNotifyType aType | A type of notification specified by TNotifyType. |
const TDesC & aEntry | A full path of the file or folder to be listened. |
StartDismount(TInt, TTimeIntervalMicroSeconds32)
Starts dismount with sending notification to registered clients. If dismount is pending after given timeout, forced dismount is done.
Member Data Documentation
MDiskNotifyHandlerCallback & iCallback
RPointerArray< CDiskSpaceWatcher > iDiskSpaceWatcherList
CDiskWatcher * iDiskWatcher
CDiskWatcher * | iDiskWatcher | [private] |
RPointerArray< CDismountWatcher > iDismountWatcherList
RPointerArray< CEntryWatcher > iEntryWatcherList
RPointerArray< CStartedDismountWatcher > iStartedDismountWatcherList
RPointerArray< CStartedDismountWatcher > | iStartedDismountWatcherList | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.