Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / qt / search_frame.h
blob52a2a489d181c4a567b0be691c8f7d893470329d
1 /** @file
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
10 #ifndef SEARCH_FRAME_H
11 #define SEARCH_FRAME_H
13 #include <config.h>
15 #include "accordion_frame.h"
17 #include "cfile.h"
19 namespace Ui {
20 class SearchFrame;
23 class SearchFrame : public AccordionFrame
25 Q_OBJECT
27 public:
28 explicit SearchFrame(QWidget *parent = 0);
29 ~SearchFrame();
30 void animatedShow();
31 void findNext();
32 void findPrevious();
33 void setFocus();
35 public slots:
36 void setCaptureFile(capture_file *cf);
37 void findFrameWithFilter(QString &filter);
39 protected:
40 virtual void keyPressEvent(QKeyEvent *event);
41 void changeEvent(QEvent* event);
43 private:
44 bool regexCompile();
45 void applyRecentSearchSettings();
46 void updateWidgets();
48 Ui::SearchFrame *sf_ui_;
49 capture_file *cap_file_;
50 ws_regex_t *regex_;
51 QString regex_error_;
53 private slots:
54 void on_searchInComboBox_currentIndexChanged(int idx);
55 void on_charEncodingComboBox_currentIndexChanged(int idx);
56 void on_caseCheckBox_toggled(bool checked);
57 void on_searchTypeComboBox_currentIndexChanged(int idx);
58 void on_searchLineEdit_textChanged(const QString &);
59 void on_dirCheckBox_toggled(bool checked);
60 void on_multipleCheckBox_toggled(bool checked);
61 void on_findButton_clicked();
62 void on_cancelButton_clicked();
65 #endif // SEARCH_FRAME_H