libnick 2025.9.1
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
filesystemchangedeventargs.h
Go to the documentation of this file.
1
22
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) noexcept;
50 const std::filesystem::path& getPath() const noexcept;
55 FileAction getWhy() const noexcept;
56 FileSystemChangedEventArgs& operator=(const FileSystemChangedEventArgs&) noexcept = default;
58
59 private:
60 std::filesystem::path m_path;
61 FileAction m_why;
62 };
63}
64
65#endif //FILESYSTEMCHANGEDEVENTARGS_H
A base class for event arguments.
Definition eventargs.h:32
FileSystemChangedEventArgs(const FileSystemChangedEventArgs &) noexcept=default
const std::filesystem::path & getPath() const noexcept
Gets the path of the changed file system object system object.
FileSystemChangedEventArgs(const std::filesystem::path &path, FileAction why) noexcept
Constructs a FileSystemChangedEventArgs.
FileSystemChangedEventArgs(FileSystemChangedEventArgs &&) noexcept=default
FileAction getWhy() const noexcept
Gets the action that caused the file system object to change.
Definition applicationuserdirectory.h:27
FileAction
Actions that cause a file system object to change.
Definition fileaction.h:32