summaryrefslogtreecommitdiff
path: root/Applications/SystemMonitor/NetworkStatisticsWidget.h
blob: 564ecc1b7908f2cd8d5f9d36ff86a9ebce62e868 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <LibCore/CTimer.h>
#include <LibGUI/GWidget.h>

class GTableView;

class NetworkStatisticsWidget final : public GWidget {
    C_OBJECT(NetworkStatisticsWidget)
public:
    explicit NetworkStatisticsWidget(GWidget* parent = nullptr);
    virtual ~NetworkStatisticsWidget() override;

private:
    void update_models();

    ObjectPtr<GTableView> m_adapter_table_view;
    ObjectPtr<GTableView> m_socket_table_view;
    ObjectPtr<CTimer> m_update_timer;
};