1 /* 2 * Copyright 2005, Jérôme DUVAL. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 #ifndef _CopyEngine_h 7 #define _CopyEngine_h 8 9 #include <DiskDevice.h> 10 #include <DiskDeviceRoster.h> 11 #include <Looper.h> 12 #include <Messenger.h> 13 #include <Partition.h> 14 #include <Volume.h> 15 16 class InstallerWindow; 17 18 class CopyEngine : public BLooper { 19 public: 20 CopyEngine(InstallerWindow *window); 21 void Start(); 22 void ScanDisksPartitions(BMenu *srcMenu, BMenu *targetMenu); 23 24 private: 25 void LaunchInitScript(BVolume *volume); 26 void LaunchFinishScript(BVolume *volume); 27 28 InstallerWindow *fWindow; 29 BDiskDeviceRoster fDDRoster; 30 }; 31 32 #endif /* _CopyEngine_h */ 33