summaryrefslogtreecommitdiffstats
path: root/ui/qt/models/resolved_addresses_models.h
blob: 32ca1b15325f5156e5c6197271194f583eb7c2a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/** @file
 *
 * 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