softwarecontainer
0.18.0-739e8d7 2017-05-04
|
The FileCleanUpHandler class is a subclass of CleanUpHandler that deletes a file. More...
#include <filecleanuphandler.h>
Public Member Functions | |
FileCleanUpHandler (const std::string &path) | |
FileCleanUpHandler Create a cleanupHandler for the Path, which will be deleted when running the clean() function. More... | |
bool | clean () override |
clean Perform the cleanupHandler clean. More... | |
const std::string | queryName () override |
this function is needed to query member name More... | |
Data Fields | |
std::string | m_path |
Protected Member Functions | |
LOG_DECLARE_CLASS_CONTEXT ("CLEA","Cleanup handler") | |
The FileCleanUpHandler class is a subclass of CleanUpHandler that deletes a file.
It is most commonly used when the FileToolKitWithUndo destructor is run to clean away cruft from the filesystem
Definition at line 31 of file filecleanuphandler.h.
softwarecontainer::FileCleanUpHandler::FileCleanUpHandler | ( | const std::string & | path | ) |
FileCleanUpHandler Create a cleanupHandler for the Path, which will be deleted when running the clean() function.
path | The path of the file to delete when clean() is run. |
Definition at line 24 of file filecleanuphandler.cpp.
|
overridevirtual |
clean Perform the cleanupHandler clean.
Implements softwarecontainer::CleanUpHandler.
Definition at line 29 of file filecleanuphandler.cpp.
|
overridevirtual |
this function is needed to query member name
Implements softwarecontainer::CleanUpHandler.
Definition at line 40 of file filecleanuphandler.cpp.