You.i Engine
YiFileWatcher.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_FILE_WATCHER_H_
3 #define _YI_FILE_WATCHER_H_
4 
5 #include "framework/YiPredef.h"
6 #include "signal/YiSignal.h"
7 #include "utility/YiString.h"
8 
9 namespace yi
10 {
16 namespace deprecated
17 {
18 class CYIFileWatcherPriv;
22 typedef int32_t YI_FILEWATCHID;
23 
36 {
37 public:
42 
47 
52  YI_FILEWATCHID AddWatch(const CYIString &filePath);
53 
57  void RemoveWatch(YI_FILEWATCHID id);
58 
63  void UpdateAsyncHandler();
64 
70 
76 
82 
83 private:
87  CYIFileWatcher(const CYIFileWatcher &watcher)
88  {
89  YI_UNUSED(watcher);
90  }
91 
95  CYIFileWatcher &operator=(const CYIFileWatcher &watcher)
96  {
97  YI_UNUSED(watcher);
98  return *this;
99  }
100 
101 private:
102  CYIFileWatcherPriv *m_pImpl;
103 };
104 
105 } // namespace deprecated
106 
109 } // namespace yi
110 
111 #endif // _YI_FILE_WATCHER_H_
Definition: YiAutoProfiler.h:7
Container class for Unicode strings. Conceptually, a CYIString object is a sequence of Unicode charac...
Definition: YiString.h:36
int32_t YI_FILEWATCHID
Definition: YiFileWatcher.h:18
void RemoveWatch(YI_FILEWATCHID id)
CYISignal< const CYIString & > Created
Definition: YiFileWatcher.h:81
#define YI_UNUSED(param)
Definition: YiPredef.h:94
YI_FILEWATCHID AddWatch(const CYIString &filePath)
CYISignal< const CYIString & > Deleted
Definition: YiFileWatcher.h:75
CYISignal< const CYIString & > Modified
Definition: YiFileWatcher.h:69
Signals and slots are a thread-safe and flexible communication framework that will allow various obje...
Definition: YiSignal.h:168
Monitor one or more directories for changes in their files.
Definition: YiFileWatcher.h:35