Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Valls <xaviervallspla@gmail.com>2021-05-31 17:40:20 +0300
committerGitHub <noreply@github.com>2021-05-31 17:40:20 +0300
commit6acd0b25aee3f3197fe62f09935f613974e964ec (patch)
tree2a7ef5946cf2e871bc751bb56204156458396e67 /src/gui/GuiTools.h
parent1f50ac604539a1df011fe5980b3c55cc8991c4bd (diff)
Add a context menu entry to delete entries from health check reports (#6537)
* Closes #4986 - Allow deleting entries from the reports view * Closes #4533 - Exclude & delete multiple entries in a report * Also allow deleting selected entries using the delete key * Introduce GuiTools namespace to collect shared GUI prompts and actions * Add functionality to HIBP report to mirror health check report Co-authored-by: Jonathan White <support@dmapps.us>
Diffstat (limited to 'src/gui/GuiTools.h')
-rw-r--r--src/gui/GuiTools.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/gui/GuiTools.h b/src/gui/GuiTools.h
new file mode 100644
index 000000000..14a54ab75
--- /dev/null
+++ b/src/gui/GuiTools.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2021 KeePassXC Team <team@keepassxc.org>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 or (at your option)
+ * version 3 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef KEEPASSXC_GUITOOLS_H
+#define KEEPASSXC_GUITOOLS_H
+
+#include <QList>
+#include <QWidget>
+
+class Entry;
+
+namespace GuiTools
+{
+ bool confirmDeleteEntries(QWidget* parent, const QList<Entry*>& entries, bool permanent);
+ void deleteEntriesResolveReferences(QWidget* parent, const QList<Entry*>& entries, bool permanent);
+} // namespace GuiTools
+#endif // KEEPASSXC_GUITOOLS_H