libnick 2024.9.2
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
filesystemchangedeventargs.h
Go to the documentation of this file.
1
23#ifndef FILESYSTEMCHANGEDEVENTARGS_H
24#define FILESYSTEMCHANGEDEVENTARGS_H
25
26#include <filesystem>
27#include "fileaction.h"
28#include "events/eventargs.h"
29
31{
36 {
37 public:
43 FileSystemChangedEventArgs(const std::filesystem::path& path, FileAction why);
48 const std::filesystem::path& getPath() const;
54
55 private:
56 std::filesystem::path m_path;
57 FileAction m_why;
58 };
59}
60
61#endif //FILESYSTEMCHANGEDEVENTARGS_H
A base class for event arguments.
Definition eventargs.h:32
An event argument for when a file system object is changed.
Definition filesystemchangedeventargs.h:36
FileAction getWhy() const
Gets the action that caused the file system object to change.
FileSystemChangedEventArgs(const std::filesystem::path &path, FileAction why)
Constructs a FileSystemChangedEventArgs.
const std::filesystem::path & getPath() const
Gets the path of the changed file system object system object.
Definition applicationuserdirectory.h:27
FileAction
Actions that cause a file system object to change.
Definition fileaction.h:32