2003-01-31 22:05:09 +00:00
|
|
|
//----------------------------------------------------------------------
|
|
|
|
// This software is part of the OpenBeOS distribution and is covered
|
|
|
|
// by the OpenBeOS license.
|
|
|
|
//---------------------------------------------------------------------
|
2003-01-31 21:17:20 +00:00
|
|
|
|
|
|
|
#ifndef _DISK_DEVICE_H
|
|
|
|
#define _DISK_DEVICE_H
|
|
|
|
|
2003-05-28 21:43:58 +00:00
|
|
|
class BDiskDevice : public BPartition {
|
2003-01-31 21:17:20 +00:00
|
|
|
public:
|
|
|
|
bool IsRemovable() const;
|
|
|
|
bool HasMedia() const;
|
|
|
|
|
2003-02-16 18:03:59 +00:00
|
|
|
status_t Eject(bool update = false);
|
2003-01-31 21:17:20 +00:00
|
|
|
|
2003-02-16 18:03:59 +00:00
|
|
|
status_t Update(bool *updated = NULL);
|
2003-05-28 21:46:11 +00:00
|
|
|
void Unset();
|
|
|
|
|
|
|
|
bool IsModified() const;
|
2003-06-09 23:02:16 +00:00
|
|
|
status_t CommitModifications(bool synchronously = true,
|
2003-05-28 21:46:11 +00:00
|
|
|
BMessenger progressMessenger = BMessenger(),
|
2003-05-28 21:47:29 +00:00
|
|
|
bool receiveCompleteProgressUpdates = true,
|
2003-05-28 21:46:11 +00:00
|
|
|
BMessage *template = NULL);
|
2003-01-31 21:17:20 +00:00
|
|
|
private:
|
2003-02-20 00:22:09 +00:00
|
|
|
friend class BDiskDeviceList;
|
2003-02-08 00:39:38 +00:00
|
|
|
friend class BDiskDeviceRoster;
|
|
|
|
|
2003-05-28 21:43:58 +00:00
|
|
|
char fDeviceType[B_FILE_NAME_LENGTH];
|
|
|
|
char fPath[B_FILE_NAME_LENGTH];
|
|
|
|
|
|
|
|
bool fIsRemovable;
|
|
|
|
status_t fMediaStatus;
|
|
|
|
}
|
2003-01-31 21:17:20 +00:00
|
|
|
|
|
|
|
#endif // _DISK_DEVICE_H
|