mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 06:02:07 +03:00
24 lines
590 B
C++
24 lines
590 B
C++
/*
|
|
* Copyright (c) 2023, Sam Atkins <atkinssj@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibGUI/Window.h>
|
|
|
|
class ProgressWindow final : public GUI::Window {
|
|
C_OBJECT_ABSTRACT(ProgressWindow)
|
|
public:
|
|
static ErrorOr<NonnullRefPtr<ProgressWindow>> try_create(StringView title, GUI::Window* parent = nullptr);
|
|
virtual ~ProgressWindow() override;
|
|
|
|
void update_progress_label(size_t files_encountered_count);
|
|
|
|
private:
|
|
ProgressWindow(StringView title, GUI::Window* parent = nullptr);
|
|
|
|
RefPtr<GUI::Label> m_progress_label;
|
|
};
|