fix packages view, added a copy engine class

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14283 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2005-09-30 14:58:05 +00:00
parent aa6505c068
commit 633dee064e
7 changed files with 181 additions and 44 deletions
+32
View File
@@ -0,0 +1,32 @@
/*
* Copyright 2005, Jérôme DUVAL. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef _CopyEngine_h
#define _CopyEngine_h
#include <DiskDeviceVisitor.h>
#include <DiskDevice.h>
#include <Looper.h>
#include <Messenger.h>
#include <Partition.h>
#include <Volume.h>
class InstallerWindow;
class CopyEngine : public BLooper, BDiskDeviceVisitor {
public:
CopyEngine(InstallerWindow *window);
void Start();
void ScanDisksPartitions(BMenu *srcMenu, BMenu *dstMenu);
virtual bool Visit(BDiskDevice *device);
virtual bool Visit(BPartition *partition, int32 level);
private:
void LaunchInitScript(BVolume *volume);
void LaunchFinishScript(BVolume *volume);
InstallerWindow *fWindow;
};
#endif /* _CopyEngine_h */