![]() |
LeechCraft
0.6.70-10870-g558588d6ec
Modular cross-platform feature rich live environment.
|
QFile removing itself from file system on destruction. More...
#include "fileremoveguard.h"
Public Member Functions | |
FileRemoveGuard (const QString &path) | |
Constructs this file with the given path. More... | |
virtual | ~FileRemoveGuard () |
Removes the file. More... | |
QFile removing itself from file system on destruction.
Makes sure that the file represented by this object is removed when the corresponding instance of this class is destructed. Useful to automatically remove temporary files, for example.
Definition at line 46 of file fileremoveguard.h.
LeechCraft::Util::FileRemoveGuard::FileRemoveGuard | ( | const QString & | path | ) |
Constructs this file with the given path.
[in] | path | The file path to construct with. |
Definition at line 37 of file fileremoveguard.cpp.
|
virtual |
Removes the file.
Tries to close and remove the file represented by this object.
Definition at line 42 of file fileremoveguard.cpp.