1 /* 2 * Copyright 2011, Axel Dörfler, axeld@pinc-software.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef BOOT_DRIVE_H 6 #define BOOT_DRIVE_H 7 8 9 #include <Path.h> 10 11 #include "BootMenu.h" 12 13 14 class BDiskDevice; 15 16 17 class BootDrive { 18 public: 19 BootDrive(const char* path); 20 virtual ~BootDrive(); 21 22 BootMenu* InstalledMenu( 23 const BootMenuList& menus) const; 24 status_t CanMenuBeInstalled( 25 const BootMenuList& menus) const; 26 void AddSupportedMenus(const BootMenuList& from, 27 BootMenuList& to); 28 29 const char* Path() const; 30 bool IsBootDrive() const; 31 32 status_t GetDiskDevice(BDiskDevice& device) const; 33 34 private: 35 BPath fPath; 36 }; 37 38 39 #endif // BOOT_DRIVE_H 40