aboutsummaryrefslogtreecommitdiffstats
path: root/fileset.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2017-11-29 17:25:53 -0800
committerGerald Combs <gerald@wireshark.org>2017-12-05 18:27:23 +0000
commitabcb7ec8750a263d0307bc41d86b798e5ae02966 (patch)
tree6d37d9e65a4e93ae9f775b664d429b1fde064796 /fileset.h
parent5eb07b35d430b68c6d816476190035e0774f18d2 (diff)
Convert the file set dialog treewidget to a treeview+model.
Add a FilesetEntryModel and use it in FileSetDialog. This should be faster than using a QTreeWidget. Move dialog updates and date calculations out of the "add file" loop. Bug: 11280 Bug: 14242 Change-Id: I702cef4fe91e739695fe805dc5e496bf3db411f1 Reviewed-on: https://code.wireshark.org/review/24708 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'fileset.h')
-rw-r--r--fileset.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/fileset.h b/fileset.h
index 7b11032..776df31 100644
--- a/fileset.h
+++ b/fileset.h
@@ -38,10 +38,30 @@ extern const char *fileset_get_dirname(void);
extern fileset_entry *fileset_get_next(void);
extern fileset_entry *fileset_get_previous(void);
+/**
+ * Add an entry to our dialog / window. Called by fileset_update_dlg.
+ * Must be implemented in the UI.
+ *
+ * @param entry The new fileset entry.
+ * @param window Window / dialog reference provided by the UI code.
+ */
+extern void fileset_dlg_add_file(fileset_entry *entry, void *window);
+/**
+ * Notify our dialog / window that we're about to add files. Called by fileset_update_dlg.
+ * Must be implemented in the UI.
+ *
+ * @param window Window / dialog reference provided by the UI code.
+ */
+extern void fileset_dlg_begin_add_file(void *window);
-/* this file is a part of the current file set */
-extern void fileset_dlg_add_file(fileset_entry *entry, void *window);
+/**
+ * Notify our dialog / window that we're done adding files. Called by fileset_update_dlg.
+ * Must be implemented in the UI.
+ *
+ * @param window Window / dialog reference provided by the UI code.
+ */
+extern void fileset_dlg_end_add_file(void *window);
extern void fileset_update_dlg(void *window);