aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/traffic_table_dialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt/traffic_table_dialog.h')
-rw-r--r--ui/qt/traffic_table_dialog.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/ui/qt/traffic_table_dialog.h b/ui/qt/traffic_table_dialog.h
index 5abe5b2a24..9d46c77906 100644
--- a/ui/qt/traffic_table_dialog.h
+++ b/ui/qt/traffic_table_dialog.h
@@ -103,6 +103,8 @@ signals:
class TrafficTableDialog : public WiresharkDialog
{
Q_OBJECT
+ Q_PROPERTY(bool absolute_start_time READ absoluteStartTime)
+ Q_PROPERTY(bool nanosecond_timestamps READ nanosecondTimestamps)
public:
/** Create a new conversation window.
@@ -115,6 +117,16 @@ public:
explicit TrafficTableDialog(QWidget &parent, CaptureFile &cf, const char *filter = NULL, const QString &table_name = tr("Unknown"));
~TrafficTableDialog();
+ /** Use absolute start times.
+ * @return true if the "Absolute start time" checkbox is checked, false otherwise.
+ */
+ bool absoluteStartTime();
+
+ /** Use nanosecond timestamps.
+ * @return true if the current capture file uses nanosecond timestamps, false otherwise.
+ */
+ bool nanosecondTimestamps() { return nanosecond_timestamps_; }
+
public slots:
signals:
@@ -143,6 +155,7 @@ protected:
QTabWidget *trafficTableTabWidget() const;
QCheckBox *displayFilterCheckBox() const;
QCheckBox *nameResolutionCheckBox() const;
+ QCheckBox *absoluteTimeCheckBox() const;
QPushButton *enabledTypesPushButton() const;
protected slots:
@@ -151,6 +164,7 @@ protected slots:
private:
QString window_name_;
+ bool nanosecond_timestamps_;
QList<QVariant> curTreeRowData(int row) const;