![Roland Knall](/assets/img/avatar_default.png)
This is a refactoring/redesign of the "Resolved Addresses" dialog, allowing for sorting/filtering and searching within the addresses and ports. Change-Id: I5071e92ff699323b6c93fc533eeaf92e0db334de Reviewed-on: https://code.wireshark.org/review/34398 Reviewed-by: Roland Knall <rknall@gmail.com> Petri-Dish: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
62 lines
1.1 KiB
C++
62 lines
1.1 KiB
C++
/* resolved_addresses_models.h
|
|
*
|
|
* Wireshark - Network traffic analyzer
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
* Copyright 1998 Gerald Combs
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef RESOLVED_ADDRESSES_MODELS_H
|
|
#define RESOLVED_ADDRESSES_MODELS_H
|
|
|
|
#include <ui/qt/models/astringlist_list_model.h>
|
|
|
|
#include <QAbstractListModel>
|
|
#include <QSortFilterProxyModel>
|
|
|
|
class EthernetAddressModel : public AStringListListModel
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
EthernetAddressModel(QObject * parent = Q_NULLPTR);
|
|
|
|
QStringList filterValues() const;
|
|
|
|
protected:
|
|
QStringList headerColumns() const override;
|
|
void populate();
|
|
|
|
};
|
|
|
|
class PortsModel : public AStringListListModel
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
PortsModel(QObject * parent = Q_NULLPTR);
|
|
|
|
QStringList filterValues() const;
|
|
|
|
protected:
|
|
QStringList headerColumns() const override;
|
|
void populate();
|
|
|
|
};
|
|
|
|
#endif // RESOLVED_ADDRESSES_MODELS_H
|
|
|
|
/*
|
|
* Editor modelines
|
|
*
|
|
* Local Variables:
|
|
* c-basic-offset: 4
|
|
* tab-width: 8
|
|
* indent-tabs-mode: nil
|
|
* End:
|
|
*
|
|
* ex: set shiftwidth=4 tabstop=8 expandtab:
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
*/
|