xref: /haiku/src/apps/installer/PartitionMenuItem.h (revision 5c7514c31748e5017b8fc8b97c34b6b0ade4eefc)
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 SOURCE_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 			void				SetIsValidTarget(bool isValidTarget);
28 			bool				IsValidTarget() const;
29 
30 private:
31 			partition_id		fID;
32 			char*				fMenuLabel;
33 			char*				fName;
34 			bool				fIsValidTarget;
35 };
36 
37 #endif // PARTITION_MENU_ITEM_H_
38