Changeset 53062 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 15, 2014 12:34:18 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp
r52978 r53062 933 933 break; 934 934 } 935 else if (a->argc == 4 || a->argc > 5) 936 { 937 errorSyntax(USAGE_CONTROLVM, "Wrong number of arguments"); 938 rc = E_FAIL; 939 break; 940 } 935 941 936 942 bool attach = !strcmp(a->argv[1], "usbattach"); 937 943 938 944 Bstr usbId = a->argv[2]; 945 Bstr captureFilename; 946 947 if (a->argc == 5) 948 { 949 if (!strcmp(a->argv[3], "--capturefile")) 950 captureFilename = a->argv[4]; 951 else 952 { 953 errorArgument("Invalid parameter '%s'", a->argv[3]); 954 rc = E_FAIL; 955 break; 956 } 957 } 939 958 940 959 Guid guid(usbId); … … 971 990 972 991 if (attach) 973 CHECK_ERROR_BREAK(console, AttachUSBDevice(usbId.raw() ));992 CHECK_ERROR_BREAK(console, AttachUSBDevice(usbId.raw(), captureFilename.raw())); 974 993 else 975 994 { -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r52312 r53062 372 372 " [--autostart-enabled on|off]\n" 373 373 " [--autostart-delay <seconds>]\n" 374 #if 0 /* Disabled until the feature is implemented. */374 #if 0 375 375 " [--autostop-type disabled|savestate|poweroff|\n" 376 376 " acpishutdown]\n" … … 468 468 " natpf<1-N> delete <rulename> |\n" 469 469 " guestmemoryballoon <balloonsize in MB> |\n" 470 " usbattach <uuid>|<address> |\n" 470 " usbattach <uuid>|<address>\n" 471 " [--capturefile <filename>] |\n" 471 472 " usbdetach <uuid>|<address> |\n" 472 473 " clipboard disabled|hosttoguest|guesttohost|\n" -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r53046 r53062 1640 1640 { 1641 1641 /* Try to attach corresponding device: */ 1642 console().AttachUSBDevice(target.id );1642 console().AttachUSBDevice(target.id, QString("")); 1643 1643 /* Check if console is OK: */ 1644 1644 if (!console().isOk())
Note:
See TracChangeset
for help on using the changeset viewer.