1 /* 2 * Copyright 2005, Jérôme DUVAL. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef PARTITION_MENU_ITEM_H 6 #define PARTITION_MENU_ITEM_H 7 8 #include <MenuItem.h> 9 #include <Partition.h> 10 11 12 const uint32 SRC_PARTITION = 'iSPT'; 13 const uint32 TARGET_PARTITION = 'iTPT'; 14 15 16 class PartitionMenuItem : public BMenuItem { 17 public: 18 PartitionMenuItem(const char* name, 19 const char* label, const char* menuLabel, 20 BMessage* msg, partition_id id); 21 virtual ~PartitionMenuItem(); 22 23 partition_id ID() const; 24 const char* MenuLabel() const; 25 const char* Name() const; 26 27 private: 28 partition_id fID; 29 char* fMenuLabel; 30 char* fName; 31 }; 32 33 #endif // PARTITION_MENU_ITEM_H_ 34