blob: 0eb3aa083b971774c403ce1485012757f55b0f1d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef NULLSOFT_BURNER_IFC_BURNER_WRITECALLBACK_H
#define NULLSOFT_BURNER_IFC_BURNER_WRITECALLBACK_H
#include <bfc/dispatch.h>
#include <bfc/platform/types.h>
class ifc_burner_writecallback : public Dispatchable
{
protected:
ifc_burner_writecallback() {}
~ifc_burner_writecallback() {}
public:
int OnStatus(uint32_t sectorsWritten, uint32_t totalSectors); // return 1 to abort or 0 to continue
int Finished();
enum
{
BURNER_WRITECALLBACK_ONSTATUS = 0,
BURNER_WRITECALLBACK_FINISHED = 1,
};
};
inline int ifc_burner_writecallback::OnStatus(uint32_t sectorsWritten, uint32_t totalSectors)
{
return _call(BURNER_WRITECALLBACK_ONSTATUS, (int)0, sectorsWritten, totalSectors);
}
inline int ifc_burner_writecallback::Finished()
{
return _call(BURNER_WRITECALLBACK_FINISHED, (int)0);
}
#endif
|