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 12const uint32 SOURCE_PARTITION = 'iSPT'; 13const uint32 TARGET_PARTITION = 'iTPT'; 14 15 16class PartitionMenuItem : public BMenuItem { 17public: 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 void SetIsValidTarget(bool isValidTarget); 28 bool IsValidTarget() const; 29 30private: 31 partition_id fID; 32 char* fMenuLabel; 33 char* fName; 34 bool fIsValidTarget; 35}; 36 37#endif // PARTITION_MENU_ITEM_H_ 38