now mount the target partition before copying git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21113 a95241bf-73f2-0310-859d-f6bbb57e9c96
27 lines
511 B
C++
27 lines
511 B
C++
/*
|
|
* Copyright 2005, Jérôme DUVAL. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
|
|
#include <View.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include "PartitionMenuItem.h"
|
|
|
|
PartitionMenuItem::PartitionMenuItem(const char *name, const char *label, const char *menuLabel,
|
|
BMessage *msg, partition_id id)
|
|
: BMenuItem(label, msg)
|
|
{
|
|
fID = id;
|
|
fMenuLabel = strdup(menuLabel);
|
|
fName = strdup(name);
|
|
}
|
|
|
|
|
|
PartitionMenuItem::~PartitionMenuItem()
|
|
{
|
|
free(fMenuLabel);
|
|
free(fName);
|
|
}
|