| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
resolved_addresses_view.h
Go to the documentation of this file.
1
10#ifndef RESOLVED_ADDRESSES_VIEW_H
11#define RESOLVED_ADDRESSES_VIEW_H
12
13#include <ui/qt/models/resolved_addresses_models.h>
14
15#include <QTableView>
16#include <QMenu>
17
18 class ResolvedAddressesView : public QTableView
19{
20 Q_OBJECT
21
22public:
23 typedef enum {
24 EXPORT_TEXT,
25 EXPORT_CSV,
26 EXPORT_JSON
27 } eResolvedAddressesExport;
28
29 ResolvedAddressesView(QWidget *parent = nullptr);
30
31 QMenu* createCopyMenu(bool selected = false, QWidget *parent = nullptr);
32
33public slots:
34 void saveAs();
35
36protected:
37 void contextMenuEvent(QContextMenuEvent *e) override;
38
39private:
40 QAction *clip_action_;
41
42 AStringListListModel* dataModel() const;
43 void copyToClipboard(eResolvedAddressesExport format, bool selected);
44
45private slots:
46 void clipboardAction();
47 void toTextStream(QTextStream &stream, eResolvedAddressesExport format, bool selected = false) const;
48};
49
50#endif // RESOLVED_ADDRESSES_VIEW_H
AStringListListModel
Definition astringlist_list_model.h:23
ResolvedAddressesView
Definition resolved_addresses_view.h:19
resolved_addresses_models.h
stream
Definition stream.c:41