Minor changes. Moved the functionality for getting a messenger targeting the DiskDeviceManager in the registrar into the private support files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2722 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
285c7c7335
commit
e2077e8d4c
@ -7,6 +7,7 @@
|
||||
#define _DISK_DEVICE_H
|
||||
|
||||
#include <DiskDeviceVisitor.h>
|
||||
#include <Messenger.h>
|
||||
#include <ObjectList.h>
|
||||
|
||||
class BPartition;
|
||||
@ -28,10 +29,10 @@ public:
|
||||
int32 CountPartitions() const;
|
||||
|
||||
const char *Path() const;
|
||||
void GetName(BString *name, bool includeBusID = true,
|
||||
bool includeLUN = false) const;
|
||||
void GetName(char *name, bool includeBusID = true,
|
||||
bool includeLUN = false) const;
|
||||
status_t GetName(BString *name, bool includeBusID = true,
|
||||
bool includeLUN = false) const;
|
||||
status_t GetName(char *name, bool includeBusID = true,
|
||||
bool includeLUN = false) const;
|
||||
|
||||
bool IsReadOnly() const;
|
||||
bool IsRemovable() const;
|
||||
@ -41,10 +42,10 @@ public:
|
||||
|
||||
int32 UniqueID() const;
|
||||
|
||||
status_t Eject();
|
||||
status_t Eject(bool update = false);
|
||||
status_t LowLevelFormat(); // TODO: remove?
|
||||
|
||||
status_t Update();
|
||||
status_t Update(bool *updated = NULL);
|
||||
|
||||
BSession *VisitEachSession(BDiskDeviceVisitor *visitor);
|
||||
BPartition *VisitEachPartition(BDiskDeviceVisitor *visitor);
|
||||
@ -58,6 +59,7 @@ private:
|
||||
BDiskDevice &operator=(const BDiskDevice &);
|
||||
|
||||
status_t _Unarchive(BMessage *archive);
|
||||
status_t _Update(BMessage *archive);
|
||||
|
||||
bool _AddSession(BSession *session);
|
||||
|
||||
|
@ -9,6 +9,8 @@
|
||||
#include <DiskDeviceVisitor.h>
|
||||
#include <SupportDefs.h>
|
||||
|
||||
class BMessenger;
|
||||
|
||||
namespace BPrivate {
|
||||
|
||||
// PartitionFilter
|
||||
@ -45,11 +47,13 @@ private:
|
||||
int32 fID;
|
||||
};
|
||||
|
||||
status_t get_disk_device_messenger(BMessenger *messenger);
|
||||
|
||||
} // namespace BPrivate
|
||||
|
||||
using BPrivate::PartitionFilter;
|
||||
using BPrivate::PartitionFilterVisitor;
|
||||
using BPrivate::IDFinderVisitor;
|
||||
|
||||
using BPrivate::get_disk_device_messenger;
|
||||
|
||||
#endif // _DISK_DEVICE_PRIVATE_H
|
||||
|
@ -63,6 +63,7 @@ private:
|
||||
|
||||
void _Unset();
|
||||
status_t _Unarchive(BMessage *archive);
|
||||
status_t _Update(BMessage *archive);
|
||||
|
||||
void _SetDevice(BDiskDevice *device);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user