Changeset 26550 in vbox for trunk/src/VBox/Main/ApplianceImpl.cpp
- Timestamp:
- Feb 15, 2010 5:14:18 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57728
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r26511 r26550 370 370 int i = 1; 371 371 /* @todo: Maybe too cost-intensive; try to find a lighter way */ 372 while (mVirtualBox->FindMachine(Bstr(tmpName) , &machine) != VBOX_E_OBJECT_NOT_FOUND)372 while (mVirtualBox->FindMachine(Bstr(tmpName).raw(), &machine) != VBOX_E_OBJECT_NOT_FOUND) 373 373 { 374 374 RTStrFree(tmpName); … … 391 391 /* @todo: Maybe too cost-intensive; try to find a lighter way */ 392 392 while (RTPathExists(tmpName) || 393 mVirtualBox->FindHardDisk(Bstr(tmpName) , &harddisk) != VBOX_E_OBJECT_NOT_FOUND)393 mVirtualBox->FindHardDisk(Bstr(tmpName).raw(), &harddisk) != VBOX_E_OBJECT_NOT_FOUND) 394 394 { 395 395 RTStrFree(tmpName); … … 501 501 } 502 502 503 HRESULT Appliance::setUpProgressFS(ComObjPtr<Progress> &pProgress, const Bstr &bstrDescription)503 HRESULT Appliance::setUpProgressFS(ComObjPtr<Progress> &pProgress, const Utf8Str &strDescription) 504 504 { 505 505 HRESULT rc; … … 532 532 533 533 rc = pProgress->init(mVirtualBox, static_cast<IAppliance*>(this), 534 bstrDescription,534 strDescription, 535 535 TRUE /* aCancelable */, 536 536 cOperations, // ULONG cOperations, 537 537 ulTotalOperationsWeight, // ULONG ulTotalOperationsWeight, 538 bstrDescription, // CBSTR bstrFirstOperationDescription,538 strDescription, // CBSTR bstrFirstOperationDescription, 539 539 m->ulWeightPerOperation); // ULONG ulFirstOperationWeight, 540 540 return rc; 541 541 } 542 542 543 HRESULT Appliance::setUpProgressImportS3(ComObjPtr<Progress> &pProgress, const Bstr &bstrDescription)543 HRESULT Appliance::setUpProgressImportS3(ComObjPtr<Progress> &pProgress, const Utf8Str &strDescription) 544 544 { 545 545 HRESULT rc; … … 572 572 573 573 rc = pProgress->init(mVirtualBox, static_cast<IAppliance*>(this), 574 bstrDescription,574 strDescription, 575 575 TRUE /* aCancelable */, 576 576 cOperations, // ULONG cOperations, 577 577 ulTotalOperationsWeight, // ULONG ulTotalOperationsWeight, 578 Bstr(tr("Init")), // CBSTR bstrFirstOperationDescription,578 tr("Init"), // CBSTR bstrFirstOperationDescription, 579 579 ulInitWeight); // ULONG ulFirstOperationWeight, 580 580 return rc; 581 581 } 582 582 583 HRESULT Appliance::setUpProgressWriteS3(ComObjPtr<Progress> &pProgress, const Bstr &bstrDescription)583 HRESULT Appliance::setUpProgressWriteS3(ComObjPtr<Progress> &pProgress, const Utf8Str &strDescription) 584 584 { 585 585 HRESULT rc; … … 614 614 615 615 rc = pProgress->init(mVirtualBox, static_cast<IAppliance*>(this), 616 bstrDescription,616 strDescription, 617 617 TRUE /* aCancelable */, 618 618 cOperations, // ULONG cOperations, 619 619 ulTotalOperationsWeight, // ULONG ulTotalOperationsWeight, 620 bstrDescription, // CBSTR bstrFirstOperationDescription,620 strDescription, // CBSTR bstrFirstOperationDescription, 621 621 ulOVFCreationWeight); // ULONG ulFirstOperationWeight, 622 622 return rc; … … 837 837 task->locInfo = aLocInfo; 838 838 839 Bstr progressDesc = BstrFmt(tr("Import appliance '%s'"),840 aLocInfo.strPath.c_str());839 Utf8Str progressDesc = Utf8StrFmt(tr("Import appliance '%s'"), 840 aLocInfo.strPath.c_str()); 841 841 842 842 HRESULT rc = S_OK; … … 1569 1569 mhda.lDevice, 1570 1570 DeviceType_Floppy, 1571 Bstr(""));1571 NULL); 1572 1572 if (FAILED(rc)) throw rc; 1573 1573 … … 1618 1618 mhda.lDevice, 1619 1619 DeviceType_DVD, 1620 Bstr(""));1620 NULL); 1621 1621 if (FAILED(rc)) throw rc; 1622 1622 … … 1744 1744 rc = mVirtualBox->OpenHardDisk(Bstr(strSrcFilePath), 1745 1745 AccessMode_ReadOnly, 1746 false, Bstr(""), false, Bstr(""),1746 false, NULL, false, NULL, 1747 1747 srcHdVBox.asOutParam()); 1748 1748 if (FAILED(rc)) throw rc; … … 4281 4281 IN_BSTR aExtraConfigValue) 4282 4282 { 4283 CheckComArgNotNull(aVboxValue);4284 CheckComArgNotNull(aExtraConfigValue);4285 4286 4283 AutoCaller autoCaller(this); 4287 4284 if (FAILED(autoCaller.rc())) return autoCaller.rc();
Note:
See TracChangeset
for help on using the changeset viewer.