2013-08-08 00:26:57 +00:00
|
|
|
/* capture_filter_combo.h
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-04-30 07:47:58 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2013-08-08 00:26:57 +00:00
|
|
|
|
|
|
|
#ifndef CAPTURE_FILTER_COMBO_H
|
|
|
|
#define CAPTURE_FILTER_COMBO_H
|
|
|
|
|
2017-07-25 14:15:18 +00:00
|
|
|
#include <ui/qt/widgets/capture_filter_edit.h>
|
2013-08-08 00:26:57 +00:00
|
|
|
|
|
|
|
#include <QComboBox>
|
|
|
|
#include <QList>
|
|
|
|
|
|
|
|
class CaptureFilterCombo : public QComboBox
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2016-01-29 06:55:03 +00:00
|
|
|
explicit CaptureFilterCombo(QWidget *parent = 0, bool plain = false);
|
2013-08-08 00:26:57 +00:00
|
|
|
bool addRecentCapture(const char *filter);
|
|
|
|
void writeRecent(FILE *rf);
|
2016-02-23 18:04:16 +00:00
|
|
|
void setConflict(bool conflict = false) { cf_edit_->setConflict(conflict); }
|
2013-08-08 00:26:57 +00:00
|
|
|
|
|
|
|
signals:
|
|
|
|
void interfacesChanged();
|
2015-03-04 23:43:33 +00:00
|
|
|
void pushFilterSyntaxStatus(const QString&);
|
2013-08-08 00:26:57 +00:00
|
|
|
void popFilterSyntaxStatus();
|
|
|
|
void captureFilterSyntaxChanged(bool valid);
|
|
|
|
void startCapture();
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
private:
|
|
|
|
CaptureFilterEdit *cf_edit_;
|
|
|
|
|
|
|
|
private slots:
|
2016-03-31 21:20:26 +00:00
|
|
|
void saveAndRebuildFilterList();
|
|
|
|
void rebuildFilterList();
|
2013-08-08 00:26:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CAPTURE_FILTER_COMBO_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Editor modelines
|
|
|
|
*
|
|
|
|
* Local Variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* ex: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
|
|
*/
|