added a SourceVisitor and a TargetVisitor to go through BDiskDevice and BPartition objects

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14424 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2005-10-19 13:11:11 +00:00
parent 8047f0a02d
commit 1a8f53bbf7
3 changed files with 85 additions and 20 deletions
+4 -5
View File
@@ -6,8 +6,8 @@
#ifndef _CopyEngine_h
#define _CopyEngine_h
#include <DiskDeviceVisitor.h>
#include <DiskDevice.h>
#include <DiskDeviceRoster.h>
#include <Looper.h>
#include <Messenger.h>
#include <Partition.h>
@@ -15,18 +15,17 @@
class InstallerWindow;
class CopyEngine : public BLooper/*, BDiskDeviceVisitor*/ {
class CopyEngine : public BLooper {
public:
CopyEngine(InstallerWindow *window);
void Start();
void ScanDisksPartitions(BMenu *srcMenu, BMenu *dstMenu);
void ScanDisksPartitions(BMenu *srcMenu, BMenu *targetMenu);
virtual bool Visit(BDiskDevice *device);
virtual bool Visit(BPartition *partition, int32 level);
private:
void LaunchInitScript(BVolume *volume);
void LaunchFinishScript(BVolume *volume);
InstallerWindow *fWindow;
BDiskDeviceRoster fDDRoster;
};
#endif /* _CopyEngine_h */