haiku/headers/private/storage/DiskDevice.h
Ingo Weinhold bef8916ea6 * Used partition_id, disk_job_id and disk_system_id instead of uint32.
* Replaced uint32 for indices and counts with int32.
* Some additions to BDiskDeviceRoster and BDiskDeviceJob.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3453 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-09 23:02:16 +00:00

36 lines
917 B
C++

//----------------------------------------------------------------------
// This software is part of the OpenBeOS distribution and is covered
// by the OpenBeOS license.
//---------------------------------------------------------------------
#ifndef _DISK_DEVICE_H
#define _DISK_DEVICE_H
class BDiskDevice : public BPartition {
public:
bool IsRemovable() const;
bool HasMedia() const;
status_t Eject(bool update = false);
status_t Update(bool *updated = NULL);
void Unset();
bool IsModified() const;
status_t CommitModifications(bool synchronously = true,
BMessenger progressMessenger = BMessenger(),
bool receiveCompleteProgressUpdates = true,
BMessage *template = NULL);
private:
friend class BDiskDeviceList;
friend class BDiskDeviceRoster;
char fDeviceType[B_FILE_NAME_LENGTH];
char fPath[B_FILE_NAME_LENGTH];
bool fIsRemovable;
status_t fMediaStatus;
}
#endif // _DISK_DEVICE_H