aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/extcap_options_dialog.h
diff options
context:
space:
mode:
authorRoland Knall <roland.knall@br-automation.com>2018-03-02 15:41:00 +0100
committerRoland Knall <rknall@gmail.com>2018-04-05 09:31:23 +0000
commit6124ee2a1c06ccc96c3e9aa62c136f34085bfa61 (patch)
treea54fe1c4247e3f4519f71940d74c6a3f665d8a07 /ui/qt/extcap_options_dialog.h
parentc2422d78281e10beb6ce4ebda1d61c9d0ca63a09 (diff)
extcap: Reload values on request
Allow certaing elements to be reloaded upon request. The way this works is, certain elements can be configured to be reloadable. By doing so, the extcap is asked once more just for the values list of this item, together with all already set options, and reloads the available options depending on the response. Only supported for selector. Radio and Multiselect will need additional patches, also moving those parts outside of extcap_argument.cpp might make sense before hand. Change-Id: I2e9e3d109b334bf878835a7cc9354f468bc22dee Reviewed-on: https://code.wireshark.org/review/26223 Petri-Dish: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/extcap_options_dialog.h')
-rw-r--r--ui/qt/extcap_options_dialog.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/qt/extcap_options_dialog.h b/ui/qt/extcap_options_dialog.h
index a578528412..07ece9215d 100644
--- a/ui/qt/extcap_options_dialog.h
+++ b/ui/qt/extcap_options_dialog.h
@@ -36,6 +36,8 @@ public:
~ExtcapOptionsDialog();
static ExtcapOptionsDialog * createForDevice(QString &device_name, QWidget *parent = 0);
+ ExtcapValueList loadValuesFor(int argNum, QString call, QString parent = "");
+
private Q_SLOTS:
void on_buttonBox_accepted();
void on_buttonBox_rejected();
@@ -56,8 +58,10 @@ private:
void loadArguments();
bool saveOptionToCaptureInfo();
+ GHashTable * getArgumentSettings(bool useCallsAsKey = false);
void storeValues();
void resetValues();
+
};
#endif // EXTCAP_OPTIONS_DIALOG_H