Changeset 27792 in vbox
- Timestamp:
- Mar 29, 2010 1:08:44 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 59446
- Location:
- trunk/src/VBox
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r27730 r27792 247 247 if (settingsFile.isEmpty()) 248 248 CHECK_ERROR_BREAK(a->virtualBox, 249 CreateMachine(name, osTypeId, baseFolder, Guid(id).toUtf16(), machine.asOutParam()));249 CreateMachine(name, osTypeId, baseFolder, Guid(id).toUtf16(), FALSE, machine.asOutParam())); 250 250 else 251 251 CHECK_ERROR_BREAK(a->virtualBox, -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UINewVMWzd.cpp
r27730 r27792 636 636 if (m_Machine.isNull()) 637 637 { 638 m_Machine = vbox.CreateMachine(field("name").toString(), typeId, QString::null, QString::null );638 m_Machine = vbox.CreateMachine(field("name").toString(), typeId, QString::null, QString::null, false); 639 639 if (!vbox.isOk()) 640 640 { -
trunk/src/VBox/Main/ApplianceImpl.cpp
r27779 r27792 6 6 7 7 /* 8 * Copyright (C) 2008-20 09Sun Microsystems, Inc.8 * Copyright (C) 2008-2010 Sun Microsystems, Inc. 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 1278 1278 const Utf8Str &strNameVBox = vsdeName.front()->strVbox; 1279 1279 rc = mVirtualBox->CreateMachine(Bstr(strNameVBox), Bstr(strOsTypeVBox), 1280 Bstr(), Bstr(), 1280 Bstr(), Bstr(), FALSE, 1281 1281 pNewMachine.asOutParam()); 1282 1282 if (FAILED(rc)) throw rc; -
trunk/src/VBox/Main/MachineImpl.cpp
r27761 r27792 267 267 * (ignored otherwise) 268 268 * @param aOsType OS Type of this machine 269 * @param aOverride |TRUE| to override VM config file existence checks. 270 * |FALSE| refuses to overwrite existing VM configs. 269 271 * @param aNameSync |TRUE| to automatically sync settings dir and file 270 272 * name with the machine name. |FALSE| is used for legacy … … 285 287 CBSTR aName /* = NULL */, 286 288 GuestOSType *aOsType /* = NULL */, 289 BOOL aOverride /* = FALSE */, 287 290 BOOL aNameSync /* = TRUE */, 288 291 const Guid *aId /* = NULL */) … … 352 355 ) 353 356 { 354 rc = setError(VBOX_E_FILE_ERROR, 355 tr("Machine settings file '%s' already exists"), 356 mData->m_strConfigFileFull.raw()); 357 if (!aOverride) 358 { 359 rc = setError(VBOX_E_FILE_ERROR, 360 tr("Machine settings file '%s' already exists"), 361 mData->m_strConfigFileFull.raw()); 362 } 357 363 if (RT_SUCCESS(vrc)) 358 364 RTFileClose(f); -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r27730 r27792 6 6 7 7 /* 8 * Copyright (C) 2006-20 09Sun Microsystems, Inc.8 * Copyright (C) 2006-2010 Sun Microsystems, Inc. 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 516 516 NULL, 517 517 NULL, 518 FALSE, /* aOverride */ 518 519 FALSE, /* aNameSync */ 519 520 &uuid); … … 1031 1032 IN_BSTR aBaseFolder, 1032 1033 IN_BSTR aId, 1034 BOOL aOverride, 1033 1035 IMachine **aMachine) 1034 1036 { … … 1084 1086 aName, 1085 1087 osType, 1088 aOverride, 1086 1089 TRUE /* aNameSync */, 1087 1090 &id); … … 1139 1142 aName, 1140 1143 osType, 1144 FALSE /* aOverride */, 1141 1145 FALSE /* aNameSync */, 1142 1146 &id); -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r27767 r27792 1690 1690 <interface 1691 1691 name="IVirtualBox" extends="$dispatched" 1692 uuid=" 2158464a-f706-414b-a8c4-fb589dfc6b62"1692 uuid="3f36e024-7fed-4f20-a02c-9158a82b44e6" 1693 1693 wsmap="managed" 1694 1694 > … … 1919 1919 <param name="id" type="uuid" mod="string" dir="in"> 1920 1920 <desc>Machine UUID (optional).</desc> 1921 </param> 1922 <param name="override" type="boolean" dir="in"> 1923 <desc>Create the VM even if there are conflicting files.</desc> 1921 1924 </param> 1922 1925 <param name="machine" type="IMachine" dir="return"> -
trunk/src/VBox/Main/include/MachineImpl.h
r27761 r27792 355 355 CBSTR aName = NULL, 356 356 GuestOSType *aOsType = NULL, 357 BOOL aOverride = FALSE, 357 358 BOOL aNameSync = TRUE, 358 359 const Guid *aId = NULL); -
trunk/src/VBox/Main/include/VirtualBoxImpl.h
r27730 r27792 7 7 8 8 /* 9 * Copyright (C) 2006-20 09Sun Microsystems, Inc.9 * Copyright (C) 2006-2010 Sun Microsystems, Inc. 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 125 125 126 126 STDMETHOD(CreateMachine) (IN_BSTR aName, IN_BSTR aOsTypeId, IN_BSTR aBaseFolder, 127 IN_BSTR aId, IMachine **aMachine);127 IN_BSTR aId, BOOL aOverride, IMachine **aMachine); 128 128 STDMETHOD(CreateLegacyMachine) (IN_BSTR aName, IN_BSTR aOsTypeId, IN_BSTR aSettingsFile, 129 129 IN_BSTR aId, IMachine **aMachine); -
trunk/src/VBox/Main/testcase/tstAPI.cpp
r27730 r27792 5 5 6 6 /* 7 * Copyright (C) 2006-20 09Sun Microsystems, Inc.7 * Copyright (C) 2006-2010 Sun Microsystems, Inc. 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 742 742 RTPrintf ("Creating a new machine object (base dir '%ls', name '%ls')...\n", 743 743 baseDir.raw(), name.raw()); 744 CHECK_ERROR_BREAK (virtualBox, CreateMachine (baseDir, name, 744 CHECK_ERROR_BREAK (virtualBox, CreateMachine (name, L"", baseDir, L"", 745 false, 745 746 machine.asOutParam())); 746 747 -
trunk/src/VBox/Main/testcase/tstVBoxAPILinux.cpp
r27730 r27792 8 8 9 9 /* 10 * Copyright (C) 2006-20 07Sun Microsystems, Inc.10 * Copyright (C) 2006-2010 Sun Microsystems, Inc. 11 11 * 12 12 * This file is part of VirtualBox Open Source Edition (OSE), as … … 195 195 nsCOMPtr <IMachine> machine; 196 196 rc = virtualBox->CreateMachine(NS_LITERAL_STRING("A brand new name").get(), 197 nsnull, nsnull, nsnull, getter_AddRefs(machine));197 nsnull, nsnull, nsnull, false, getter_AddRefs(machine)); 198 198 if (NS_FAILED(rc)) 199 199 {
Note:
See TracChangeset
for help on using the changeset viewer.