libnick 2024.9.2
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
Nickvision::Filesystem::FileSystemChangedEventArgs Class Reference

An event argument for when a file system object is changed. More...

#include <filesystemchangedeventargs.h>

Inheritance diagram for Nickvision::Filesystem::FileSystemChangedEventArgs:
Nickvision::Events::EventArgs

Public Member Functions

 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.
 
FileAction getWhy () const
 Gets the action that caused the file system object to change.
 
- Public Member Functions inherited from Nickvision::Events::EventArgs
 EventArgs ()=default
 Constructs an EventArgs.
 

Detailed Description

An event argument for when a file system object is changed.

Constructor & Destructor Documentation

◆ FileSystemChangedEventArgs()

Nickvision::Filesystem::FileSystemChangedEventArgs::FileSystemChangedEventArgs ( const std::filesystem::path & path,
FileAction why )

Constructs a FileSystemChangedEventArgs.

Parameters
pathThe path of the file/folder that changed
whyThe action that caused the file system object to change

Member Function Documentation

◆ getPath()

const std::filesystem::path & Nickvision::Filesystem::FileSystemChangedEventArgs::getPath ( ) const

Gets the path of the changed file system object system object.

Returns
The path of the changed file/folder

◆ getWhy()

FileAction Nickvision::Filesystem::FileSystemChangedEventArgs::getWhy ( ) const

Gets the action that caused the file system object to change.

Returns
The action that caused the file system object to change

The documentation for this class was generated from the following file: