xref: /haiku/src/apps/installer/PartitionMenuItem.h (revision b30304acc8c37e678a1bf66976d15bdab103f931)
1 /*
2  * Copyright 2005, Jérôme DUVAL. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 #ifndef __PARTITIONMENUITEM_H_
7 #define __PARTITIONMENUITEM_H_
8 
9 #include <MenuItem.h>
10 #include <Partition.h>
11 
12 const uint32 SRC_PARTITION = 'iSPT';
13 const uint32 TARGET_PARTITION = 'iTPT';
14 
15 class PartitionMenuItem : public BMenuItem {
16 	public:
17 		PartitionMenuItem(const char *name, const char *label,
18 			const char* menuLabel, BMessage *msg, partition_id id);
19 		~PartitionMenuItem();
20 		partition_id ID() const { return fID; };
21 	const char *MenuLabel() { return fMenuLabel ? fMenuLabel : Label(); };
22 	const char *Name() { return fName ? fName : Label(); };
23 	private:
24 		partition_id fID;
25 		char *fMenuLabel;
26 		char *fName;
27 };
28 
29 #endif	/* __PARTITIONMENUITEM_H_ */
30