5#ifndef WPINET_UV_FSEVENT_H_
6#define WPINET_UV_FSEVENT_H_
26 struct private_init {};
SignalBase is an implementation of the observer pattern, through the use of an emitting object and sl...
Definition: Signal.h:495
Filesystem Event handle.
Definition: FsEvent.h:25
sig::Signal< const char *, int > fsEvent
Signal generated when a filesystem change occurs.
Definition: FsEvent.h:75
void Start(std::string_view path, unsigned int flags=0)
Start watching the specified path for changes.
~FsEvent() noexcept override=default
std::string GetPath()
Get the path being monitored.
void Stop()
Stop watching for changes.
Definition: FsEvent.h:60
static std::shared_ptr< FsEvent > Create(Loop &loop)
Create a filesystem event handle.
FsEvent(const private_init &)
Definition: FsEvent.h:29
bool Invoke(F &&f, Args &&... args) const
Definition: Handle.h:251
Handle.
Definition: Handle.h:273
uv_fs_event_t * GetRaw() const noexcept
Get the underlying handle data structure.
Definition: Handle.h:288
Event loop.
Definition: Loop.h:37
basic_string_view< char > string_view
Definition: core.h:520
Definition: StdDeque.h:50
Definition: ParallelTcpConnector.h:22
flags
Definition: http_parser.h:206
UV_EXTERN int uv_fs_event_stop(uv_fs_event_t *handle)