|
Gin
|
Listener interface for receiving file system change notifications. More...
#include <gin_filesystemwatcher.h>
Public Member Functions | |
| virtual | ~Listener ()=default |
| virtual void | folderChanged (const juce::File &) |
| Called when any file in a watched folder changes. | |
| virtual void | fileChanged (const juce::File &, FileSystemEvent) |
| Called for each file that changed and how it changed. | |
Listener interface for receiving file system change notifications.
Listener provides two callback methods for responding to file system events:
Override the methods you need and add the listener to FileSystemWatcher to receive notifications on the message thread.
Usage Example:
|
virtualdefault |
Called when any file in a watched folder changes.
This is called once per folder when any change occurs, useful for refreshing file browsers or folder displays without needing to know which specific files changed.
| folder | The watched folder that contains changed files |
|
virtual |
Called for each file that changed and how it changed.
This provides detailed information about each file change, including the specific event type. Use this when you need to react to specific changes like file updates for auto-reloading.
| file | The specific file that changed |
| event | The type of change that occurred |