haiku/headers/private/storage/DiskDeviceJob.h
Ingo Weinhold 8954437d0a Moved definitions of general interest to DiskDeviceDefs.h. Minor changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-30 00:33:32 +00:00

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