2 * Copyright 2009, Stephan Aßmus <superstippi@gmx.de>
3 * All rights reserved. Distributed under the terms of the MIT License.
5 #ifndef PROGRESS_REPORTER_H
6 #define PROGRESS_REPORTER_H
12 class ProgressReporter
{
14 ProgressReporter(const BMessenger
& messenger
,
16 virtual ~ProgressReporter();
20 void AddItems(uint64 count
, off_t bytes
);
24 void ItemsWritten(uint64 items
, off_t bytes
,
26 const char* targetFolder
);
28 // TODO: Perhaps move cancelling here as well...
31 void _UpdateProgress(const char* itemName
,
32 const char* targetFolder
);
43 BMessenger fMessenger
;
48 #endif // PROGRESS_REPORTER_H