QGpgME 21.6.2.0000005
Qt API for GpgME
|
#include <util.h>
Public Member Functions | |
PartialFileGuard (const QString &fileName) | |
QString | tempFileName () const |
bool | commit () |
Helper for using a temporary "part" file for writing a result to, similar to what browsers do when downloading files. On success, you commit() which renames the temporary file to the final file name. Otherwise, you do nothing and let the helper remove the temporary file on destruction.