aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/util.h
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2023-11-15 10:51:51 +0000
committerIngo Klöcker <[email protected]>2023-11-15 10:57:18 +0000
commit278f92b189ece58dee2036450ac029e3599fdb1f (patch)
tree247edf5f04f2a0427546405f98fb25894aa9c7c9 /lang/qt/src/util.h
parentdoc: Fix for e.g. and i.e. (diff)
downloadgpgme-278f92b189ece58dee2036450ac029e3599fdb1f.tar.gz
gpgme-278f92b189ece58dee2036450ac029e3599fdb1f.zip
qt: Remove left-over partial files more persistently
* lang/qt/src/Makefile.am: Add new files. * lang/qt/src/cleaner.cpp, lang/qt/src/cleaner.h: New. * lang/qt/src/util.cpp (PartialFileGuard::~PartialFileGuard): Call Cleaner::removeFile instead of removeFile. * lang/qt/src/util.cpp, lang/qt/src/util.h (removeFile): Remove. -- If the initial attempt to remove the file fails then a Cleaner is created that tries to remove the file at regular intervals (10 s) and on destruction (which happens on application shutdown). GnuPG-bug-id: 6584
Diffstat (limited to 'lang/qt/src/util.h')
-rw-r--r--lang/qt/src/util.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/lang/qt/src/util.h b/lang/qt/src/util.h
index c2d63405..cdf38981 100644
--- a/lang/qt/src/util.h
+++ b/lang/qt/src/util.h
@@ -55,8 +55,6 @@ std::vector<std::string> toStrings(const QStringList &l);
QStringList toFingerprints(const std::vector<GpgME::Key> &keys);
-void removeFile(const QString &fileName);
-
/**
* Helper for using a temporary "part" file for writing a result to, similar
* to what browsers do when downloading files.