serenity/Userland/Applications/SystemMonitor/NetworkStatisticsWidget.h
Lenny Maiorani 160bda7228 Applications: Use default constructors/destructors
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules

"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
2022-02-14 22:06:55 +00:00

32 lines
984 B
C++

/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* Copyright (c) 2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibCore/Timer.h>
#include <LibGUI/LazyWidget.h>
class NetworkStatisticsWidget final : public GUI::LazyWidget {
C_OBJECT(NetworkStatisticsWidget)
public:
virtual ~NetworkStatisticsWidget() override = default;
private:
NetworkStatisticsWidget();
void update_models();
RefPtr<GUI::TableView> m_adapter_table_view;
RefPtr<GUI::TableView> m_tcp_socket_table_view;
RefPtr<GUI::TableView> m_udp_socket_table_view;
RefPtr<GUI::JsonArrayModel> m_adapter_model;
RefPtr<GUI::JsonArrayModel> m_tcp_socket_model;
RefPtr<GUI::JsonArrayModel> m_udp_socket_model;
RefPtr<Core::Timer> m_update_timer;
RefPtr<Gfx::Bitmap> m_network_connected_bitmap;
RefPtr<Gfx::Bitmap> m_network_disconnected_bitmap;
RefPtr<Gfx::Bitmap> m_network_link_down_bitmap;
};