softwarecontainer
0.18.0-739e8d7 2017-05-04
|
The OverlaySyncCleanupHandler class is used to copy files on cleanup and can be added to the CleanupHandler stack in the FileToolkitWithUndo class. More...
#include <overlaysynccleanuphandler.h>
Public Member Functions | |
OverlaySyncCleanupHandler (std::string src, std::string dst) | |
OverlaySyncCleanupHandler Constructor of the class. More... | |
bool | clean () override |
clean Performs the cleanup handling. More... | |
const std::string | queryName () override |
queryName is needed to query member name yet its full functionality is not needed for this class. More... | |
Protected Member Functions | |
LOG_DECLARE_CLASS_CONTEXT ("CLEA","Cleanup handler") | |
The OverlaySyncCleanupHandler class is used to copy files on cleanup and can be added to the CleanupHandler stack in the FileToolkitWithUndo class.
On destruction onf the FileToolKitWithUndo, the src will be copied to dst recursively.
Definition at line 31 of file overlaysynccleanuphandler.h.
softwarecontainer::OverlaySyncCleanupHandler::OverlaySyncCleanupHandler | ( | std::string | src, |
std::string | dst | ||
) |
OverlaySyncCleanupHandler Constructor of the class.
src | Source to copy the files from |
dst | Destination of the files. |
Definition at line 26 of file overlaysynccleanuphandler.cpp.
|
overridevirtual |
clean Performs the cleanup handling.
Implements softwarecontainer::CleanUpHandler.
Definition at line 32 of file overlaysynccleanuphandler.cpp.
References softwarecontainer::RecursiveCopy::copy(), and softwarecontainer::RecursiveCopy::getInstance().
|
overridevirtual |
queryName is needed to query member name yet its full functionality is not needed for this class.
Since no directory removal operation occurs within OverlaySyncCleanupHandler, it is irrelevant when the code checks whether the directory is in the list or not since the purpose of this function is to be used for cleaning path.
Implements softwarecontainer::CleanUpHandler.
Definition at line 37 of file overlaysynccleanuphandler.cpp.