BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / installer / PartitionMenuItem.h
blob722563258cfa38fe54e5133f9c4db559bc469ca5
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
8 #include <MenuItem.h>
9 #include <Partition.h>
12 const uint32 SOURCE_PARTITION = 'iSPT';
13 const uint32 TARGET_PARTITION = 'iTPT';
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();
23 partition_id ID() const;
24 const char* MenuLabel() const;
25 const char* Name() const;
27 void SetIsValidTarget(bool isValidTarget);
28 bool IsValidTarget() const;
30 private:
31 partition_id fID;
32 char* fMenuLabel;
33 char* fName;
34 bool fIsValidTarget;
37 #endif // PARTITION_MENU_ITEM_H_