From b7e7796e20d5b194a72658a0e3f88522e7f66ebc Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Wed, 9 Nov 2016 13:56:12 +0100 Subject: extcap: add new option type (timestamp). Bug: 12787 Change-Id: I941833c55fb607c8af2ef832082af58d7b94e965 Reviewed-on: https://code.wireshark.org/review/18721 Petri-Dish: Roland Knall Reviewed-by: Roland Knall Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- ui/qt/extcap_argument.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'ui/qt/extcap_argument.h') diff --git a/ui/qt/extcap_argument.h b/ui/qt/extcap_argument.h index 5ff390c7d0..851fcfb009 100644 --- a/ui/qt/extcap_argument.h +++ b/ui/qt/extcap_argument.h @@ -31,6 +31,7 @@ #include #include #include +#include #include @@ -207,6 +208,26 @@ private: bool defaultBool(); }; +class ExtArgTimestamp : public ExtcapArgument +{ + Q_OBJECT + +public: + ExtArgTimestamp(extcap_arg * argument); + virtual QWidget * createEditor(QWidget * parent); + + virtual bool isValid(); + virtual QString defaultValue(); + virtual QString value(); + virtual QString prefValue(); + +private Q_SLOTS: + void onDateTimeChanged(QDateTime); + +private: + QDateTime ts; +}; + #endif /* UI_QT_EXTCAP_ARGUMENT_H_ */ /* -- cgit v1.2.3