summaryrefslogtreecommitdiff
path: root/Userland/Applications/SpaceAnalyzer/ProgressWindow.h
blob: c7e2e1c76066f85d5e4c63bed66baab258fd55ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * 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;
};