mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:07:34 +00:00
FileManager: Use Core::Stream for FileOperationProgressWidget
This commit is contained in:
parent
dc5a318aa9
commit
1925bde3c0
3 changed files with 16 additions and 11 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue