Wireshark 4.5.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
14
15#include <QTableView>
16#include <QMenu>
17
18class 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
Definition astringlist_list_model.h:23
Definition resolved_addresses_view.h:19
Definition stream.c:41