summaryrefslogtreecommitdiff
path: root/Userland/Applications/FileManager/FileOperationProgressWidget.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-03-12 13:45:03 +0000
committerAndreas Kling <kling@serenityos.org>2022-03-13 22:38:48 +0100
commit1925bde3c0a4615e649b653501f66abcb7b3f459 (patch)
treeb29c1620cc5db9cac49c038c3355be2bd9733189 /Userland/Applications/FileManager/FileOperationProgressWidget.h
parentdc5a318aa9fd69e365836c3b41f66645dc839a77 (diff)
downloadserenity-1925bde3c0a4615e649b653501f66abcb7b3f459.zip
FileManager: Use Core::Stream for FileOperationProgressWidget
Diffstat (limited to 'Userland/Applications/FileManager/FileOperationProgressWidget.h')
-rw-r--r--Userland/Applications/FileManager/FileOperationProgressWidget.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Applications/FileManager/FileOperationProgressWidget.h b/Userland/Applications/FileManager/FileOperationProgressWidget.h
index 9b10da898b..1706a8307b 100644
--- a/Userland/Applications/FileManager/FileOperationProgressWidget.h
+++ b/Userland/Applications/FileManager/FileOperationProgressWidget.h
@@ -8,6 +8,7 @@
#include "FileUtils.h"
#include <LibCore/ElapsedTimer.h>
+#include <LibCore/Stream.h>
#include <LibGUI/Widget.h>
namespace FileManager {
@@ -19,7 +20,8 @@ public:
virtual ~FileOperationProgressWidget() override;
private:
- FileOperationProgressWidget(FileOperation, NonnullRefPtr<Core::File> helper_pipe);
+ // FIXME: The helper_pipe_fd parameter is only needed because we can't get the fd from a Core::Stream.
+ FileOperationProgressWidget(FileOperation, NonnullOwnPtr<Core::Stream::BufferedFile> helper_pipe, int helper_pipe_fd);
void did_finish();
void did_error(StringView message);
@@ -32,6 +34,6 @@ private:
FileOperation m_operation;
RefPtr<Core::Notifier> m_notifier;
- RefPtr<Core::File> m_helper_pipe;
+ OwnPtr<Core::Stream::BufferedFile> m_helper_pipe;
};
}