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

DirectoryWatchCallback.h

Go to the documentation of this file.
00001 /*  DirectoryWatchCallback.h - callback for CDirectoryWatch.
00002 
00003     Copyright (C) 2001-2004 Mark Weaver
00004     Written by Mark Weaver <mark@npsl.co.uk>
00005 
00006     Part of the Open-Win32 library.
00007     This library is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU Library General Public
00009     License as published by the Free Software Foundation; either
00010     version 2 of the License, or (at your option) any later version.
00011 
00012     This library is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015     Library General Public License for more details.
00016 
00017     You should have received a copy of the GNU Library General Public
00018     License along with this library; if not, write to the
00019     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00020     Boston, MA  02111-1307, USA.
00021 */
00022 
00028 #ifndef OW32_DirectoryWatchCallback_h
00029 #define OW32_DirectoryWatchCallback_h
00030 
00031 #include <OW32/FileWatcher.h>
00032 
00033 namespace OW32
00034 {
00035 
00036 class CDirectoryWatch;
00037 
00041 class CDirectoryWatchCallback
00042 {
00043 public:
00050     virtual void onChange(CDirectoryWatch &watch, FILE_NOTIFY_INFORMATION *changeInfo) 
00051         { watch; changeInfo; }
00052 
00061     virtual void onFailure(CDirectoryWatch &watch, DWORD error) 
00062         { watch; error; }
00063 
00068     virtual void onDeleted(CDirectoryWatch &watch) 
00069         { watch; }
00070 };
00071 
00072 } // namespace OW32
00073 
00074 #endif // OW32_DirectoryWatchCallback_h

Generated on Sun Jun 5 01:29:17 2005 for OW32 by  doxygen 1.3.9.1