This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
NG_2024_PacketAnalyzer/packetanalyzer.h

53 lines
1 KiB
C
Raw Permalink Normal View History

2024-08-30 13:48:01 +00:00
#ifndef PACKETANALYZER_H
#define PACKETANALYZER_H
#include <QFileDialog>
#include <QMainWindow>
#include <QMessageBox>
#include <QNetworkInterface>
#include <QTableWidgetItem>
#include <IPv4Layer.h>
#include <IPv6Layer.h>
#include <PcapFileDevice.h>
#include <PcapLiveDeviceList.h>
#include "llmmanager.h"
#include "packetmanager.h"
2024-08-30 13:48:01 +00:00
QT_BEGIN_NAMESPACE
namespace Ui {
class PacketAnalyzer;
}
QT_END_NAMESPACE
class PacketAnalyzer : public QMainWindow
{
Q_OBJECT
public:
PacketAnalyzer(QWidget *parent = nullptr);
~PacketAnalyzer();
private slots:
void changeInterface(QString);
void refresh();
void packetSelected();
void start();
void stop();
void save();
void load();
void llmRequest();
void llmResponse(QString);
void llmError();
2024-08-30 13:48:01 +00:00
private:
Ui::PacketAnalyzer *ui;
pcpp::PcapLiveDevice* m_dev = nullptr;
pcpp::RawPacketVector m_packets;
LlmManager *m_llm = new LlmManager();
2024-08-30 13:48:01 +00:00
void clear();
void uiLock();
void uiUnlock();
2024-08-30 13:48:01 +00:00
};
#endif // PACKETANALYZER_H