mirror of
https://review.haiku-os.org/haiku
synced 2025-01-21 22:04:49 +01:00
8954437d0a
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4133 a95241bf-73f2-0310-859d-f6bbb57e9c96
35 lines
867 B
C++
35 lines
867 B
C++
//----------------------------------------------------------------------
|
|
// This software is part of the OpenBeOS distribution and is covered
|
|
// by the OpenBeOS license.
|
|
//---------------------------------------------------------------------
|
|
|
|
#ifndef _DISK_DEVICE_JOB_H
|
|
#define _DISK_DEVICE_JOB_H
|
|
|
|
#include <DiskDeviceDefs.h>
|
|
#include <String.h>
|
|
|
|
class BDiskDeviceJob {
|
|
public:
|
|
disk_job_id ID() const;
|
|
uint32 Type() const;
|
|
partition_id PartitionID() const;
|
|
|
|
float Progress() const; // [0.0, 1.0]
|
|
uint32 Status() const;
|
|
const char *Description() const;
|
|
status_t GetProgressInfo(disk_device_job_progress_info *info) const;
|
|
uint32 InterruptProperties() const;
|
|
|
|
status_t Cancel(bool reverse = false);
|
|
status_t Pause();
|
|
|
|
private:
|
|
disk_job_id fJobID;
|
|
uint32 fType;
|
|
partition_id fPartitionID;
|
|
BString fDescription;
|
|
};
|
|
|
|
#endif // _DISK_DEVICE_JOB_H
|