2021-11-30 13:01:36 +00:00
|
|
|
/** @file
|
2019-05-29 14:06:38 +00:00
|
|
|
*
|
|
|
|
* Copyright 2019 - Dario Lombardo <lomato@gmail.com>
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CREDENTIALS_DIALOG_H
|
|
|
|
#define CREDENTIALS_DIALOG_H
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <wireshark_dialog.h>
|
|
|
|
#include "packet_list.h"
|
|
|
|
#include <ui/tap-credentials.h>
|
|
|
|
|
2019-07-03 15:00:16 +00:00
|
|
|
class CredentialsModel;
|
|
|
|
|
2019-05-29 14:06:38 +00:00
|
|
|
namespace Ui {
|
|
|
|
class CredentialsDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class CredentialsDialog : public WiresharkDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit CredentialsDialog(QWidget &parent, CaptureFile &cf, PacketList *packet_list);
|
|
|
|
~CredentialsDialog();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void actionGoToPacket(const QModelIndex&);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::CredentialsDialog *ui;
|
|
|
|
PacketList *packet_list_;
|
2019-07-03 15:00:16 +00:00
|
|
|
CredentialsModel * model_;
|
|
|
|
|
|
|
|
static void tapReset(void *tapdata);
|
2022-06-09 15:47:35 +00:00
|
|
|
static tap_packet_status tapPacket(void *tapdata, struct _packet_info *pinfo, struct epan_dissect *edt, const void *data, tap_flags_t flags);
|
2019-05-29 14:06:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CREDENTIALS_DIALOG_H
|