2 * Copyright 2005, Jérôme DUVAL. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef PARTITION_MENU_ITEM_H
6 #define PARTITION_MENU_ITEM_H
12 const uint32 SOURCE_PARTITION
= 'iSPT';
13 const uint32 TARGET_PARTITION
= 'iTPT';
16 class PartitionMenuItem
: public BMenuItem
{
18 PartitionMenuItem(const char* name
,
19 const char* label
, const char* menuLabel
,
20 BMessage
* msg
, partition_id id
);
21 virtual ~PartitionMenuItem();
23 partition_id
ID() const;
24 const char* MenuLabel() const;
25 const char* Name() const;
27 void SetIsValidTarget(bool isValidTarget
);
28 bool IsValidTarget() const;
37 #endif // PARTITION_MENU_ITEM_H_