Changeset 34244 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Nov 22, 2010 2:31:02 PM (14 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r33839 r34244 431 431 #endif 432 432 { "dhcpserver", USAGE_DHCPSERVER, handleDHCPServer}, 433 { "vrde", USAGE_VRDE, handleVRDE},434 433 { "extpack", USAGE_EXTPACK, handleExtPack}, 435 434 { NULL, 0, NULL } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h
r33766 r34244 97 97 #define USAGE_SETHDPARENTUUID RT_BIT_64(53) 98 98 #define USAGE_PASSWORDHASH RT_BIT_64(54) 99 #define USAGE_VRDE RT_BIT_64(55) 100 #define USAGE_EXTPACK RT_BIT_64(56) 99 #define USAGE_EXTPACK RT_BIT_64(55) 101 100 #define USAGE_ALL (~(uint64_t)0) 102 101 /** @} */ … … 211 210 int handleSharedFolder(HandlerArg *a); 212 211 int handleVMStatistics(HandlerArg *a); 213 int handleVRDE(HandlerArg *a);214 212 int handleExtPack(HandlerArg *a); 215 213 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r34010 r34244 115 115 " hostcpuids|hddbackends|hdds|dvds|floppies|\n" 116 116 " usbhost|usbfilters|systemproperties|\n" 117 " vrdelibraries|extpacks\n"117 " extpacks\n" 118 118 "\n"); 119 119 } … … 306 306 RTStrmPrintf(pStrm, 307 307 " [--vrde on|off]\n" 308 " [--vrde librarydefault|<name>\n"308 " [--vrdeextpack default|<name>\n" 309 309 " [--vrdeproperty <name=[value]>]\n" 310 310 " [--vrdeauthtype null|external|guest]\n" … … 579 579 " vrdeauthlibrary default|<library> |\n" 580 580 " websrvauthlibrary default|null|<library> |\n" 581 " vrde librarynull|<library> |\n"581 " vrdeextpack null|<library> |\n" 582 582 " loghistorycount <value>\n" 583 583 "\n"); … … 724 724 "\n"); 725 725 } 726 if (u64Cmd & USAGE_VRDE)727 {728 RTStrmPrintf(pStrm,729 "VBoxManage vrde register <name>\n"730 "VBoxManage vrde unregister <name>\n"731 "\n");732 }733 726 if (u64Cmd & USAGE_EXTPACK) 734 727 { … … 736 729 "VBoxManage extpack install <tarball>\n" 737 730 "VBoxManage extpack uninstall [--force] <name>\n" 731 "VBoxManage extpack cleanup\n" 738 732 "\n"); 739 733 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r33915 r34244 214 214 ULONG uRevision; 215 215 CHECK_ERROR2_STMT(extPacks[i], COMGETTER(Revision)(&uRevision), hrc = hrcCheck; uRevision = 0); 216 Bstr bstrVrdeModule; 217 CHECK_ERROR2_STMT(extPacks[i], COMGETTER(VRDEModule)(bstrVrdeModule.asOutParam()),hrc=hrcCheck; bstrVrdeModule.setNull()); 216 218 BOOL fUsable; 217 219 CHECK_ERROR2_STMT(extPacks[i], COMGETTER(Usable)(&fUsable), hrc = hrcCheck; fUsable = FALSE); … … 226 228 "Revision: %u\n" 227 229 "Description: %lS\n" 230 "VRDE Module: %lS\n" 228 231 "Usable: %RTbool\n" 229 232 "Why unusable: %lS\n", … … 232 235 uRevision, 233 236 bstrDesc.raw(), 237 bstrVrdeModule.raw(), 234 238 fUsable != FALSE, 235 239 bstrWhy.raw()); 240 241 /* Query plugins and display them. */ 236 242 } 237 243 return hrc; … … 264 270 kListSystemProperties, 265 271 kListDhcpServers, 266 kListVrdeLibraries,267 272 kListExtPacks 268 273 }; … … 893 898 systemProperties->COMGETTER(WebServiceAuthLibrary)(str.asOutParam()); 894 899 RTPrintf("Webservice auth. library: %lS\n", str.raw()); 895 systemProperties->COMGETTER(DefaultVRDE Library)(str.asOutParam());896 RTPrintf("Remote desktop library: %lS\n", str.raw());900 systemProperties->COMGETTER(DefaultVRDEExtPack)(str.asOutParam()); 901 RTPrintf("Remote desktop ExtPack: %lS\n", str.raw()); 897 902 systemProperties->COMGETTER(LogHistoryCount)(&ulValue); 898 903 RTPrintf("Log history count: %u\n", ulValue); … … 926 931 RTPrintf("Enabled: %s\n", fEnabled ? "Yes" : "No"); 927 932 RTPrintf("\n"); 928 }929 break;930 }931 932 case kListVrdeLibraries:933 {934 SafeArray<BSTR> libs;935 CHECK_ERROR(rptrVirtualBox, VRDEListLibraries(ComSafeArrayAsOutParam(libs)));936 if (SUCCEEDED(rc))937 {938 for (size_t i = 0; i < libs.size(); ++i)939 {940 Bstr bstrName(libs[i]);941 RTPrintf("%lS\n", bstrName.raw());942 }943 933 } 944 934 break; … … 992 982 { "systemproperties", kListSystemProperties, RTGETOPT_REQ_NOTHING }, 993 983 { "dhcpservers", kListDhcpServers, RTGETOPT_REQ_NOTHING }, 994 { "vrdelibraries", kListVrdeLibraries, RTGETOPT_REQ_NOTHING },995 984 { "extpacks", kListExtPacks, RTGETOPT_REQ_NOTHING }, 996 985 }; … … 1035 1024 case kListSystemProperties: 1036 1025 case kListDhcpServers: 1037 case kListVrdeLibraries:1038 1026 case kListExtPacks: 1039 1027 enmOptCommand = (enum enmListType)ch; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r34014 r34244 606 606 CHECK_ERROR(systemProperties, COMSETTER(WebServiceAuthLibrary)(Bstr(a->argv[1]).raw())); 607 607 } 608 else if (!strcmp(a->argv[0], "vrde library"))608 else if (!strcmp(a->argv[0], "vrdeextpack")) 609 609 { 610 610 /* disable? */ 611 611 if (!strcmp(a->argv[1], "null")) 612 CHECK_ERROR(systemProperties, COMSETTER(DefaultVRDE Library)(NULL));613 else 614 CHECK_ERROR(systemProperties, COMSETTER(DefaultVRDE Library)(Bstr(a->argv[1]).raw()));612 CHECK_ERROR(systemProperties, COMSETTER(DefaultVRDEExtPack)(NULL)); 613 else 614 CHECK_ERROR(systemProperties, COMSETTER(DefaultVRDEExtPack)(Bstr(a->argv[1]).raw())); 615 615 } 616 616 else if (!strcmp(a->argv[0], "loghistorycount")) … … 888 888 } 889 889 890 int handleVRDE(HandlerArg *a)891 {892 HRESULT rc = S_OK;893 894 if (a->argc != 2)895 return errorSyntax(USAGE_VRDE, "Incorrect number of parameters");896 897 if (!strcmp(a->argv[0], "register"))898 {899 Bstr name = a->argv[1];900 CHECK_ERROR(a->virtualBox, VRDERegisterLibrary(name.raw()));901 }902 else if (!strcmp(a->argv[0], "unregister"))903 {904 Bstr name = a->argv[1];905 CHECK_ERROR(a->virtualBox, VRDEUnregisterLibrary(name.raw()));906 }907 else908 return errorSyntax(USAGE_VRDE, "Invalid parameter");909 910 return SUCCEEDED(rc) ? 0 : 1;911 }912 913 890 int handleExtPack(HandlerArg *a) 914 891 { … … 976 953 RTPrintf("Successfully uninstalled \"%s\".\n", pszName); 977 954 } 955 else if (!strcmp(a->argv[0], "cleanup")) 956 { 957 if (a->argc > 1) 958 return errorSyntax(USAGE_EXTPACK, "Too many parameters given to \"extpack cleanup\""); 959 960 CHECK_ERROR2_RET(ptrExtPackMgr, Cleanup(), RTEXITCODE_FAILURE); 961 RTPrintf("Successfully performed extension pack cleanup\n"); 962 } 978 963 else 979 964 return errorSyntax(USAGE_EXTPACK, "Unknown command \"%s\"", a->argv[0]); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r33600 r34244 146 146 MODIFYVM_VRDEVIDEOCHANNEL, 147 147 MODIFYVM_VRDEVIDEOCHANNELQUALITY, 148 MODIFYVM_VRDE LIBRARY,148 MODIFYVM_VRDE_EXTPACK, 149 149 MODIFYVM_VRDE, 150 150 MODIFYVM_RTCUSEUTC, … … 269 269 { "--vrdevideochannel", MODIFYVM_VRDEVIDEOCHANNEL, RTGETOPT_REQ_BOOL_ONOFF }, 270 270 { "--vrdevideochannelquality", MODIFYVM_VRDEVIDEOCHANNELQUALITY, RTGETOPT_REQ_UINT32 }, 271 { "--vrde library", MODIFYVM_VRDELIBRARY,RTGETOPT_REQ_STRING },271 { "--vrdeextpack", MODIFYVM_VRDE_EXTPACK, RTGETOPT_REQ_STRING }, 272 272 { "--vrde", MODIFYVM_VRDE, RTGETOPT_REQ_BOOL_ONOFF }, 273 273 { "--usbehci", MODIFYVM_USBEHCI, RTGETOPT_REQ_BOOL_ONOFF }, … … 1821 1821 } 1822 1822 1823 case MODIFYVM_VRDE LIBRARY:1823 case MODIFYVM_VRDE_EXTPACK: 1824 1824 { 1825 1825 ComPtr<IVRDEServer> vrdeServer; … … 1832 1832 { 1833 1833 Bstr bstr(ValueUnion.psz); 1834 CHECK_ERROR(vrdeServer, COMSETTER(VRDE Library)(bstr.raw()));1834 CHECK_ERROR(vrdeServer, COMSETTER(VRDEExtPack)(bstr.raw())); 1835 1835 } 1836 1836 else 1837 CHECK_ERROR(vrdeServer, COMSETTER(VRDE Library)(NULL));1837 CHECK_ERROR(vrdeServer, COMSETTER(VRDEExtPack)(NULL)); 1838 1838 } 1839 1839 break;
Note:
See TracChangeset
for help on using the changeset viewer.