Wireshark  4.3.0
The Wireshark network protocol analyzer
info_proxy_model.h
Go to the documentation of this file.
1 
12 #ifndef INFO_PROXY_MODEL_H
13 #define INFO_PROXY_MODEL_H
14 
15 #include <config.h>
16 
17 #include <QStringList>
18 #include <QIdentityProxyModel>
19 
20 class InfoProxyModel : public QIdentityProxyModel
21 {
22 public:
23  explicit InfoProxyModel(QObject * parent = 0);
24  ~InfoProxyModel();
25 
26  virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
27  virtual QVariant data (const QModelIndex &index, int role = Qt::DisplayRole) const;
28 
29  virtual Qt::ItemFlags flags(const QModelIndex &index) const;
30  virtual QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
31 
32  virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const;
33  virtual QModelIndex mapFromSource(const QModelIndex &fromIndex) const;
34 
35  void appendInfo(QString info);
36  void clearInfos();
37 
38  void setColumn(int column);
39 
40 private:
41 
42  int column_;
43 
44  QStringList infos_;
45 };
46 
47 #endif // INFO_PROXY_MODEL_H
Definition: info_proxy_model.h:21
Definition: file-pcapng.h:57