summaryrefslogtreecommitdiff
path: root/Applications/SystemMonitor/NetworkStatisticsWidget.h
blob: c46ee86ef2b1d77d3e64a7adb680a068cb4a88ea (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/GLazyWidget.h>

class GTableView;

class NetworkStatisticsWidget final : public GLazyWidget {
    C_OBJECT(NetworkStatisticsWidget)
public:
    virtual ~NetworkStatisticsWidget() override;

private:
    explicit NetworkStatisticsWidget(GWidget* parent = nullptr);
    void update_models();

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