Implemented high-level iteration code. Various fixes.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2666 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2003-02-08 23:34:47 +00:00
parent f0bc031212
commit 03fa4a4f9c
8 changed files with 310 additions and 21 deletions
+3
View File
@@ -50,6 +50,9 @@ public:
BPartition *VisitEachPartition(BDiskDeviceVisitor *visitor);
bool Traverse(BDiskDeviceVisitor *visitor);
BSession *SessionWithID(int32 id);
BPartition *PartitionWithID(int32 id);
private:
BDiskDevice(const BDiskDevice &);
BDiskDevice &operator=(const BDiskDevice &);
@@ -55,6 +55,9 @@ public:
bool VisitEachDevice(BDiskDeviceVisitor *visitor,
BDiskDevice *device = NULL);
bool VisitEachSession(BDiskDeviceVisitor *visitor,
BDiskDevice *device = NULL,
BSession **session = NULL);
bool VisitEachPartition(BDiskDeviceVisitor *visitor,
BDiskDevice *device = NULL,
BPartition **partition = NULL);
@@ -81,6 +84,10 @@ public:
uint32 eventMask = B_DEVICE_REQUEST_ALL);
status_t StopWatching(BMessenger target);
private:
status_t _GetObjectWithID(const char *fieldName, int32 id,
BDiskDevice *device) const;
private:
BMessenger fManager;
int32 fCookie;
@@ -12,6 +12,7 @@ class BSession;
// BDiskDeviceVisitor
class BDiskDeviceVisitor {
public:
BDiskDeviceVisitor();
virtual ~BDiskDeviceVisitor();
+2
View File
@@ -43,6 +43,8 @@ public:
BPartition *VisitEachPartition(BDiskDeviceVisitor *visitor);
BPartition *PartitionWithID(int32 id);
status_t GetPartitioningParameters(const char *partitioningSystem,
BString *parameters,
BPoint dialogCenter = BPoint(-1, -1),