Changeset 41925 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jun 27, 2012 2:04:09 PM (13 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp
r41885 r41925 162 162 163 163 CHECK_ERROR_BREAK(sessionMachine, COMSETTER(CPUExecutionCap)(n)); 164 } 165 else if (!strcmp(a->argv[1], "clipboard")) 166 { 167 if (a->argc <= 1 + 1) 168 { 169 errorArgument("Missing argument to '%s'. Expected clipboard mode.", a->argv[1]); 170 rc = E_FAIL; 171 break; 172 } 173 174 ClipboardMode_T mode; 175 if (!strcmp(a->argv[2], "disabled")) 176 mode = ClipboardMode_Disabled; 177 else if (!strcmp(a->argv[2], "hosttoguest")) 178 mode = ClipboardMode_HostToGuest; 179 else if (!strcmp(a->argv[2], "guesttohost")) 180 mode = ClipboardMode_GuestToHost; 181 else if (!strcmp(a->argv[2], "bidirectional")) 182 mode = ClipboardMode_Bidirectional; 183 else 184 { 185 errorArgument("Invalid '%s' argument '%s'.", a->argv[1], a->argv[2]); 186 rc = E_FAIL; 187 } 188 if (SUCCEEDED(rc)) 189 { 190 CHECK_ERROR_BREAK(sessionMachine, COMSETTER(ClipboardMode)(mode)); 191 } 164 192 } 165 193 else if (!strcmp(a->argv[1], "poweroff")) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r41915 r41925 420 420 " gueststatisticsinterval <seconds>]\n" 421 421 " usbattach <uuid>|<address> |\n" 422 " usbdetach <uuid>|<address> |\n" );423 RTStrmPrintf(pStrm,424 " vrde on|off |\n");425 RTStrmPrintf(pStrm,422 " usbdetach <uuid>|<address> |\n" 423 " clipboard disabled|hosttoguest|guesttohost|\n" 424 " bidirectional]\n" 425 " vrde on|off |\n" 426 426 " vrdeport <port> |\n" 427 427 " vrdeproperty <name=[value]> |\n" 428 " vrdevideochannelquality <percent>\n"); 429 RTStrmPrintf(pStrm, 428 " vrdevideochannelquality <percent>\n" 430 429 " setvideomodehint <xres> <yres> <bpp> [display] |\n" 431 430 " screenshotpng <file> [display] |\n" -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r41916 r41925 1954 1954 case MODIFYVM_CLIPBOARD: 1955 1955 { 1956 ClipboardMode_T mode; 1956 1957 if (!strcmp(ValueUnion.psz, "disabled")) 1957 { 1958 CHECK_ERROR(machine, COMSETTER(ClipboardMode)(ClipboardMode_Disabled)); 1959 } 1958 mode = ClipboardMode_Disabled; 1960 1959 else if (!strcmp(ValueUnion.psz, "hosttoguest")) 1961 { 1962 CHECK_ERROR(machine, COMSETTER(ClipboardMode)(ClipboardMode_HostToGuest)); 1963 } 1960 mode = ClipboardMode_HostToGuest; 1964 1961 else if (!strcmp(ValueUnion.psz, "guesttohost")) 1965 { 1966 CHECK_ERROR(machine, COMSETTER(ClipboardMode)(ClipboardMode_GuestToHost)); 1967 } 1962 mode = ClipboardMode_GuestToHost; 1968 1963 else if (!strcmp(ValueUnion.psz, "bidirectional")) 1969 { 1970 CHECK_ERROR(machine, COMSETTER(ClipboardMode)(ClipboardMode_Bidirectional)); 1971 } 1964 mode = ClipboardMode_Bidirectional; 1972 1965 else 1973 1966 { 1974 1967 errorArgument("Invalid --clipboard argument '%s'", ValueUnion.psz); 1975 1968 rc = E_FAIL; 1969 } 1970 if (SUCCEEDED(rc)) 1971 { 1972 CHECK_ERROR(machine, COMSETTER(ClipboardMode)(mode)); 1976 1973 } 1977 1974 break;
Note:
See TracChangeset
for help on using the changeset viewer.