diff options
author | Roland Knall <roland.knall@br-automation.com> | 2016-01-28 10:41:38 +0100 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2016-01-28 14:51:14 +0000 |
commit | 97a1a50e200a6c50e0014dde7e8ec932c30190a1 (patch) | |
tree | f7f49f88fd79da22f17d95d39f94b146c2e3b316 /ui/qt/extcap_argument.h | |
parent | 08527e9b85d91f1d121bfa323b9c32780012a02c (diff) |
extcap: Cleanup complex types and add save option
Cleanup handling of complex data types and use only
glib defined datatypes while handling argument values.
Add a save parameter, which (additionally) can set, that
a parameter is not saved in a configuration file. Passwords
are by default not saved, which may be overwritten using
this parameter
Change-Id: I67eff0f3286170f082d532e806a39511c40df647
Reviewed-on: https://code.wireshark.org/review/13573
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'ui/qt/extcap_argument.h')
-rw-r--r-- | ui/qt/extcap_argument.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ui/qt/extcap_argument.h b/ui/qt/extcap_argument.h index 017a163378..c83111a2d3 100644 --- a/ui/qt/extcap_argument.h +++ b/ui/qt/extcap_argument.h @@ -98,7 +98,7 @@ public: bool isValid(); bool isRequired(); - static ExtcapArgument * create(extcap_arg * argument = 0, GHashTable * device_defaults = 0); + static ExtcapArgument * create(extcap_arg * argument = 0); Q_SIGNALS: void valueChanged(); @@ -107,14 +107,11 @@ protected: bool fileExists(); - void setDefault(GHashTable * defaultsList); - ExtcapValueList loadValues(QString parent); ExtcapValueList values; extcap_arg * _argument; - QVariant * _default; QWidget * _label; const QString label_style; @@ -136,7 +133,6 @@ public: virtual QWidget * createEditor(QWidget * parent); virtual QString value(); virtual bool isValid(); - virtual QString defaultValue(); protected: @@ -197,6 +193,8 @@ public: private: QCheckBox * boolBox; + + bool defaultBool(); }; #endif /* UI_QT_EXTCAP_ARGUMENT_H_ */ |