Changeset 26587 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Feb 16, 2010 4:57:09 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDHCPServer.cpp
r26553 r26587 230 230 231 231 ComPtr<IHostNetworkInterface> hif; 232 CHECK_ERROR(host, FindHostNetworkInterfaceByName(Bstr(pIfName) .mutableRaw(), hif.asOutParam()));232 CHECK_ERROR(host, FindHostNetworkInterfaceByName(Bstr(pIfName), hif.asOutParam())); 233 233 if(FAILED(rc)) 234 234 return errorArgument("could not find interface '%s'", pIfName); … … 244 244 245 245 ComPtr<IDHCPServer> svr; 246 rc = a->virtualBox->FindDHCPServerByNetworkName(NetName .mutableRaw(), svr.asOutParam());246 rc = a->virtualBox->FindDHCPServerByNetworkName(NetName, svr.asOutParam()); 247 247 if(enmCode == OP_ADD) 248 248 { … … 250 250 return errorArgument("dhcp server already exists"); 251 251 252 CHECK_ERROR(a->virtualBox, CreateDHCPServer(NetName .mutableRaw(), svr.asOutParam()));252 CHECK_ERROR(a->virtualBox, CreateDHCPServer(NetName, svr.asOutParam())); 253 253 if(FAILED(rc)) 254 254 return errorArgument("failed to create server"); … … 263 263 if (pIp || pNetmask || pLowerIp || pUpperIp) 264 264 { 265 CHECK_ERROR(svr, SetConfiguration (Bstr(pIp).mutableRaw(), Bstr(pNetmask).mutableRaw(), Bstr(pLowerIp).mutableRaw(), Bstr(pUpperIp).mutableRaw()));265 CHECK_ERROR(svr, SetConfiguration(Bstr(pIp), Bstr(pNetmask), Bstr(pLowerIp), Bstr(pUpperIp))); 266 266 if(FAILED(rc)) 267 267 return errorArgument("failed to set configuration"); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r26553 r26587 255 255 256 256 /* check the outcome */ 257 if ( !filename257 if ( filename.isEmpty() 258 258 || sizeMB == 0) 259 259 return errorSyntax(USAGE_CREATEHD, "Parameters --filename and --size are required"); … … 281 281 bool doClose = false; 282 282 283 if (!comment.is Null())283 if (!comment.isEmpty()) 284 284 { 285 285 CHECK_ERROR(hardDisk,COMSETTER(Description)(comment)); … … 1012 1012 1013 1013 /* check for required options */ 1014 if ( !server || !target)1014 if (server.isEmpty() || target.isEmpty()) 1015 1015 return errorSyntax(USAGE_ADDISCSIDISK, "Parameters --server and --target are required"); 1016 1016 … … 1038 1038 if (FAILED(rc)) break; 1039 1039 1040 if (!port.is Null())1040 if (!port.isEmpty()) 1041 1041 server = BstrFmt ("%ls:%ls", server.raw(), port.raw()); 1042 1042 … … 1047 1047 server.detachTo (values.appendedRaw()); 1048 1048 Bstr ("TargetName").detachTo (names.appendedRaw()); 1049 target.detachTo 1050 1051 if (!lun.is Null())1049 target.detachTo(values.appendedRaw()); 1050 1051 if (!lun.isEmpty()) 1052 1052 { 1053 1053 Bstr ("LUN").detachTo (names.appendedRaw()); 1054 1054 lun.detachTo (values.appendedRaw()); 1055 1055 } 1056 if (!username.is Null())1056 if (!username.isEmpty()) 1057 1057 { 1058 1058 Bstr ("InitiatorUsername").detachTo (names.appendedRaw()); 1059 1059 username.detachTo (values.appendedRaw()); 1060 1060 } 1061 if (!password.is Null())1061 if (!password.isEmpty()) 1062 1062 { 1063 1063 Bstr ("InitiatorSecret").detachTo (names.appendedRaw()); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp
r24024 r26587 248 248 RTPrintf("No value set!\n"); 249 249 if (value) 250 { 250 251 RTPrintf("Value: %lS\n", value.raw()); 251 if (value && verbose) 252 { 253 RTPrintf("Timestamp: %lld\n", u64Timestamp); 254 RTPrintf("Flags: %lS\n", flags.raw()); 252 if (verbose) 253 { 254 RTPrintf("Timestamp: %lld\n", u64Timestamp); 255 RTPrintf("Flags: %lS\n", flags.raw()); 256 } 255 257 } 256 258 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp
r26553 r26587 364 364 && !cmd.mMachine) 365 365 || ( cmd.mGlobal 366 && cmd.mFilter.mRemote)366 && !cmd.mFilter.mRemote.isEmpty()) 367 367 ) 368 368 { … … 441 441 if (!f.mActive.isNull()) 442 442 CHECK_ERROR_BREAK (flt, COMSETTER(Active) (f.mActive)); 443 if (!f.mVendorId.is Null())444 CHECK_ERROR_BREAK (flt, COMSETTER(VendorId) (f.mVendorId.setNullIfEmpty()));445 if (!f.mProductId.is Null())446 CHECK_ERROR_BREAK (flt, COMSETTER(ProductId) (f.mProductId .setNullIfEmpty()));447 if (!f.mRevision.is Null())448 CHECK_ERROR_BREAK (flt, COMSETTER(Revision) (f.mRevision .setNullIfEmpty()));449 if (!f.mManufacturer.is Null())450 CHECK_ERROR_BREAK (flt, COMSETTER(Manufacturer) (f.mManufacturer .setNullIfEmpty()));451 if (!f.mSerialNumber.is Null())452 CHECK_ERROR_BREAK (flt, COMSETTER(SerialNumber) (f.mSerialNumber .setNullIfEmpty()));443 if (!f.mVendorId.isEmpty()) 444 CHECK_ERROR_BREAK (flt, COMSETTER(VendorId)(f.mVendorId)); 445 if (!f.mProductId.isEmpty()) 446 CHECK_ERROR_BREAK (flt, COMSETTER(ProductId) (f.mProductId)); 447 if (!f.mRevision.isEmpty()) 448 CHECK_ERROR_BREAK (flt, COMSETTER(Revision) (f.mRevision)); 449 if (!f.mManufacturer.isEmpty()) 450 CHECK_ERROR_BREAK (flt, COMSETTER(Manufacturer) (f.mManufacturer)); 451 if (!f.mSerialNumber.isEmpty()) 452 CHECK_ERROR_BREAK (flt, COMSETTER(SerialNumber) (f.mSerialNumber)); 453 453 if (!f.mMaskedInterfaces.isNull()) 454 454 CHECK_ERROR_BREAK (flt, COMSETTER(MaskedInterfaces) (f.mMaskedInterfaces)); … … 466 466 if (!f.mActive.isNull()) 467 467 CHECK_ERROR_BREAK (flt, COMSETTER(Active) (f.mActive)); 468 if (!f.mVendorId.is Null())469 CHECK_ERROR_BREAK (flt, COMSETTER(VendorId) (f.mVendorId .setNullIfEmpty()));470 if (!f.mProductId.is Null())471 CHECK_ERROR_BREAK (flt, COMSETTER(ProductId) (f.mProductId .setNullIfEmpty()));472 if (!f.mRevision.is Null())473 CHECK_ERROR_BREAK (flt, COMSETTER(Revision) (f.mRevision .setNullIfEmpty()));474 if (!f.mManufacturer.is Null())475 CHECK_ERROR_BREAK (flt, COMSETTER(Manufacturer) (f.mManufacturer .setNullIfEmpty()));476 if (!f.mRemote.is Null())477 CHECK_ERROR_BREAK (flt, COMSETTER(Remote) (f.mRemote .setNullIfEmpty()));478 if (!f.mSerialNumber.is Null())479 CHECK_ERROR_BREAK (flt, COMSETTER(SerialNumber) (f.mSerialNumber .setNullIfEmpty()));468 if (!f.mVendorId.isEmpty()) 469 CHECK_ERROR_BREAK (flt, COMSETTER(VendorId) (f.mVendorId)); 470 if (!f.mProductId.isEmpty()) 471 CHECK_ERROR_BREAK (flt, COMSETTER(ProductId) (f.mProductId)); 472 if (!f.mRevision.isEmpty()) 473 CHECK_ERROR_BREAK (flt, COMSETTER(Revision) (f.mRevision)); 474 if (!f.mManufacturer.isEmpty()) 475 CHECK_ERROR_BREAK (flt, COMSETTER(Manufacturer) (f.mManufacturer)); 476 if (!f.mRemote.isEmpty()) 477 CHECK_ERROR_BREAK (flt, COMSETTER(Remote) (f.mRemote)); 478 if (!f.mSerialNumber.isEmpty()) 479 CHECK_ERROR_BREAK (flt, COMSETTER(SerialNumber) (f.mSerialNumber)); 480 480 if (!f.mMaskedInterfaces.isNull()) 481 481 CHECK_ERROR_BREAK (flt, COMSETTER(MaskedInterfaces) (f.mMaskedInterfaces)); … … 494 494 ComPtr <IHostUSBDeviceFilter> flt = coll[cmd.mIndex]; 495 495 496 if (!f.mName.is Null())497 CHECK_ERROR_BREAK (flt, COMSETTER(Name) (f.mName .setNullIfEmpty()));496 if (!f.mName.isEmpty()) 497 CHECK_ERROR_BREAK (flt, COMSETTER(Name) (f.mName)); 498 498 if (!f.mActive.isNull()) 499 499 CHECK_ERROR_BREAK (flt, COMSETTER(Active) (f.mActive)); 500 if (!f.mVendorId.is Null())501 CHECK_ERROR_BREAK (flt, COMSETTER(VendorId) (f.mVendorId .setNullIfEmpty()));502 if (!f.mProductId.is Null())503 CHECK_ERROR_BREAK (flt, COMSETTER(ProductId) (f.mProductId .setNullIfEmpty()));504 if (!f.mRevision.is Null())505 CHECK_ERROR_BREAK (flt, COMSETTER(Revision) (f.mRevision .setNullIfEmpty()));506 if (!f.mManufacturer.is Null())507 CHECK_ERROR_BREAK (flt, COMSETTER(Manufacturer) (f.mManufacturer .setNullIfEmpty()));508 if (!f.mSerialNumber.is Null())509 CHECK_ERROR_BREAK (flt, COMSETTER(SerialNumber) (f.mSerialNumber .setNullIfEmpty()));500 if (!f.mVendorId.isEmpty()) 501 CHECK_ERROR_BREAK (flt, COMSETTER(VendorId) (f.mVendorId)); 502 if (!f.mProductId.isEmpty()) 503 CHECK_ERROR_BREAK (flt, COMSETTER(ProductId) (f.mProductId)); 504 if (!f.mRevision.isEmpty()) 505 CHECK_ERROR_BREAK (flt, COMSETTER(Revision) (f.mRevision)); 506 if (!f.mManufacturer.isEmpty()) 507 CHECK_ERROR_BREAK (flt, COMSETTER(Manufacturer) (f.mManufacturer)); 508 if (!f.mSerialNumber.isEmpty()) 509 CHECK_ERROR_BREAK (flt, COMSETTER(SerialNumber) (f.mSerialNumber)); 510 510 if (!f.mMaskedInterfaces.isNull()) 511 511 CHECK_ERROR_BREAK (flt, COMSETTER(MaskedInterfaces) (f.mMaskedInterfaces)); … … 521 521 ComPtr <IUSBDeviceFilter> flt = coll[cmd.mIndex]; 522 522 523 if (!f.mName.is Null())524 CHECK_ERROR_BREAK (flt, COMSETTER(Name) (f.mName .setNullIfEmpty()));523 if (!f.mName.isEmpty()) 524 CHECK_ERROR_BREAK (flt, COMSETTER(Name) (f.mName)); 525 525 if (!f.mActive.isNull()) 526 526 CHECK_ERROR_BREAK (flt, COMSETTER(Active) (f.mActive)); 527 if (!f.mVendorId.is Null())528 CHECK_ERROR_BREAK (flt, COMSETTER(VendorId) (f.mVendorId .setNullIfEmpty()));529 if (!f.mProductId.is Null())530 CHECK_ERROR_BREAK (flt, COMSETTER(ProductId) (f.mProductId .setNullIfEmpty()));531 if (!f.mRevision.is Null())532 CHECK_ERROR_BREAK (flt, COMSETTER(Revision) (f.mRevision .setNullIfEmpty()));533 if (!f.mManufacturer.is Null())534 CHECK_ERROR_BREAK (flt, COMSETTER(Manufacturer) (f.mManufacturer .setNullIfEmpty()));535 if (!f.mRemote.is Null())536 CHECK_ERROR_BREAK (flt, COMSETTER(Remote) (f.mRemote .setNullIfEmpty()));537 if (!f.mSerialNumber.is Null())538 CHECK_ERROR_BREAK (flt, COMSETTER(SerialNumber) (f.mSerialNumber .setNullIfEmpty()));527 if (!f.mVendorId.isEmpty()) 528 CHECK_ERROR_BREAK (flt, COMSETTER(VendorId) (f.mVendorId)); 529 if (!f.mProductId.isEmpty()) 530 CHECK_ERROR_BREAK (flt, COMSETTER(ProductId) (f.mProductId)); 531 if (!f.mRevision.isEmpty()) 532 CHECK_ERROR_BREAK (flt, COMSETTER(Revision) (f.mRevision)); 533 if (!f.mManufacturer.isEmpty()) 534 CHECK_ERROR_BREAK (flt, COMSETTER(Manufacturer) (f.mManufacturer)); 535 if (!f.mRemote.isEmpty()) 536 CHECK_ERROR_BREAK (flt, COMSETTER(Remote) (f.mRemote)); 537 if (!f.mSerialNumber.isEmpty()) 538 CHECK_ERROR_BREAK (flt, COMSETTER(SerialNumber) (f.mSerialNumber)); 539 539 if (!f.mMaskedInterfaces.isNull()) 540 540 CHECK_ERROR_BREAK (flt, COMSETTER(MaskedInterfaces) (f.mMaskedInterfaces));
Note:
See TracChangeset
for help on using the changeset viewer.