FileTracker¶
-
class
kanzi::connect::FileTracker¶ Allows to monitor changes in a file contents.
Public Types
-
typedef kanzi::function<void(kanzi::string_view filename)>
ModifiedFunction¶ Type of callback function to notify for file modification.
Public Functions
-
FileTracker(Domain &domain)¶ Constructor.
- Parameters
domain: Kanzi UI domain. Used for subscribing timers. Mandatory.
-
~FileTracker()¶ Destructor.
-
void
start(kanzi::string_view filename, ModifiedFunction modified)¶ Starts tracking of given file.
- Parameters
filename: File path to file that will be tracked.modified: Function callback to invoke when a change occurs in file.
-
void
stop()¶ Stops tracking of file.
-
typedef kanzi::function<void(kanzi::string_view filename)>