Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

OW32::CFileWatchCallback Class Reference

This is the base class for a file watch callback. More...

#include <FileWatchCallback.h>

Inheritance diagram for OW32::CFileWatchCallback:

OW32::CAsyncResolver List of all members.

Public Member Functions

virtual void onChanged (CFileWatch *watch, const FILE_NOTIFY_INFORMATION *notifyInfo)
 Called when a file change is detected.
virtual void onDeletion (CFileWatch *watch)
 Called when a watch is deleted.
virtual void onFailure (CFileWatch *watch, DWORD error)
 Called when a failure of file monitoring is detected: typically when the directory that the file was in is removed.

Detailed Description

This is the base class for a file watch callback.

Derive a class from this to receive notifications from one or more #CFileWatch objects.


Member Function Documentation

virtual void OW32::CFileWatchCallback::onChanged CFileWatch watch,
const FILE_NOTIFY_INFORMATION *  notifyInfo
[inline, virtual]
 

Called when a file change is detected.

Parameters:
watch The watch
notifyInfo The notification information

virtual void OW32::CFileWatchCallback::onDeletion CFileWatch watch  )  [inline, virtual]
 

Called when a watch is deleted.

Parameters:
watch The watch that was deleted

virtual void OW32::CFileWatchCallback::onFailure CFileWatch watch,
DWORD  error
[inline, virtual]
 

Called when a failure of file monitoring is detected: typically when the directory that the file was in is removed.

Parameters:
watch The watch that failed
error The API error code for the failure


The documentation for this class was generated from the following file:
Generated on Sun Jun 5 01:29:24 2005 for OW32 by  doxygen 1.3.9.1