/* * Copyright 2005, Jérôme DUVAL. All rights reserved. * Distributed under the terms of the MIT License. */ #ifndef __PARTITIONMENUITEM_H_ #define __PARTITIONMENUITEM_H_ #include #include const uint32 SRC_PARTITION = 'iSPT'; const uint32 TARGET_PARTITION = 'iTPT'; class PartitionMenuItem : public BMenuItem { public: PartitionMenuItem(const char *name, const char *label, const char* menuLabel, BMessage *msg, partition_id id); ~PartitionMenuItem(); partition_id ID() const { return fID; }; const char *MenuLabel() { return fMenuLabel ? fMenuLabel : Label(); }; const char *Name() { return fName ? fName : Label(); }; private: partition_id fID; char *fMenuLabel; char *fName; }; #endif /* __PARTITIONMENUITEM_H_ */