- Timestamp:
- Oct 24, 2010 3:57:55 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 51 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/en_US/user_AdvancedTopics.xml
r33185 r33386 624 624 authentication method is set to "external" for a 625 625 particular VM, VirtualBox calls the library that was specified with 626 <computeroutput>VBoxManage setproperty vrd pauthlibrary</computeroutput>.626 <computeroutput>VBoxManage setproperty vrdeauthlibrary</computeroutput>. 627 627 This library will be loaded by the VM process on demand, i.e. when the 628 628 first RDP connection is made by an external client.</para> -
trunk/doc/manual/en_US/user_Frontends.xml
r33228 r33386 333 333 334 334 <para>For this, use <computeroutput>VBoxManage modifyvm</computeroutput> 335 command with the <computeroutput>--vrd pauthtype</computeroutput> option;335 command with the <computeroutput>--vrdeauthtype</computeroutput> option; 336 336 see <xref linkend="vboxmanage-modifyvm" /> for a general introduction. 337 337 Three methods of authentication are available:<itemizedlist> … … 386 386 on a running and supported guest (see below). In order to enable 387 387 VBoxAuthSimple, issue 388 <computeroutput>VBoxManage setproperty vrd pauthlibrary "VBoxAuthSimple"</computeroutput>.388 <computeroutput>VBoxManage setproperty vrdeauthlibrary "VBoxAuthSimple"</computeroutput>. 389 389 To enable the library for a VM, switch authentication to external using 390 390 <computeroutput>VBoxManage modifyvm "VM name" --vrdpauthtype external</computeroutput>. -
trunk/doc/manual/en_US/user_VBoxManage.xml
r33185 r33386 2002 2002 2003 2003 <glossentry> 2004 <glossterm>vrd pauthlibrary</glossterm>2005 2006 <glossdef> 2007 <para>This specifies which library to use when "external" VRDP2004 <glossterm>vrdeauthlibrary</glossterm> 2005 2006 <glossdef> 2007 <para>This specifies which library to use when "external" 2008 2008 authentication has been selected for a particular virtual machine; 2009 2009 see <xref linkend="vbox-auth" /> for details.</para> … … 2019 2019 please refer to the separate VirtualBox SDK reference (see <xref 2020 2020 linkend="VirtualBoxAPI" />).</para> 2021 </glossdef> 2022 </glossentry> 2023 2024 <glossentry> 2025 <glossterm>vrdelibrary</glossterm> 2026 2027 <glossdef> 2028 <para>This specifies which library implements the VirtualBox Remote Desktop 2029 Extension.</para> 2021 2030 </glossdef> 2022 2031 </glossentry> -
trunk/include/VBox/settings.h
r32885 r33386 222 222 com::Utf8Str strDefaultHardDiskFolder; 223 223 com::Utf8Str strDefaultHardDiskFormat; 224 com::Utf8Str str RemoteDisplayAuthLibrary;224 com::Utf8Str strVRDEAuthLibrary; 225 225 com::Utf8Str strWebServiceAuthLibrary; 226 com::Utf8Str strDefaultVRDELibrary; 226 227 uint32_t ulLogHistoryCount; 227 228 }; … … 274 275 * your settings might never get saved. 275 276 */ 276 struct VRD PSettings277 { 278 VRD PSettings()277 struct VRDESettings 278 { 279 VRDESettings() 279 280 : fEnabled(true), 280 authType( VRDPAuthType_Null),281 authType(AuthType_Null), 281 282 ulAuthTimeout(5000), 282 283 fAllowMultiConnection(false), … … 286 287 {} 287 288 288 bool operator==(const VRD PSettings& v) const;289 bool operator==(const VRDESettings& v) const; 289 290 290 291 bool fEnabled; 291 292 com::Utf8Str strPort; 292 293 com::Utf8Str strNetAddress; 293 VRDPAuthType_TauthType;294 AuthType_T authType; 294 295 uint32_t ulAuthTimeout; 295 296 bool fAllowMultiConnection, … … 712 713 ChipsetType_T chipsetType; // requires settings version 1.11 (VirtualBox 4.0) 713 714 714 VRD PSettings vrdpSettings;715 VRDESettings vrdeSettings; 715 716 716 717 BIOSSettings biosSettings; -
trunk/include/iprt/err.h
r32707 r33386 465 465 /** Not supported. */ 466 466 #define VERR_NOT_SUPPORTED (-37) 467 /** Not supported. */ 468 #define VINF_NOT_SUPPORTED 37 467 469 /** Access denied. */ 468 470 #define VERR_ACCESS_DENIED (-38) -
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r33313 r33386 180 180 mfNoLoggedInUsers = true; 181 181 182 /* If there is a VRDPconnection, drop it. */183 ComPtr<I RemoteDisplayInfo> info;184 hrc = gConsole->COMGETTER( RemoteDisplayInfo)(info.asOutParam());182 /* If there is a connection, drop it. */ 183 ComPtr<IVRDEServerInfo> info; 184 hrc = gConsole->COMGETTER(VRDEServerInfo)(info.asOutParam()); 185 185 if (SUCCEEDED(hrc) && info) 186 186 { … … 189 189 if (SUCCEEDED(hrc) && cClients > 0) 190 190 { 191 ComPtr <IVRD PServer> vrdpServer;192 hrc = machine->COMGETTER(VRD PServer)(vrdpServer.asOutParam());193 if (SUCCEEDED(hrc) && vrd pServer)191 ComPtr <IVRDEServer> vrdeServer; 192 hrc = machine->COMGETTER(VRDEServer)(vrdeServer.asOutParam()); 193 if (SUCCEEDED(hrc) && vrdeServer) 194 194 { 195 vrd pServer->COMSETTER(Enabled)(FALSE);196 vrd pServer->COMSETTER(Enabled)(TRUE);195 vrdeServer->COMSETTER(Enabled)(FALSE); 196 vrdeServer->COMSETTER(Enabled)(TRUE); 197 197 } 198 198 } … … 236 236 refcnt = 0; 237 237 #endif 238 mLastVRD PPort = -1;238 mLastVRDEPort = -1; 239 239 } 240 240 … … 310 310 break; 311 311 } 312 case VBoxEventType_On RemoteDisplayInfoChanged:313 { 314 ComPtr<I RemoteDisplayInfoChangedEvent> rdicev = aEvent;312 case VBoxEventType_OnVRDEServerInfoChanged: 313 { 314 ComPtr<IVRDEServerInfoChangedEvent> rdicev = aEvent; 315 315 Assert(rdicev); 316 316 … … 318 318 if (gConsole) 319 319 { 320 ComPtr<I RemoteDisplayInfo> info;321 gConsole->COMGETTER( RemoteDisplayInfo)(info.asOutParam());320 ComPtr<IVRDEServerInfo> info; 321 gConsole->COMGETTER(VRDEServerInfo)(info.asOutParam()); 322 322 if (info) 323 323 { 324 324 LONG port; 325 325 info->COMGETTER(Port)(&port); 326 if (port != mLastVRD PPort)326 if (port != mLastVRDEPort) 327 327 { 328 328 if (port == -1) 329 RTPrintf("VRD Pserver is inactive.\n");329 RTPrintf("VRDE server is inactive.\n"); 330 330 else if (port == 0) 331 RTPrintf("VRD Pserver failed to start.\n");331 RTPrintf("VRDE server failed to start.\n"); 332 332 else 333 RTPrintf(" Listening on port %d.\n", port);334 335 mLastVRD PPort = port;333 RTPrintf("VRDE server is listening on port %d.\n", port); 334 335 mLastVRDEPort = port; 336 336 } 337 337 } … … 365 365 long refcnt; 366 366 #endif 367 long mLastVRD PPort;367 long mLastVRDEPort; 368 368 }; 369 369 … … 446 446 #endif 447 447 #ifdef VBOX_WITH_VRDP 448 " -v, -vrd p, --vrdp on|off|config Enable (default) or disable the VRDP\n"448 " -v, -vrde, --vrde on|off|config Enable (default) or disable the VRDE\n" 449 449 " server or don't change the setting\n" 450 " -p, -vrdpport, --vrdpport <ports> Comma-separated list of ports the VRDP\n" 451 " server can bind to. Use a dash between\n" 450 " -e, -vrdeproperty, --vrdeproperty <name=[value]> Set a VRDE property:\n" 451 " \"TCP/Ports\" - comma-separated list of ports\n" 452 " the VRDE server can bind to. Use a dash between\n" 452 453 " two port numbers to specify a range\n" 453 " -a, -vrdpaddress, --vrdpaddress <ip> Interface IP the VRDP will bind to \n" 454 " \"TCP/Address\" - interface IP the VRDE server\n" 455 " will bind to\n" 454 456 #endif 455 457 #ifdef VBOX_FFMPEG … … 517 519 { 518 520 #ifdef VBOX_WITH_VRDP 519 const char *vrdpPort = NULL; 520 const char *vrdpAddress = NULL; 521 const char *vrdpEnabled = NULL; 521 const char *vrdePort = NULL; 522 const char *vrdeAddress = NULL; 523 const char *vrdeEnabled = NULL; 524 int cVRDEProperties = 0; 525 const char *aVRDEProperties[16]; 522 526 #endif 523 527 #ifdef VBOX_WITH_VNC … … 572 576 { "--startvm", 's', RTGETOPT_REQ_STRING }, 573 577 #ifdef VBOX_WITH_VRDP 574 { "-vrdpport", 'p', RTGETOPT_REQ_STRING }, 575 { "--vrdpport", 'p', RTGETOPT_REQ_STRING }, 576 { "-vrdpaddress", 'a', RTGETOPT_REQ_STRING }, 577 { "--vrdpaddress", 'a', RTGETOPT_REQ_STRING }, 578 { "-vrdp", 'v', RTGETOPT_REQ_STRING }, 579 { "--vrdp", 'v', RTGETOPT_REQ_STRING }, 578 { "-vrdpport", 'p', RTGETOPT_REQ_STRING }, /* VRDE: deprecated. */ 579 { "--vrdpport", 'p', RTGETOPT_REQ_STRING }, /* VRDE: deprecated. */ 580 { "-vrdpaddress", 'a', RTGETOPT_REQ_STRING }, /* VRDE: deprecated. */ 581 { "--vrdpaddress", 'a', RTGETOPT_REQ_STRING }, /* VRDE: deprecated. */ 582 { "-vrdp", 'v', RTGETOPT_REQ_STRING }, /* VRDE: deprecated. */ 583 { "--vrdp", 'v', RTGETOPT_REQ_STRING }, /* VRDE: deprecated. */ 584 { "-vrde", 'v', RTGETOPT_REQ_STRING }, 585 { "--vrde", 'v', RTGETOPT_REQ_STRING }, 586 { "-vrdesetproperty", 'e', RTGETOPT_REQ_STRING }, 587 { "--vrdesetproperty", 'e', RTGETOPT_REQ_STRING }, 580 588 #endif /* VBOX_WITH_VRDP defined */ 581 589 #ifdef VBOX_WITH_VNC … … 628 636 #ifdef VBOX_WITH_VRDP 629 637 case 'p': 630 vrdpPort = ValueUnion.psz; 638 RTPrintf("Warning: '-p' or '-vrdpport' are deprecated. Use '-e \"TCP/Ports=%s\"'\n", ValueUnion.psz); 639 vrdePort = ValueUnion.psz; 631 640 break; 632 641 case 'a': 633 vrdpAddress = ValueUnion.psz; 642 RTPrintf("Warning: '-a' or '-vrdpaddress' are deprecated. Use '-e \"TCP/Address=%s\"'\n", ValueUnion.psz); 643 vrdeAddress = ValueUnion.psz; 634 644 break; 635 645 case 'v': 636 vrdpEnabled = ValueUnion.psz; 646 vrdeEnabled = ValueUnion.psz; 647 break; 648 case 'e': 649 if (cVRDEProperties < RT_ELEMENTS(aVRDEProperties)) 650 aVRDEProperties[cVRDEProperties++] = ValueUnion.psz; 651 else 652 RTPrintf("Warning: too many VRDE properties. Ignored: '%s'\n", ValueUnion.psz); 637 653 break; 638 654 #endif /* VBOX_WITH_VRDP defined */ … … 995 1011 eventTypes.push_back(VBoxEventType_OnMouseCapabilityChanged); 996 1012 eventTypes.push_back(VBoxEventType_OnStateChanged); 997 eventTypes.push_back(VBoxEventType_On RemoteDisplayInfoChanged);1013 eventTypes.push_back(VBoxEventType_OnVRDEServerInfoChanged); 998 1014 eventTypes.push_back(VBoxEventType_OnCanShowWindow); 999 1015 eventTypes.push_back(VBoxEventType_OnShowWindow); … … 1002 1018 1003 1019 #ifdef VBOX_WITH_VRDP 1004 /* default is to enable the RDP server (backward compatibility) */ 1005 BOOL fVRDPEnable = true; 1006 BOOL fVRDPEnabled; 1007 ComPtr <IVRDPServer> vrdpServer; 1008 CHECK_ERROR_BREAK(machine, COMGETTER(VRDPServer)(vrdpServer.asOutParam())); 1009 CHECK_ERROR_BREAK(vrdpServer, COMGETTER(Enabled)(&fVRDPEnabled)); 1010 1011 if (vrdpEnabled != NULL) 1012 { 1013 /* -vrdp on|off|config */ 1014 if (!strcmp(vrdpEnabled, "off") || !strcmp(vrdpEnabled, "disable")) 1015 fVRDPEnable = false; 1016 else if (!strcmp(vrdpEnabled, "config")) 1017 { 1018 if (!fVRDPEnabled) 1019 fVRDPEnable = false; 1020 } 1021 else if (strcmp(vrdpEnabled, "on") && strcmp(vrdpEnabled, "enable")) 1022 { 1023 RTPrintf("-vrdp requires an argument (on|off|config)\n"); 1024 break; 1025 } 1026 } 1027 1028 if (fVRDPEnable) 1029 { 1030 Log(("VBoxHeadless: Enabling VRDP server...\n")); 1031 1032 /* set VRDP port if requested by the user */ 1033 if (vrdpPort != NULL) 1034 { 1035 Bstr bstr = vrdpPort; 1036 CHECK_ERROR_BREAK(vrdpServer, COMSETTER(Ports)(bstr.raw())); 1037 } 1038 /* set VRDP address if requested by the user */ 1039 if (vrdpAddress != NULL) 1040 { 1041 CHECK_ERROR_BREAK(vrdpServer, COMSETTER(NetAddress)(Bstr(vrdpAddress).raw())); 1042 } 1043 /* enable VRDP server (only if currently disabled) */ 1044 if (!fVRDPEnabled) 1045 { 1046 CHECK_ERROR_BREAK(vrdpServer, COMSETTER(Enabled)(TRUE)); 1020 /* default is to enable the remote desktop server (backward compatibility) */ 1021 BOOL fVRDEEnable = true; 1022 BOOL fVRDEEnabled; 1023 ComPtr <IVRDEServer> vrdeServer; 1024 CHECK_ERROR_BREAK(machine, COMGETTER(VRDEServer)(vrdeServer.asOutParam())); 1025 CHECK_ERROR_BREAK(vrdeServer, COMGETTER(Enabled)(&fVRDEEnabled)); 1026 1027 if (vrdeEnabled != NULL) 1028 { 1029 /* -vrdeServer on|off|config */ 1030 if (!strcmp(vrdeEnabled, "off") || !strcmp(vrdeEnabled, "disable")) 1031 fVRDEEnable = false; 1032 else if (!strcmp(vrdeEnabled, "config")) 1033 { 1034 if (!fVRDEEnabled) 1035 fVRDEEnable = false; 1036 } 1037 else if (strcmp(vrdeEnabled, "on") && strcmp(vrdeEnabled, "enable")) 1038 { 1039 RTPrintf("-vrdeServer requires an argument (on|off|config)\n"); 1040 break; 1041 } 1042 } 1043 1044 if (fVRDEEnable) 1045 { 1046 Log(("VBoxHeadless: Enabling VRDE server...\n")); 1047 1048 /* set VRDE port if requested by the user */ 1049 if (vrdePort != NULL) 1050 { 1051 Bstr bstr = vrdePort; 1052 CHECK_ERROR_BREAK(vrdeServer, SetVRDEProperty(Bstr("TCP/Ports").raw(), bstr.raw())); 1053 } 1054 /* set VRDE address if requested by the user */ 1055 if (vrdeAddress != NULL) 1056 { 1057 CHECK_ERROR_BREAK(vrdeServer, SetVRDEProperty(Bstr("TCP/Address").raw(), Bstr(vrdeAddress).raw())); 1058 } 1059 1060 /* Set VRDE properties. */ 1061 if (cVRDEProperties > 0) 1062 { 1063 int i; 1064 for (i = 0; i < cVRDEProperties; i++) 1065 { 1066 /* Parse 'name=value' */ 1067 char *pszProperty = RTStrDup(aVRDEProperties[i]); 1068 if (pszProperty) 1069 { 1070 char *pDelimiter = strchr(pszProperty, '='); 1071 if (pDelimiter) 1072 { 1073 *pDelimiter = '\0'; 1074 1075 Bstr bstrName = pszProperty; 1076 Bstr bstrValue = &pDelimiter[1]; 1077 CHECK_ERROR_BREAK(vrdeServer, SetVRDEProperty(bstrName.raw(), bstrValue.raw())); 1078 } 1079 else 1080 { 1081 RTPrintf("Error: Invalid VRDE property '%s'\n", aVRDEProperties[i]); 1082 RTStrFree(pszProperty); 1083 rc = E_INVALIDARG; 1084 break; 1085 } 1086 RTStrFree(pszProperty); 1087 } 1088 else 1089 { 1090 RTPrintf("Error: Failed to allocate memory for VRDE property '%s'\n", aVRDEProperties[i]); 1091 rc = E_OUTOFMEMORY; 1092 break; 1093 } 1094 } 1095 if (FAILED(rc)) 1096 break; 1097 } 1098 1099 /* enable VRDE server (only if currently disabled) */ 1100 if (!fVRDEEnabled) 1101 { 1102 CHECK_ERROR_BREAK(vrdeServer, COMSETTER(Enabled)(TRUE)); 1047 1103 } 1048 1104 } 1049 1105 else 1050 1106 { 1051 /* disable VRD Pserver (only if currently enabled */1052 if (fVRD PEnabled)1053 { 1054 CHECK_ERROR_BREAK(vrd pServer, COMSETTER(Enabled)(FALSE));1107 /* disable VRDE server (only if currently enabled */ 1108 if (fVRDEEnabled) 1109 { 1110 CHECK_ERROR_BREAK(vrdeServer, COMSETTER(Enabled)(FALSE)); 1055 1111 } 1056 1112 } … … 1137 1193 #endif /* defined(VBOX_FFMPEG) */ 1138 1194 1139 /* we don't have to disable VRD Phere because we don't save the settings of the VM */1195 /* we don't have to disable VRDE here because we don't save the settings of the VM */ 1140 1196 } 1141 1197 while (0); -
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.h
r28800 r33386 1 1 /** @file 2 2 * 3 * VBox frontends: VRD P (headless RDPserver):3 * VBox frontends: VRDE (headless Remote Desktop server): 4 4 * Header file with registration call for ffmpeg framebuffer 5 5 */ 6 6 7 7 /* 8 * Copyright (C) 2006-20 07Oracle Corporation8 * Copyright (C) 2006-2010 Oracle Corporation 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 17 17 */ 18 18 19 #ifndef __H_VBOX VRDP20 #define __H_VBOX VRDP19 #ifndef __H_VBOXHEADLESS 20 #define __H_VBOXHEADLESS 21 21 22 22 #include <VBox/com/VirtualBox.h> … … 47 47 typedef FNREGISTERFFMPEGFB *PFNREGISTERFFMPEGFB; 48 48 49 #endif // __H_VBOX VRDP49 #endif // __H_VBOXHEADLESS -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp
r33294 r33386 489 489 #endif /* VBOX_DYNAMIC_NET_ATTACH */ 490 490 #ifdef VBOX_WITH_VRDP 491 else if (!strcmp(a->argv[1], "vrdp")) 492 { 491 else if ( !strcmp(a->argv[1], "vrde") 492 || !strcmp(a->argv[1], "vrdp")) 493 { 494 if (!strcmp(a->argv[1], "vrdp")) 495 RTStrmPrintf(g_pStdErr, "Warning: 'vrdp' is deprecated. Use 'vrde'.\n"); 496 493 497 if (a->argc <= 1 + 1) 494 498 { … … 497 501 break; 498 502 } 499 /* get the corresponding VRDP server */ 500 ComPtr<IVRDPServer> vrdpServer; 501 sessionMachine->COMGETTER(VRDPServer)(vrdpServer.asOutParam()); 502 ASSERT(vrdpServer); 503 if (vrdpServer) 503 ComPtr<IVRDEServer> vrdeServer; 504 sessionMachine->COMGETTER(VRDEServer)(vrdeServer.asOutParam()); 505 ASSERT(vrdeServer); 506 if (vrdeServer) 504 507 { 505 508 if (!strcmp(a->argv[2], "on")) 506 509 { 507 CHECK_ERROR_BREAK(vrd pServer, COMSETTER(Enabled)(TRUE));510 CHECK_ERROR_BREAK(vrdeServer, COMSETTER(Enabled)(TRUE)); 508 511 } 509 512 else if (!strcmp(a->argv[2], "off")) 510 513 { 511 CHECK_ERROR_BREAK(vrd pServer, COMSETTER(Enabled)(FALSE));512 } 513 else 514 { 515 errorArgument("Invalid vrdp server state '%s'", Utf8Str(a->argv[2]).c_str());514 CHECK_ERROR_BREAK(vrdeServer, COMSETTER(Enabled)(FALSE)); 515 } 516 else 517 { 518 errorArgument("Invalid remote desktop server state '%s'", Utf8Str(a->argv[2]).c_str()); 516 519 rc = E_FAIL; 517 520 break; … … 521 524 else if (!strcmp(a->argv[1], "vrdpport")) 522 525 { 526 RTStrmPrintf(g_pStdErr, "Warning: 'vrdpport' is deprecated. Use 'setvrdeproperty'.\n"); 527 523 528 if (a->argc <= 1 + 1) 524 529 { … … 527 532 break; 528 533 } 529 /* get the corresponding VRDP server */ 530 ComPtr<IVRDPServer> vrdpServer; 531 sessionMachine->COMGETTER(VRDPServer)(vrdpServer.asOutParam()); 532 ASSERT(vrdpServer); 533 if (vrdpServer) 534 { 535 Bstr vrdpports; 534 ComPtr<IVRDEServer> vrdeServer; 535 sessionMachine->COMGETTER(VRDEServer)(vrdeServer.asOutParam()); 536 ASSERT(vrdeServer); 537 if (vrdeServer) 538 { 539 Bstr ports; 536 540 537 541 if (!strcmp(a->argv[2], "default")) 538 vrdpports = "0"; 539 else 540 vrdpports = a->argv[2]; 541 542 CHECK_ERROR_BREAK(vrdpServer, COMSETTER(Ports)(vrdpports.raw())); 543 } 544 } 545 else if (!strcmp(a->argv[1], "vrdpvideochannelquality")) 546 { 542 ports = "0"; 543 else 544 ports = a->argv[2]; 545 546 CHECK_ERROR_BREAK(vrdeServer, SetVRDEProperty(Bstr("TCP/Ports").raw(), ports.raw())); 547 } 548 } 549 else if ( !strcmp(a->argv[1], "vrdevideochannelquality") 550 || !strcmp(a->argv[1], "vrdpvideochannelquality")) 551 { 552 if (!strcmp(a->argv[1], "vrdpvideochannelquality")) 553 RTStrmPrintf(g_pStdErr, "Warning: 'vrdpvideochannelquality' is deprecated. Use 'vrdevideochannelquality'.\n"); 554 547 555 if (a->argc <= 1 + 1) 548 556 { … … 551 559 break; 552 560 } 553 /* get the corresponding VRDP server */ 554 ComPtr<IVRDPServer> vrdpServer; 555 sessionMachine->COMGETTER(VRDPServer)(vrdpServer.asOutParam()); 556 ASSERT(vrdpServer); 557 if (vrdpServer) 558 { 559 unsigned n = parseNum(a->argv[2], 100, "VRDP video channel quality in percent"); 560 561 CHECK_ERROR(vrdpServer, COMSETTER(VideoChannelQuality)(n)); 561 ComPtr<IVRDEServer> vrdeServer; 562 sessionMachine->COMGETTER(VRDEServer)(vrdeServer.asOutParam()); 563 ASSERT(vrdeServer); 564 if (vrdeServer) 565 { 566 unsigned n = parseNum(a->argv[2], 100, "VRDE video redirection quality in percent"); 567 568 CHECK_ERROR(vrdeServer, COMSETTER(VideoChannelQuality)(n)); 569 } 570 } 571 else if (!strcmp(a->argv[1], "vrdesetproperty")) 572 { 573 if (a->argc <= 1 + 1) 574 { 575 errorArgument("Missing argument to '%s'", a->argv[1]); 576 rc = E_FAIL; 577 break; 578 } 579 ComPtr<IVRDEServer> vrdeServer; 580 sessionMachine->COMGETTER(VRDEServer)(vrdeServer.asOutParam()); 581 ASSERT(vrdeServer); 582 if (vrdeServer) 583 { 584 /* Parse 'name=value' */ 585 char *pszProperty = RTStrDup(a->argv[2]); 586 if (pszProperty) 587 { 588 char *pDelimiter = strchr(pszProperty, '='); 589 if (pDelimiter) 590 { 591 *pDelimiter = '\0'; 592 593 Bstr bstrName = pszProperty; 594 Bstr bstrValue = &pDelimiter[1]; 595 CHECK_ERROR(vrdeServer, SetVRDEProperty(bstrName.raw(), bstrValue.raw())); 596 } 597 else 598 { 599 errorArgument("Invalid --vrdesetproperty argument '%s'", a->argv[2]); 600 rc = E_FAIL; 601 break; 602 } 603 RTStrFree(pszProperty); 604 } 605 else 606 { 607 RTStrmPrintf(g_pStdErr, "Error: Failed to allocate memory for VRDE property '%s'\n", a->argv[2]); 608 rc = E_FAIL; 609 } 610 } 611 if (FAILED(rc)) 612 { 613 break; 562 614 } 563 615 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r33202 r33386 75 75 #endif 76 76 #ifdef VBOX_WITH_VRDP 77 bool fVRD P= true;77 bool fVRDE = true; 78 78 #else 79 bool fVRD P= false;79 bool fVRDE = false; 80 80 #endif 81 81 #ifdef VBOX_WITH_VBOXSDL … … 93 93 fFreeBSD = true; 94 94 fDarwin = true; 95 fVRD P= true;95 fVRDE = true; 96 96 fVBoxSDL = true; 97 97 u64Cmd = USAGE_ALL; … … 309 309 " [--clipboard disabled|hosttoguest|guesttohost|\n" 310 310 " bidirectional]\n"); 311 if (fVRD P)311 if (fVRDE) 312 312 { 313 313 RTStrmPrintf(pStrm, 314 " [--vrdp on|off]\n" 315 " [--vrdpport default|<ports>]\n" 316 " [--vrdpaddress <host>]\n" 317 " [--vrdpauthtype null|external|guest]\n" 318 " [--vrdpmulticon on|off]\n" 319 " [--vrdpreusecon on|off]\n" 320 " [--vrdpvideochannel on|off]\n" 321 " [--vrdpvideochannelquality <percent>]\n"); 314 " [--vrde on|off]\n" 315 " [--vrdesetproperty <name=[value]>]\n" 316 " [--vrdeauthtype null|external|guest]\n" 317 " [--vrdemulticon on|off]\n" 318 " [--vrdereusecon on|off]\n" 319 " [--vrdevideochannel on|off]\n" 320 " [--vrdevideochannelquality <percent>]\n"); 322 321 } 323 322 RTStrmPrintf(pStrm, … … 376 375 if (fVBoxSDL) 377 376 RTStrmPrintf(pStrm, "|sdl"); 378 if (fVRDP)379 RTStrmPrintf(pStrm, "|vrdp");380 377 RTStrmPrintf(pStrm, "|headless]\n"); 381 378 RTStrmPrintf(pStrm, … … 407 404 " usbattach <uuid>|<address> |\n" 408 405 " usbdetach <uuid>|<address> |\n"); 409 if (fVRD P)406 if (fVRDE) 410 407 { 411 408 RTStrmPrintf(pStrm, 412 " vrd pon|off |\n");409 " vrde on|off |\n"); 413 410 RTStrmPrintf(pStrm, 414 " vrd pport default|<ports> |\n"415 " vrd pvideochannelquality <percent>\n");411 " vrdesetproperty <name=[value]> |\n" 412 " vrdevideochannelquality <percent>\n"); 416 413 } 417 414 RTStrmPrintf(pStrm, … … 599 596 "VBoxManage setproperty hdfolder default|<folder> |\n" 600 597 " machinefolder default|<folder> |\n" 601 " vrd pauthlibrary default|<library> |\n"598 " vrdeauthlibrary default|<library> |\n" 602 599 " websrvauthlibrary default|null|<library> |\n" 600 " vrdelibrary null|<library> |\n" 603 601 " loghistorycount <value>\n" 604 602 "\n"); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r33300 r33386 1366 1366 1367 1367 /* 1368 * VRDP1368 * Remote Desktop 1369 1369 */ 1370 ComPtr<IVRD PServer> vrdpServer;1371 rc = machine->COMGETTER(VRD PServer)(vrdpServer.asOutParam());1372 if (SUCCEEDED(rc) && vrd pServer)1370 ComPtr<IVRDEServer> vrdeServer; 1371 rc = machine->COMGETTER(VRDEServer)(vrdeServer.asOutParam()); 1372 if (SUCCEEDED(rc) && vrdeServer) 1373 1373 { 1374 1374 BOOL fEnabled = false; 1375 vrd pServer->COMGETTER(Enabled)(&fEnabled);1375 vrdeServer->COMGETTER(Enabled)(&fEnabled); 1376 1376 if (fEnabled) 1377 1377 { 1378 LONG vrdpPort = -1;1378 LONG currentPort = -1; 1379 1379 Bstr ports; 1380 vrd pServer->COMGETTER(Ports)(ports.asOutParam());1380 vrdeServer->GetVRDEProperty(Bstr("TCP/Ports").raw(), ports.asOutParam()); 1381 1381 Bstr address; 1382 vrd pServer->COMGETTER(NetAddress)(address.asOutParam());1382 vrdeServer->GetVRDEProperty(Bstr("TCP/Address").raw(), address.asOutParam()); 1383 1383 BOOL fMultiCon; 1384 vrd pServer->COMGETTER(AllowMultiConnection)(&fMultiCon);1384 vrdeServer->COMGETTER(AllowMultiConnection)(&fMultiCon); 1385 1385 BOOL fReuseCon; 1386 vrd pServer->COMGETTER(ReuseSingleConnection)(&fReuseCon);1386 vrdeServer->COMGETTER(ReuseSingleConnection)(&fReuseCon); 1387 1387 BOOL fVideoChannel; 1388 vrd pServer->COMGETTER(VideoChannel)(&fVideoChannel);1388 vrdeServer->COMGETTER(VideoChannel)(&fVideoChannel); 1389 1389 ULONG ulVideoChannelQuality; 1390 vrd pServer->COMGETTER(VideoChannelQuality)(&ulVideoChannelQuality);1391 VRDPAuthType_T vrdpAuthType;1390 vrdeServer->COMGETTER(VideoChannelQuality)(&ulVideoChannelQuality); 1391 AuthType_T authType; 1392 1392 const char *strAuthType; 1393 vrd pServer->COMGETTER(AuthType)(&vrdpAuthType);1394 switch ( vrdpAuthType)1395 { 1396 case VRDPAuthType_Null:1393 vrdeServer->COMGETTER(AuthType)(&authType); 1394 switch (authType) 1395 { 1396 case AuthType_Null: 1397 1397 strAuthType = "null"; 1398 1398 break; 1399 case VRDPAuthType_External:1399 case AuthType_External: 1400 1400 strAuthType = "external"; 1401 1401 break; 1402 case VRDPAuthType_Guest:1402 case AuthType_Guest: 1403 1403 strAuthType = "guest"; 1404 1404 break; … … 1409 1409 if (console) 1410 1410 { 1411 ComPtr<I RemoteDisplayInfo> remoteDisplayInfo;1412 CHECK_ERROR_RET(console, COMGETTER( RemoteDisplayInfo)(remoteDisplayInfo.asOutParam()), rc);1413 rc = remoteDisplayInfo->COMGETTER(Port)(&vrdpPort);1411 ComPtr<IVRDEServerInfo> vrdeServerInfo; 1412 CHECK_ERROR_RET(console, COMGETTER(VRDEServerInfo)(vrdeServerInfo.asOutParam()), rc); 1413 rc = vrdeServerInfo->COMGETTER(Port)(¤tPort); 1414 1414 if (rc == E_ACCESSDENIED) 1415 1415 { 1416 vrdpPort = -1; /* VM not powered up */1416 currentPort = -1; /* VM not powered up */ 1417 1417 } 1418 1418 if (FAILED(rc)) 1419 1419 { 1420 com::ErrorInfo info( remoteDisplayInfo, COM_IIDOF(IRemoteDisplayInfo));1420 com::ErrorInfo info(vrdeServerInfo, COM_IIDOF(IVRDEServerInfo)); 1421 1421 GluePrintErrorInfo(info); 1422 1422 return rc; … … 1425 1425 if (details == VMINFO_MACHINEREADABLE) 1426 1426 { 1427 RTPrintf("vrd p=\"on\"\n");1428 RTPrintf("vrd pport=%d\n", vrdpPort);1429 RTPrintf("vrd pports=\"%lS\"\n", ports.raw());1430 RTPrintf("vrd paddress=\"%lS\"\n", address.raw());1431 RTPrintf("vrd pauthtype=\"%s\"\n", strAuthType);1432 RTPrintf("vrd pmulticon=\"%s\"\n", fMultiCon ? "on" : "off");1433 RTPrintf("vrd preusecon=\"%s\"\n", fReuseCon ? "on" : "off");1434 RTPrintf("vrd pvideochannel=\"%s\"\n", fVideoChannel ? "on" : "off");1427 RTPrintf("vrde=\"on\"\n"); 1428 RTPrintf("vrdeport=%d\n", currentPort); 1429 RTPrintf("vrdeproperty[TCP/Ports]=\"%lS\"\n", ports.raw()); 1430 RTPrintf("vrdeproperty[TCP/Address]=\"%lS\"\n", address.raw()); 1431 RTPrintf("vrdeauthtype=\"%s\"\n", strAuthType); 1432 RTPrintf("vrdemulticon=\"%s\"\n", fMultiCon ? "on" : "off"); 1433 RTPrintf("vrdereusecon=\"%s\"\n", fReuseCon ? "on" : "off"); 1434 RTPrintf("vrdevideochannel=\"%s\"\n", fVideoChannel ? "on" : "off"); 1435 1435 if (fVideoChannel) 1436 RTPrintf("vrd pvideochannelquality=\"%d\"\n", ulVideoChannelQuality);1436 RTPrintf("vrdevideochannelquality=\"%d\"\n", ulVideoChannelQuality); 1437 1437 } 1438 1438 else … … 1440 1440 if (address.isEmpty()) 1441 1441 address = "0.0.0.0"; 1442 RTPrintf("VRD P: enabled (Address %lS, Ports %lS, MultiConn: %s, ReuseSingleConn: %s, Authentication type: %s)\n", address.raw(), ports.raw(), fMultiCon ? "on" : "off", fReuseCon ? "on" : "off", strAuthType);1443 if (console && vrdpPort != -1 && vrdpPort != 0)1444 RTPrintf("VRD P port: %d\n", vrdpPort);1442 RTPrintf("VRDE: enabled (Address %lS, Ports %lS, MultiConn: %s, ReuseSingleConn: %s, Authentication type: %s)\n", address.raw(), ports.raw(), fMultiCon ? "on" : "off", fReuseCon ? "on" : "off", strAuthType); 1443 if (console && currentPort != -1 && currentPort != 0) 1444 RTPrintf("VRDE port: %d\n", currentPort); 1445 1445 if (fVideoChannel) 1446 1446 RTPrintf("Video redirection: enabled (Quality %d)\n", ulVideoChannelQuality); … … 1452 1452 { 1453 1453 if (details == VMINFO_MACHINEREADABLE) 1454 RTPrintf("vrd p=\"off\"\n");1454 RTPrintf("vrde=\"off\"\n"); 1455 1455 else 1456 RTPrintf("VRD P: disabled\n");1456 RTPrintf("VRDE: disabled\n"); 1457 1457 } 1458 1458 } … … 1827 1827 { 1828 1828 /* 1829 * Live VRD Pinfo.1829 * Live VRDE info. 1830 1830 */ 1831 ComPtr<I RemoteDisplayInfo> remoteDisplayInfo;1832 CHECK_ERROR_RET(console, COMGETTER( RemoteDisplayInfo)(remoteDisplayInfo.asOutParam()), rc);1831 ComPtr<IVRDEServerInfo> vrdeServerInfo; 1832 CHECK_ERROR_RET(console, COMGETTER(VRDEServerInfo)(vrdeServerInfo.asOutParam()), rc); 1833 1833 BOOL Active; 1834 1834 ULONG NumberOfClients; … … 1846 1846 ULONG EncryptionStyle; 1847 1847 1848 CHECK_ERROR_RET( remoteDisplayInfo, COMGETTER(Active)(&Active), rc);1849 CHECK_ERROR_RET( remoteDisplayInfo, COMGETTER(NumberOfClients)(&NumberOfClients), rc);1850 CHECK_ERROR_RET( remoteDisplayInfo, COMGETTER(BeginTime)(&BeginTime), rc);1851 CHECK_ERROR_RET( remoteDisplayInfo, COMGETTER(EndTime)(&EndTime), rc);1852 CHECK_ERROR_RET( remoteDisplayInfo, COMGETTER(BytesSent)(&BytesSent), rc);1853 CHECK_ERROR_RET( remoteDisplayInfo, COMGETTER(BytesSentTotal)(&BytesSentTotal), rc);1854 CHECK_ERROR_RET( remoteDisplayInfo, COMGETTER(BytesReceived)(&BytesReceived), rc);1855 CHECK_ERROR_RET( remoteDisplayInfo, COMGETTER(BytesReceivedTotal)(&BytesReceivedTotal), rc);1856 CHECK_ERROR_RET( remoteDisplayInfo, COMGETTER(User)(User.asOutParam()), rc);1857 CHECK_ERROR_RET( remoteDisplayInfo, COMGETTER(Domain)(Domain.asOutParam()), rc);1858 CHECK_ERROR_RET( remoteDisplayInfo, COMGETTER(ClientName)(ClientName.asOutParam()), rc);1859 CHECK_ERROR_RET( remoteDisplayInfo, COMGETTER(ClientIP)(ClientIP.asOutParam()), rc);1860 CHECK_ERROR_RET( remoteDisplayInfo, COMGETTER(ClientVersion)(&ClientVersion), rc);1861 CHECK_ERROR_RET( remoteDisplayInfo, COMGETTER(EncryptionStyle)(&EncryptionStyle), rc);1848 CHECK_ERROR_RET(vrdeServerInfo, COMGETTER(Active)(&Active), rc); 1849 CHECK_ERROR_RET(vrdeServerInfo, COMGETTER(NumberOfClients)(&NumberOfClients), rc); 1850 CHECK_ERROR_RET(vrdeServerInfo, COMGETTER(BeginTime)(&BeginTime), rc); 1851 CHECK_ERROR_RET(vrdeServerInfo, COMGETTER(EndTime)(&EndTime), rc); 1852 CHECK_ERROR_RET(vrdeServerInfo, COMGETTER(BytesSent)(&BytesSent), rc); 1853 CHECK_ERROR_RET(vrdeServerInfo, COMGETTER(BytesSentTotal)(&BytesSentTotal), rc); 1854 CHECK_ERROR_RET(vrdeServerInfo, COMGETTER(BytesReceived)(&BytesReceived), rc); 1855 CHECK_ERROR_RET(vrdeServerInfo, COMGETTER(BytesReceivedTotal)(&BytesReceivedTotal), rc); 1856 CHECK_ERROR_RET(vrdeServerInfo, COMGETTER(User)(User.asOutParam()), rc); 1857 CHECK_ERROR_RET(vrdeServerInfo, COMGETTER(Domain)(Domain.asOutParam()), rc); 1858 CHECK_ERROR_RET(vrdeServerInfo, COMGETTER(ClientName)(ClientName.asOutParam()), rc); 1859 CHECK_ERROR_RET(vrdeServerInfo, COMGETTER(ClientIP)(ClientIP.asOutParam()), rc); 1860 CHECK_ERROR_RET(vrdeServerInfo, COMGETTER(ClientVersion)(&ClientVersion), rc); 1861 CHECK_ERROR_RET(vrdeServerInfo, COMGETTER(EncryptionStyle)(&EncryptionStyle), rc); 1862 1862 1863 1863 if (details == VMINFO_MACHINEREADABLE) 1864 RTPrintf("VRD PActiveConnection=\"%s\"\n", Active ? "on": "off");1864 RTPrintf("VRDEActiveConnection=\"%s\"\n", Active ? "on": "off"); 1865 1865 else 1866 RTPrintf("VRD PConnection: %s\n", Active? "active": "not active");1866 RTPrintf("VRDE Connection: %s\n", Active? "active": "not active"); 1867 1867 1868 1868 if (details == VMINFO_MACHINEREADABLE) 1869 RTPrintf("VRD PClients=%d\n", NumberOfClients);1869 RTPrintf("VRDEClients=%d\n", NumberOfClients); 1870 1870 else 1871 1871 RTPrintf("Clients so far: %d\n", NumberOfClients); … … 1879 1879 makeTimeStr(timestr, sizeof(timestr), BeginTime); 1880 1880 if (details == VMINFO_MACHINEREADABLE) 1881 RTPrintf("VRD PStartTime=\"%s\"\n", timestr);1881 RTPrintf("VRDEStartTime=\"%s\"\n", timestr); 1882 1882 else 1883 1883 RTPrintf("Start time: %s\n", timestr); … … 1887 1887 makeTimeStr(timestr, sizeof(timestr), BeginTime); 1888 1888 if (details == VMINFO_MACHINEREADABLE) 1889 RTPrintf("VRD PLastStartTime=\"%s\"\n", timestr);1889 RTPrintf("VRDELastStartTime=\"%s\"\n", timestr); 1890 1890 else 1891 1891 RTPrintf("Last started: %s\n", timestr); 1892 1892 makeTimeStr(timestr, sizeof(timestr), EndTime); 1893 1893 if (details == VMINFO_MACHINEREADABLE) 1894 RTPrintf("VRD PLastEndTime=\"%s\"\n", timestr);1894 RTPrintf("VRDELastEndTime=\"%s\"\n", timestr); 1895 1895 else 1896 1896 RTPrintf("Last ended: %s\n", timestr); … … 1907 1907 if (details == VMINFO_MACHINEREADABLE) 1908 1908 { 1909 RTPrintf("VRD PBytesSent=%lld\n", BytesSent);1910 RTPrintf("VRD PThroughputSend=%lld\n", ThroughputSend);1911 RTPrintf("VRD PBytesSentTotal=%lld\n", BytesSentTotal);1912 1913 RTPrintf("VRD PBytesReceived=%lld\n", BytesReceived);1914 RTPrintf("VRD PThroughputReceive=%lld\n", ThroughputReceive);1915 RTPrintf("VRD PBytesReceivedTotal=%lld\n", BytesReceivedTotal);1909 RTPrintf("VRDEBytesSent=%lld\n", BytesSent); 1910 RTPrintf("VRDEThroughputSend=%lld\n", ThroughputSend); 1911 RTPrintf("VRDEBytesSentTotal=%lld\n", BytesSentTotal); 1912 1913 RTPrintf("VRDEBytesReceived=%lld\n", BytesReceived); 1914 RTPrintf("VRDEThroughputReceive=%lld\n", ThroughputReceive); 1915 RTPrintf("VRDEBytesReceivedTotal=%lld\n", BytesReceivedTotal); 1916 1916 } 1917 1917 else … … 1930 1930 if (details == VMINFO_MACHINEREADABLE) 1931 1931 { 1932 RTPrintf("VRD PUserName=\"%lS\"\n", User.raw());1933 RTPrintf("VRD PDomain=\"%lS\"\n", Domain.raw());1934 RTPrintf("VRD PClientName=\"%lS\"\n", ClientName.raw());1935 RTPrintf("VRD PClientIP=\"%lS\"\n", ClientIP.raw());1936 RTPrintf("VRD PClientVersion=%d\n", ClientVersion);1937 RTPrintf("VRD PEncryption=\"%s\"\n", EncryptionStyle == 0? "RDP4": "RDP5 (X.509)");1932 RTPrintf("VRDEUserName=\"%lS\"\n", User.raw()); 1933 RTPrintf("VRDEDomain=\"%lS\"\n", Domain.raw()); 1934 RTPrintf("VRDEClientName=\"%lS\"\n", ClientName.raw()); 1935 RTPrintf("VRDEClientIP=\"%lS\"\n", ClientIP.raw()); 1936 RTPrintf("VRDEClientVersion=%d\n", ClientVersion); 1937 RTPrintf("VRDEEncryption=\"%s\"\n", EncryptionStyle == 0? "RDP4": "RDP5 (X.509)"); 1938 1938 } 1939 1939 else -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r33322 r33386 884 884 systemProperties->COMGETTER(DefaultMachineFolder)(str.asOutParam()); 885 885 RTPrintf("Default machine folder: %lS\n", str.raw()); 886 systemProperties->COMGETTER( RemoteDisplayAuthLibrary)(str.asOutParam());887 RTPrintf("VRD P authentication library:%lS\n", str.raw());886 systemProperties->COMGETTER(VRDEAuthLibrary)(str.asOutParam()); 887 RTPrintf("VRDE auth library: %lS\n", str.raw()); 888 888 systemProperties->COMGETTER(WebServiceAuthLibrary)(str.asOutParam()); 889 889 RTPrintf("Webservice auth. library: %lS\n", str.raw()); 890 systemProperties->COMGETTER(DefaultVRDELibrary)(str.asOutParam()); 891 RTPrintf("Remote desktop library: %lS\n", str.raw()); 890 892 systemProperties->COMGETTER(LogHistoryCount)(&ulValue); 891 893 RTPrintf("Log history count: %u\n", ulValue); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r33294 r33386 295 295 } 296 296 #endif 297 #ifdef VBOX_WITH_VRDP298 else if (!RTStrICmp(ValueUnion.psz, "vrdp"))299 {300 sessionType = "vrdp";301 }302 #endif303 297 #ifdef VBOX_WITH_HEADLESS 304 298 else if (!RTStrICmp(ValueUnion.psz, "capture")) … … 588 582 CHECK_ERROR(systemProperties, COMSETTER(DefaultMachineFolder)(Bstr(a->argv[1]).raw())); 589 583 } 590 else if (!strcmp(a->argv[0], "vrdpauthlibrary")) 591 { 584 else if ( !strcmp(a->argv[0], "vrdeauthlibrary") 585 || !strcmp(a->argv[0], "vrdpauthlibrary")) 586 { 587 if (!strcmp(a->argv[0], "vrdpauthlibrary")) 588 RTStrmPrintf(g_pStdErr, "Warning: 'vrdpauthlibrary' is deprecated. Use 'vrdeauthlibrary'.\n"); 589 592 590 /* reset to default? */ 593 591 if (!strcmp(a->argv[1], "default")) 594 CHECK_ERROR(systemProperties, COMSETTER( RemoteDisplayAuthLibrary)(NULL));595 else 596 CHECK_ERROR(systemProperties, COMSETTER( RemoteDisplayAuthLibrary)(Bstr(a->argv[1]).raw()));592 CHECK_ERROR(systemProperties, COMSETTER(VRDEAuthLibrary)(NULL)); 593 else 594 CHECK_ERROR(systemProperties, COMSETTER(VRDEAuthLibrary)(Bstr(a->argv[1]).raw())); 597 595 } 598 596 else if (!strcmp(a->argv[0], "websrvauthlibrary")) … … 603 601 else 604 602 CHECK_ERROR(systemProperties, COMSETTER(WebServiceAuthLibrary)(Bstr(a->argv[1]).raw())); 603 } 604 else if (!strcmp(a->argv[0], "vrdelibrary")) 605 { 606 /* disable? */ 607 if (!strcmp(a->argv[1], "null")) 608 CHECK_ERROR(systemProperties, COMSETTER(DefaultVRDELibrary)(NULL)); 609 else 610 CHECK_ERROR(systemProperties, COMSETTER(DefaultVRDELibrary)(Bstr(a->argv[1]).raw())); 605 611 } 606 612 else if (!strcmp(a->argv[0], "loghistorycount")) -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r33294 r33386 133 133 MODIFYVM_CLIPBOARD, 134 134 #ifdef VBOX_WITH_VRDP 135 MODIFYVM_VRDPPORT, 136 MODIFYVM_VRDPADDRESS, 137 MODIFYVM_VRDPAUTHTYPE, 138 MODIFYVM_VRDPMULTICON, 139 MODIFYVM_VRDPREUSECON, 140 MODIFYVM_VRDPVIDEOCHANNEL, 141 MODIFYVM_VRDPVIDEOCHANNELQUALITY, 142 MODIFYVM_VRDP, 135 MODIFYVM_VRDPPORT, /* VRDE: deprecated */ 136 MODIFYVM_VRDPADDRESS, /* VRDE: deprecated */ 137 MODIFYVM_VRDPAUTHTYPE, /* VRDE: deprecated */ 138 MODIFYVM_VRDPMULTICON, /* VRDE: deprecated */ 139 MODIFYVM_VRDPREUSECON, /* VRDE: deprecated */ 140 MODIFYVM_VRDPVIDEOCHANNEL, /* VRDE: deprecated */ 141 MODIFYVM_VRDPVIDEOCHANNELQUALITY, /* VRDE: deprecated */ 142 MODIFYVM_VRDP, /* VRDE: deprecated */ 143 MODIFYVM_VRDESETPROPERTY, 144 MODIFYVM_VRDEAUTHTYPE, 145 MODIFYVM_VRDEMULTICON, 146 MODIFYVM_VRDEREUSECON, 147 MODIFYVM_VRDEVIDEOCHANNEL, 148 MODIFYVM_VRDEVIDEOCHANNELQUALITY, 149 MODIFYVM_VRDE, 143 150 #endif 144 151 MODIFYVM_RTCUSEUTC, … … 250 257 { "--clipboard", MODIFYVM_CLIPBOARD, RTGETOPT_REQ_STRING }, 251 258 #ifdef VBOX_WITH_VRDP 252 { "--vrdpport", MODIFYVM_VRDPPORT, RTGETOPT_REQ_STRING }, 253 { "--vrdpaddress", MODIFYVM_VRDPADDRESS, RTGETOPT_REQ_STRING }, 254 { "--vrdpauthtype", MODIFYVM_VRDPAUTHTYPE, RTGETOPT_REQ_STRING }, 255 { "--vrdpmulticon", MODIFYVM_VRDPMULTICON, RTGETOPT_REQ_BOOL_ONOFF }, 256 { "--vrdpreusecon", MODIFYVM_VRDPREUSECON, RTGETOPT_REQ_BOOL_ONOFF }, 257 { "--vrdpvideochannel", MODIFYVM_VRDPVIDEOCHANNEL, RTGETOPT_REQ_BOOL_ONOFF }, 258 { "--vrdpvideochannelquality", MODIFYVM_VRDPVIDEOCHANNELQUALITY, RTGETOPT_REQ_UINT32 }, 259 { "--vrdp", MODIFYVM_VRDP, RTGETOPT_REQ_BOOL_ONOFF }, 259 { "--vrdpport", MODIFYVM_VRDPPORT, RTGETOPT_REQ_STRING }, /* deprecated */ 260 { "--vrdpaddress", MODIFYVM_VRDPADDRESS, RTGETOPT_REQ_STRING }, /* deprecated */ 261 { "--vrdpauthtype", MODIFYVM_VRDPAUTHTYPE, RTGETOPT_REQ_STRING }, /* deprecated */ 262 { "--vrdpmulticon", MODIFYVM_VRDPMULTICON, RTGETOPT_REQ_BOOL_ONOFF }, /* deprecated */ 263 { "--vrdpreusecon", MODIFYVM_VRDPREUSECON, RTGETOPT_REQ_BOOL_ONOFF }, /* deprecated */ 264 { "--vrdpvideochannel", MODIFYVM_VRDPVIDEOCHANNEL, RTGETOPT_REQ_BOOL_ONOFF }, /* deprecated */ 265 { "--vrdpvideochannelquality", MODIFYVM_VRDPVIDEOCHANNELQUALITY, RTGETOPT_REQ_UINT32 }, /* deprecated */ 266 { "--vrdp", MODIFYVM_VRDP, RTGETOPT_REQ_BOOL_ONOFF }, /* deprecated */ 267 { "--vrdesetproperty", MODIFYVM_VRDESETPROPERTY, RTGETOPT_REQ_STRING }, 268 { "--vrdeauthtype", MODIFYVM_VRDEAUTHTYPE, RTGETOPT_REQ_STRING }, 269 { "--vrdemulticon", MODIFYVM_VRDEMULTICON, RTGETOPT_REQ_BOOL_ONOFF }, 270 { "--vrdereusecon", MODIFYVM_VRDEREUSECON, RTGETOPT_REQ_BOOL_ONOFF }, 271 { "--vrdevideochannel", MODIFYVM_VRDEVIDEOCHANNEL, RTGETOPT_REQ_BOOL_ONOFF }, 272 { "--vrdevideochannelquality", MODIFYVM_VRDEVIDEOCHANNELQUALITY, RTGETOPT_REQ_UINT32 }, 273 { "--vrde", MODIFYVM_VRDE, RTGETOPT_REQ_BOOL_ONOFF }, 260 274 #endif 261 275 { "--usbehci", MODIFYVM_USBEHCI, RTGETOPT_REQ_BOOL_ONOFF }, … … 278 292 { "--chipset", MODIFYVM_CHIPSET, RTGETOPT_REQ_STRING }, 279 293 }; 294 295 static void vrdeWarningDeprecatedOption(const char *pszOption) 296 { 297 RTStrmPrintf(g_pStdErr, "Warning: '--vrdp%s' is deprecated. Use '--vrde%s'.\n", pszOption, pszOption); 298 } 299 300 static void vrdeWarningDeprecatedProperty(const char *pszOption, const char *pszProperty, const char *pszArg) 301 { 302 RTStrmPrintf(g_pStdErr, "Warning: '--%s' is deprecated. Use '--vrdesetproperty \"%s=%s\"'.\n", 303 pszOption, pszProperty, pszArg); 304 } 305 280 306 281 307 int handleModifyVM(HandlerArg *a) … … 1798 1824 1799 1825 #ifdef VBOX_WITH_VRDP 1826 case MODIFYVM_VRDESETPROPERTY: 1827 { 1828 ComPtr<IVRDEServer> vrdeServer; 1829 machine->COMGETTER(VRDEServer)(vrdeServer.asOutParam()); 1830 ASSERT(vrdeServer); 1831 1832 if (vrdeServer) 1833 { 1834 /* Parse 'name=value' */ 1835 char *pszProperty = RTStrDup(ValueUnion.psz); 1836 if (pszProperty) 1837 { 1838 char *pDelimiter = strchr(pszProperty, '='); 1839 if (pDelimiter) 1840 { 1841 *pDelimiter = '\0'; 1842 1843 Bstr bstrName = pszProperty; 1844 Bstr bstrValue = &pDelimiter[1]; 1845 CHECK_ERROR(vrdeServer, SetVRDEProperty(bstrName.raw(), bstrValue.raw())); 1846 } 1847 else 1848 { 1849 RTStrFree(pszProperty); 1850 1851 errorArgument("Invalid --vrdesetproperty argument '%s'", ValueUnion.psz); 1852 rc = E_FAIL; 1853 break; 1854 } 1855 RTStrFree(pszProperty); 1856 } 1857 else 1858 { 1859 RTStrmPrintf(g_pStdErr, "Error: Failed to allocate memory for VRDE property '%s'\n", ValueUnion.psz); 1860 rc = E_FAIL; 1861 } 1862 } 1863 break; 1864 } 1865 1800 1866 case MODIFYVM_VRDPPORT: 1801 1867 { 1802 ComPtr<IVRDPServer> vrdpServer; 1803 machine->COMGETTER(VRDPServer)(vrdpServer.asOutParam()); 1804 ASSERT(vrdpServer); 1868 vrdeWarningDeprecatedProperty("vrdpport", "TCP/Ports", ValueUnion.psz); 1869 1870 ComPtr<IVRDEServer> vrdeServer; 1871 machine->COMGETTER(VRDEServer)(vrdeServer.asOutParam()); 1872 ASSERT(vrdeServer); 1805 1873 1806 1874 if (!strcmp(ValueUnion.psz, "default")) 1807 CHECK_ERROR(vrd pServer, COMSETTER(Ports)(Bstr("0").raw()));1808 else 1809 CHECK_ERROR(vrd pServer, COMSETTER(Ports)(Bstr(ValueUnion.psz).raw()));1875 CHECK_ERROR(vrdeServer, SetVRDEProperty(Bstr("TCP/Ports").raw(), Bstr("0").raw())); 1876 else 1877 CHECK_ERROR(vrdeServer, SetVRDEProperty(Bstr("TCP/Ports").raw(), Bstr(ValueUnion.psz).raw())); 1810 1878 break; 1811 1879 } … … 1813 1881 case MODIFYVM_VRDPADDRESS: 1814 1882 { 1815 ComPtr<IVRDPServer> vrdpServer; 1816 machine->COMGETTER(VRDPServer)(vrdpServer.asOutParam()); 1817 ASSERT(vrdpServer); 1818 1819 CHECK_ERROR(vrdpServer, COMSETTER(NetAddress)(Bstr(ValueUnion.psz).raw())); 1883 vrdeWarningDeprecatedProperty("vrdpaddress", "TCP/Address", ValueUnion.psz); 1884 1885 ComPtr<IVRDEServer> vrdeServer; 1886 machine->COMGETTER(VRDEServer)(vrdeServer.asOutParam()); 1887 ASSERT(vrdeServer); 1888 1889 CHECK_ERROR(vrdeServer, SetVRDEProperty(Bstr("TCP/Address").raw(), Bstr(ValueUnion.psz).raw())); 1820 1890 break; 1821 1891 } 1822 1892 1823 1893 case MODIFYVM_VRDPAUTHTYPE: 1824 { 1825 ComPtr<IVRDPServer> vrdpServer; 1826 machine->COMGETTER(VRDPServer)(vrdpServer.asOutParam()); 1827 ASSERT(vrdpServer); 1894 vrdeWarningDeprecatedOption("authtype"); 1895 case MODIFYVM_VRDEAUTHTYPE: 1896 { 1897 ComPtr<IVRDEServer> vrdeServer; 1898 machine->COMGETTER(VRDEServer)(vrdeServer.asOutParam()); 1899 ASSERT(vrdeServer); 1828 1900 1829 1901 if (!strcmp(ValueUnion.psz, "null")) 1830 1902 { 1831 CHECK_ERROR(vrd pServer, COMSETTER(AuthType)(VRDPAuthType_Null));1903 CHECK_ERROR(vrdeServer, COMSETTER(AuthType)(AuthType_Null)); 1832 1904 } 1833 1905 else if (!strcmp(ValueUnion.psz, "external")) 1834 1906 { 1835 CHECK_ERROR(vrd pServer, COMSETTER(AuthType)(VRDPAuthType_External));1907 CHECK_ERROR(vrdeServer, COMSETTER(AuthType)(AuthType_External)); 1836 1908 } 1837 1909 else if (!strcmp(ValueUnion.psz, "guest")) 1838 1910 { 1839 CHECK_ERROR(vrd pServer, COMSETTER(AuthType)(VRDPAuthType_Guest));1911 CHECK_ERROR(vrdeServer, COMSETTER(AuthType)(AuthType_Guest)); 1840 1912 } 1841 1913 else … … 1848 1920 1849 1921 case MODIFYVM_VRDPMULTICON: 1850 { 1851 ComPtr<IVRDPServer> vrdpServer; 1852 machine->COMGETTER(VRDPServer)(vrdpServer.asOutParam()); 1853 ASSERT(vrdpServer); 1854 1855 CHECK_ERROR(vrdpServer, COMSETTER(AllowMultiConnection)(ValueUnion.f)); 1922 vrdeWarningDeprecatedOption("multicon"); 1923 case MODIFYVM_VRDEMULTICON: 1924 { 1925 ComPtr<IVRDEServer> vrdeServer; 1926 machine->COMGETTER(VRDEServer)(vrdeServer.asOutParam()); 1927 ASSERT(vrdeServer); 1928 1929 CHECK_ERROR(vrdeServer, COMSETTER(AllowMultiConnection)(ValueUnion.f)); 1856 1930 break; 1857 1931 } 1858 1932 1859 1933 case MODIFYVM_VRDPREUSECON: 1860 { 1861 ComPtr<IVRDPServer> vrdpServer; 1862 machine->COMGETTER(VRDPServer)(vrdpServer.asOutParam()); 1863 ASSERT(vrdpServer); 1864 1865 CHECK_ERROR(vrdpServer, COMSETTER(ReuseSingleConnection)(ValueUnion.f)); 1934 vrdeWarningDeprecatedOption("reusecon"); 1935 case MODIFYVM_VRDEREUSECON: 1936 { 1937 ComPtr<IVRDEServer> vrdeServer; 1938 machine->COMGETTER(VRDEServer)(vrdeServer.asOutParam()); 1939 ASSERT(vrdeServer); 1940 1941 CHECK_ERROR(vrdeServer, COMSETTER(ReuseSingleConnection)(ValueUnion.f)); 1866 1942 break; 1867 1943 } 1868 1944 1869 1945 case MODIFYVM_VRDPVIDEOCHANNEL: 1870 { 1871 ComPtr<IVRDPServer> vrdpServer; 1872 machine->COMGETTER(VRDPServer)(vrdpServer.asOutParam()); 1873 ASSERT(vrdpServer); 1874 1875 CHECK_ERROR(vrdpServer, COMSETTER(VideoChannel)(ValueUnion.f)); 1946 vrdeWarningDeprecatedOption("videochannel"); 1947 case MODIFYVM_VRDEVIDEOCHANNEL: 1948 { 1949 ComPtr<IVRDEServer> vrdeServer; 1950 machine->COMGETTER(VRDEServer)(vrdeServer.asOutParam()); 1951 ASSERT(vrdeServer); 1952 1953 CHECK_ERROR(vrdeServer, COMSETTER(VideoChannel)(ValueUnion.f)); 1876 1954 break; 1877 1955 } 1878 1956 1879 1957 case MODIFYVM_VRDPVIDEOCHANNELQUALITY: 1880 { 1881 ComPtr<IVRDPServer> vrdpServer; 1882 machine->COMGETTER(VRDPServer)(vrdpServer.asOutParam()); 1883 ASSERT(vrdpServer); 1884 1885 CHECK_ERROR(vrdpServer, COMSETTER(VideoChannelQuality)(ValueUnion.u32)); 1958 vrdeWarningDeprecatedOption("videochannelquality"); 1959 case MODIFYVM_VRDEVIDEOCHANNELQUALITY: 1960 { 1961 ComPtr<IVRDEServer> vrdeServer; 1962 machine->COMGETTER(VRDEServer)(vrdeServer.asOutParam()); 1963 ASSERT(vrdeServer); 1964 1965 CHECK_ERROR(vrdeServer, COMSETTER(VideoChannelQuality)(ValueUnion.u32)); 1886 1966 break; 1887 1967 } 1888 1968 1889 1969 case MODIFYVM_VRDP: 1890 { 1891 ComPtr<IVRDPServer> vrdpServer; 1892 machine->COMGETTER(VRDPServer)(vrdpServer.asOutParam()); 1893 ASSERT(vrdpServer); 1894 1895 CHECK_ERROR(vrdpServer, COMSETTER(Enabled)(ValueUnion.f)); 1970 vrdeWarningDeprecatedOption(""); 1971 case MODIFYVM_VRDE: 1972 { 1973 ComPtr<IVRDEServer> vrdeServer; 1974 machine->COMGETTER(VRDEServer)(vrdeServer.asOutParam()); 1975 ASSERT(vrdeServer); 1976 1977 CHECK_ERROR(vrdeServer, COMSETTER(Enabled)(ValueUnion.f)); 1896 1978 break; 1897 1979 } -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r33140 r33386 197 197 static ComPtr<IMouse> gMouse; 198 198 static ComPtr<IDisplay> gDisplay; 199 static ComPtr<IVRD PServer> gVrdpServer;199 static ComPtr<IVRDEServer> gVRDEServer; 200 200 static ComPtr<IProgress> gProgress; 201 201 … … 1878 1878 if (portVRDP) 1879 1879 { 1880 rc = gMachine->COMGETTER(VRD PServer)(gVrdpServer.asOutParam());1881 AssertMsg((rc == S_OK) && gV rdpServer, ("Could not get VRDP Server! rc = 0x%x\n", rc));1882 if (gV rdpServer)1880 rc = gMachine->COMGETTER(VRDEServer)(gVRDEServer.asOutParam()); 1881 AssertMsg((rc == S_OK) && gVRDEServer, ("Could not get VRDP Server! rc = 0x%x\n", rc)); 1882 if (gVRDEServer) 1883 1883 { 1884 1884 // has a non standard VRDP port been requested? … … 1886 1886 { 1887 1887 Bstr bstr = portVRDP; 1888 rc = gV rdpServer->COMSETTER(Ports)(bstr.raw());1888 rc = gVRDEServer->SetVRDEProperty(Bstr("TCP/Ports").raw(), bstr.raw()); 1889 1889 if (rc != S_OK) 1890 1890 { … … 1894 1894 } 1895 1895 // now enable VRDP 1896 rc = gV rdpServer->COMSETTER(Enabled)(TRUE);1896 rc = gVRDEServer->COMSETTER(Enabled)(TRUE); 1897 1897 if (rc != S_OK) 1898 1898 { … … 2687 2687 2688 2688 #ifdef VBOX_WITH_VRDP 2689 if (gV rdpServer)2690 rc = gV rdpServer->COMSETTER(Enabled)(FALSE);2689 if (gVRDEServer) 2690 rc = gVRDEServer->COMSETTER(Enabled)(FALSE); 2691 2691 #endif 2692 2692 … … 2797 2797 #endif 2798 2798 2799 LogFlow(("Releasing mouse, keyboard, vrdpserver, display, console...\n"));2799 LogFlow(("Releasing mouse, keyboard, remote desktop server, display, console...\n")); 2800 2800 if (gDisplay) 2801 2801 { … … 2806 2806 gMouse = NULL; 2807 2807 gKeyboard = NULL; 2808 gV rdpServer = NULL;2808 gVRDEServer = NULL; 2809 2809 gDisplay = NULL; 2810 2810 gConsole = NULL; -
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r33321 r33386 955 955 print " Pointing device [pointingHidType]: %s (%s)" %(asEnumElem(ctx,"PointingHidType", mach.pointingHidType), mach.pointingHidType) 956 956 print " Last changed [n/a]: " + time.asctime(time.localtime(long(mach.lastStateChange)/1000)) 957 # OSE has no VRD P957 # OSE has no VRDE 958 958 try: 959 print " VRD P server [VRDPServer.enabled]: %s" %(asState(mach.VRDPServer.enabled))959 print " VRDE server [VRDEServer.enabled]: %s" %(asState(mach.VRDEServer.enabled)) 960 960 except: 961 961 pass … … 2987 2987 2988 2988 commands = {'help':['Prints help information', helpCmd, 0], 2989 'start':['Start virtual machine by name or uuid: start Linux vrdp', startCmd, 0],2989 'start':['Start virtual machine by name or uuid: start Linux headless', startCmd, 0], 2990 2990 'createVm':['Create virtual machine: createVm macvm MacOS', createVmCmd, 0], 2991 2991 'removeVm':['Remove virtual machine', removeVmCmd, 0], -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMInformationDlg.cpp
r31436 r33386 475 475 else 476 476 osType = vboxGlobal().vmGuestOSTypeDescription (osType); 477 int vrd pPort = console.GetRemoteDisplayInfo().GetPort();478 QString vrd pInfo = (vrdpPort == 0 || vrdpPort == -1)?479 tr ("Not Available", "details report (VRD Pserver port)") :480 QString ("%1").arg (vrd pPort);477 int vrdePort = console.GetVRDEServerInfo().GetPort(); 478 QString vrdeInfo = (vrdePort == 0 || vrdePort == -1)? 479 tr ("Not Available", "details report (VRDE server port)") : 480 QString ("%1").arg (vrdePort); 481 481 482 482 /* Searching for longest string */ 483 483 QStringList valuesList; 484 valuesList << resolution << virtualization << nested << addVersionStr << osType << vrd pInfo;484 valuesList << resolution << virtualization << nested << addVersionStr << osType << vrdeInfo; 485 485 int maxLength = 0; 486 486 foreach (const QString &value, valuesList) … … 494 494 result += formatValue (tr ("Guest Additions"), addVersionStr, maxLength); 495 495 result += formatValue (tr ("Guest OS Type"), osType, maxLength); 496 result += formatValue (VBoxGlobal::tr ("Remote D isplay Server Port", "details report (VRDP Server)"), vrdpInfo, maxLength);496 result += formatValue (VBoxGlobal::tr ("Remote Desktop Server Port", "details report (VRDE Server)"), vrdeInfo, maxLength); 497 497 result += paragraph; 498 498 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMainEventListener.cpp
r31813 r33386 172 172 /* Not used * 173 173 case KVBoxEventType_OnCPUChange: 174 case KVBoxEventType_OnVRD PServerChange:175 case KVBoxEventType_On RemoteDisplayInfoChange:174 case KVBoxEventType_OnVRDEServerChange: 175 case KVBoxEventType_OnVRDEServerInfoChange: 176 176 */ 177 177 case KVBoxEventType_OnUSBControllerChanged: -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r33294 r33386 1657 1657 1658 1658 /* VRDP tab */ 1659 CVRD PServer srv = aMachine.GetVRDPServer();1659 CVRDEServer srv = aMachine.GetVRDEServer(); 1660 1660 if (!srv.isNull()) 1661 1661 { 1662 1662 if (srv.GetEnabled()) 1663 1663 item += QString (sSectionItemTpl2) 1664 .arg (tr ("Remote D isplay Server Port", "details report (VRDPServer)"))1665 .arg (srv.Get Ports());1664 .arg (tr ("Remote Desktop Server Port", "details report (VRDE Server)")) 1665 .arg (srv.GetVRDEProperty("TCP/Ports")); 1666 1666 else 1667 1667 item += QString (sSectionItemTpl2) 1668 .arg (tr ("Remote D isplay Server", "details report (VRDPServer)"))1669 .arg (tr ("Disabled", "details report (VRD PServer)"));1668 .arg (tr ("Remote Desktop Server", "details report (VRDE Server)")) 1669 .arg (tr ("Disabled", "details report (VRDE Server)")); 1670 1670 ++ rows; 1671 1671 } … … 2702 2702 mDiskTypes_Differencing = tr ("Differencing", "DiskType"); 2703 2703 2704 m VRDPAuthTypes [KVRDPAuthType_Null] = tr ("Null", "VRDPAuthType");2705 m VRDPAuthTypes [KVRDPAuthType_External] = tr ("External", "VRDPAuthType");2706 m VRDPAuthTypes [KVRDPAuthType_Guest] = tr ("Guest", "VRDPAuthType");2704 mAuthTypes [KAuthType_Null] = tr ("Null", "AuthType"); 2705 mAuthTypes [KAuthType_External] = tr ("External", "AuthType"); 2706 mAuthTypes [KAuthType_Guest] = tr ("Guest", "AuthType"); 2707 2707 2708 2708 mPortModeTypes [KPortMode_Disconnected] = tr ("Disconnected", "PortMode"); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r32741 r33386 317 317 } 318 318 319 QString toString (K VRDPAuthType t) const320 { 321 AssertMsg (!m VRDPAuthTypes.value (t).isNull(), ("No text for %d", t));322 return m VRDPAuthTypes.value (t);319 QString toString (KAuthType t) const 320 { 321 AssertMsg (!mAuthTypes.value (t).isNull(), ("No text for %d", t)); 322 return mAuthTypes.value (t); 323 323 } 324 324 … … 365 365 } 366 366 367 K VRDPAuthType toVRDPAuthType (const QString &s) const368 { 369 QULongStringHash::const_iterator it = 370 qFind (m VRDPAuthTypes.begin(), mVRDPAuthTypes.end(), s);371 AssertMsg (it != m VRDPAuthTypes.end(), ("No value for {%s}",367 KAuthType toAuthType (const QString &s) const 368 { 369 QULongStringHash::const_iterator it = 370 qFind (mAuthTypes.begin(), mAuthTypes.end(), s); 371 AssertMsg (it != mAuthTypes.end(), ("No value for {%s}", 372 372 s.toLatin1().constData())); 373 return K VRDPAuthType (it.key());373 return KAuthType (it.key()); 374 374 } 375 375 … … 797 797 QString mDiskTypes_Differencing; 798 798 799 QULongStringHash m VRDPAuthTypes;799 QULongStringHash mAuthTypes; 800 800 QULongStringHash mPortModeTypes; 801 801 QULongStringHash mUSBFilterActionTypes; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionsPool.cpp
r31286 r33386 796 796 }; 797 797 798 class ToggleVRD PAction : public UIToggleAction799 { 800 Q_OBJECT; 801 802 public: 803 804 ToggleVRD PAction(QObject *pParent)798 class ToggleVRDEServerAction : public UIToggleAction 799 { 800 Q_OBJECT; 801 802 public: 803 804 ToggleVRDEServerAction(QObject *pParent) 805 805 : UIToggleAction(pParent, 806 806 ":/vrdp_on_16px.png", ":/vrdp_16px.png", … … 1197 1197 m_actionsPool[UIActionIndex_Simple_NetworkAdaptersDialog] = new ShowNetworkAdaptersDialogAction(this); 1198 1198 m_actionsPool[UIActionIndex_Simple_SharedFoldersDialog] = new ShowSharedFoldersDialogAction(this); 1199 m_actionsPool[UIActionIndex_Toggle_VRD P] = new ToggleVRDPAction(this);1199 m_actionsPool[UIActionIndex_Toggle_VRDEServer] = new ToggleVRDEServerAction(this); 1200 1200 m_actionsPool[UIActionIndex_Simple_InstallGuestTools] = new PerformInstallGuestToolsAction(this); 1201 1201 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionsPool.h
r30753 r33386 82 82 UIActionIndex_Menu_SharedFolders, 83 83 UIActionIndex_Simple_SharedFoldersDialog, 84 UIActionIndex_Toggle_VRD P,84 UIActionIndex_Toggle_VRDEServer, 85 85 UIActionIndex_Simple_InstallGuestTools, 86 86 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r31698 r33386 479 479 }; 480 480 481 class UIIndicatorVRD PDisks : public QIWithRetranslateUI<QIStateIndicator>482 { 483 Q_OBJECT; 484 485 public: 486 487 UIIndicatorVRD PDisks(CSession &session)481 class UIIndicatorVRDEDisks : public QIWithRetranslateUI<QIStateIndicator> 482 { 483 Q_OBJECT; 484 485 public: 486 487 UIIndicatorVRDEDisks(CSession &session) 488 488 : QIWithRetranslateUI<QIStateIndicator>() 489 489 , m_session(session) … … 502 502 void updateAppearance() 503 503 { 504 const CVRDPServer &vrdpsrv = m_session.GetMachine().GetVRDPServer();505 if (! vrdpsrv.isNull())504 CVRDEServer &srv = m_session.GetMachine().GetVRDEServer(); 505 if (!srv.isNull()) 506 506 { 507 507 /* update menu&status icon state */ 508 bool f VRDPEnabled = vrdpsrv.GetEnabled();509 510 setState(f VRDPEnabled ? KDeviceActivity_Idle : KDeviceActivity_Null);511 512 QString tip = QApplication::translate("UIIndicatorsPool", "Indicates whether the Remote D isplay (VRDP Server)"508 bool fEnabled = srv.GetEnabled(); 509 510 setState(fEnabled ? KDeviceActivity_Idle : KDeviceActivity_Null); 511 512 QString tip = QApplication::translate("UIIndicatorsPool", "Indicates whether the Remote Desktop Server " 513 513 "is enabled (<img src=:/vrdp_16px.png/>) or not " 514 514 "(<img src=:/vrdp_disabled_16px.png/>)."); 515 if ( vrdpsrv.GetEnabled())516 tip += QApplication::translate("UIIndicatorsPool", "<hr>The VRDP Server is listening on port %1").arg(vrdpsrv.GetPorts());515 if (srv.GetEnabled()) 516 tip += QApplication::translate("UIIndicatorsPool", "<hr>The Remote Desktop Server is listening on port %1").arg(srv.GetVRDEProperty("TCP/Ports")); 517 517 setToolTip(tip); 518 518 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r33300 r33386 497 497 connect(actionsPool()->action(UIActionIndex_Simple_SharedFoldersDialog), SIGNAL(triggered()), 498 498 this, SLOT(sltOpenSharedFoldersDialog())); 499 connect(actionsPool()->action(UIActionIndex_Toggle_VRD P), SIGNAL(toggled(bool)),500 this, SLOT(sltSwitchVrd p(bool)));499 connect(actionsPool()->action(UIActionIndex_Toggle_VRDEServer), SIGNAL(toggled(bool)), 500 this, SLOT(sltSwitchVrde(bool))); 501 501 connect(actionsPool()->action(UIActionIndex_Simple_InstallGuestTools), SIGNAL(triggered()), 502 502 this, SLOT(sltInstallGuestAdditions())); … … 562 562 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Menu_SharedFolders)); 563 563 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Simple_SharedFoldersDialog)); 564 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Toggle_VRD P));564 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Toggle_VRDEServer)); 565 565 m_pRunningOrPausedActions->addAction(actionsPool()->action(UIActionIndex_Simple_InstallGuestTools)); 566 566 } … … 1442 1442 } 1443 1443 1444 void UIMachineLogic::sltSwitchVrd p(bool fOn)1445 { 1446 /* Enable VRD Pserver if possible: */1447 CVRD PServer server = session().GetMachine().GetVRDPServer();1448 AssertMsg(!server.isNull(), ("VRD Pserver should not be null!\n"));1444 void UIMachineLogic::sltSwitchVrde(bool fOn) 1445 { 1446 /* Enable VRDE server if possible: */ 1447 CVRDEServer server = session().GetMachine().GetVRDEServer(); 1448 AssertMsg(!server.isNull(), ("VRDE server should not be null!\n")); 1449 1449 server.SetEnabled(fOn); 1450 1450 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r30936 r33386 175 175 void sltOpenNetworkAdaptersDialog(); 176 176 void sltOpenSharedFoldersDialog(); 177 void sltSwitchVrd p(bool fOn);177 void sltSwitchVrde(bool fOn); 178 178 void sltInstallGuestAdditions(); 179 179 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineMenuBar.cpp
r32741 r33386 186 186 pMenu->addAction(pActionsPool->action(UIActionIndex_Simple_SharedFoldersDialog)); 187 187 pMenu->addSeparator(); 188 pMenu->addAction(pActionsPool->action(UIActionIndex_Toggle_VRD P));188 pMenu->addAction(pActionsPool->action(UIActionIndex_Toggle_VRDEServer)); 189 189 pMenu->addSeparator(); 190 190 pMenu->addAction(pActionsPool->action(UIActionIndex_Simple_InstallGuestTools)); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r33140 r33386 582 582 /* Availability settings: */ 583 583 { 584 /* VRD PStuff: */585 CVRD PServer vrdpServer = machine.GetVRDPServer();586 if ( vrdpServer.isNull())587 { 588 /* Hide VRD PAction: */589 uimachine()->actionsPool()->action(UIActionIndex_Toggle_VRD P)->setVisible(false);584 /* VRDE Stuff: */ 585 CVRDEServer server = machine.GetVRDEServer(); 586 if (server.isNull()) 587 { 588 /* Hide VRDE Action: */ 589 uimachine()->actionsPool()->action(UIActionIndex_Toggle_VRDEServer)->setVisible(false); 590 590 } 591 591 else 592 592 { 593 /* Check/Uncheck VRD P action depending on VRDPserver status: */594 uimachine()->actionsPool()->action(UIActionIndex_Toggle_VRD P)->setChecked(vrdpServer.GetEnabled());593 /* Check/Uncheck VRDE action depending on VRDE server status: */ 594 uimachine()->actionsPool()->action(UIActionIndex_Toggle_VRDEServer)->setChecked(server.GetEnabled()); 595 595 } 596 596 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r32086 r33386 53 53 UIConsoleEventType_MediumChange, 54 54 /* Not used: UIConsoleEventType_CPUChange, */ 55 UIConsoleEventType_VRD PServerChange,56 UIConsoleEventType_ RemoteDisplayInfoChange,55 UIConsoleEventType_VRDEServerChange, 56 UIConsoleEventType_VRDEServerInfoChange, 57 57 UIConsoleEventType_USBControllerChange, 58 58 UIConsoleEventType_USBDeviceStateChange, -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMDesktop.cpp
r32760 r33386 586 586 item += sSectionItemTpl2.arg(tr("Acceleration", "details report"), accel.join(", ")); 587 587 588 /* VRD Ptab */589 const CVRDPServer &srv = m_machine.GetVRDPServer();588 /* VRDE tab */ 589 CVRDEServer &srv = m_machine.GetVRDEServer(); 590 590 if (!srv.isNull()) 591 591 { 592 592 if (srv.GetEnabled()) 593 593 item += QString(sSectionItemTpl2) 594 .arg(tr("Remote D isplay Server Port", "details report (VRDPServer)"))595 .arg(srv.Get Ports());594 .arg(tr("Remote Desktop Server Port", "details report (VRDE Server)")) 595 .arg(srv.GetVRDEProperty("TCP/Ports")); 596 596 else 597 597 item += QString(sSectionItemTpl2) 598 .arg(tr("Remote D isplay Server", "details report (VRDPServer)"))599 .arg(tr("Disabled", "details report (VRD PServer)"));598 .arg(tr("Remote Desktop Server", "details report (VRDE Server)")) 599 .arg(tr("Disabled", "details report (VRDE Server)")); 600 600 } 601 601 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/VBoxGLSettingsGeneral.cpp
r33238 r33386 61 61 { 62 62 mPsMach->setPath (aProps.GetDefaultMachineFolder()); 63 mPsVRDP->setPath (aProps.Get RemoteDisplayAuthLibrary());63 mPsVRDP->setPath (aProps.GetVRDEAuthLibrary()); 64 64 mCbCheckTrayIcon->setChecked (aGs.trayIconEnabled()); 65 65 #ifdef Q_WS_MAC … … 75 75 aProps.SetDefaultMachineFolder (mPsMach->path()); 76 76 if (aProps.isOk() && mPsVRDP->isModified()) 77 aProps.Set RemoteDisplayAuthLibrary (mPsVRDP->path());77 aProps.SetVRDEAuthLibrary (mPsVRDP->path()); 78 78 aGs.setTrayIconEnabled (mCbCheckTrayIcon->isChecked()); 79 79 #ifdef Q_WS_MAC -
trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsDisplay.cpp
r32510 r33386 66 66 mLeMemory->setValidator (new QIntValidator (m_minVRAM, m_maxVRAMVisible, this)); 67 67 mLeMonitors->setValidator (new QIntValidator (MinMonitors, MaxMonitors, this)); 68 mLeVRD PPort->setValidator (new QRegExpValidator (QRegExp ("(([0-9]{1,5}(\\-[0-9]{1,5}){0,1}),)*([0-9]{1,5}(\\-[0-9]{1,5}){0,1})"), this));69 mLeVRD PTimeout->setValidator (new QIntValidator (this));68 mLeVRDEPort->setValidator (new QRegExpValidator (QRegExp ("(([0-9]{1,5}(\\-[0-9]{1,5}){0,1}),)*([0-9]{1,5}(\\-[0-9]{1,5}){0,1})"), this)); 69 mLeVRDETimeout->setValidator (new QIntValidator (this)); 70 70 71 71 /* Setup connections */ … … 101 101 valueChangedVRAM (mSlMemory->value()); 102 102 valueChangedMonitors (mSlMonitors->value()); 103 /* Setup VRD Pwidget */104 mCbVRD PMethod->insertItem (0, ""); /* KVRDPAuthType_Null */105 mCbVRD PMethod->insertItem (1, ""); /* KVRDPAuthType_External */106 mCbVRD PMethod->insertItem (2, ""); /* KVRDPAuthType_Guest */103 /* Setup VRDE widget */ 104 mCbVRDEMethod->insertItem (0, ""); /* KAuthType_Null */ 105 mCbVRDEMethod->insertItem (1, ""); /* KAuthType_External */ 106 mCbVRDEMethod->insertItem (2, ""); /* KAuthType_Guest */ 107 107 /* Initially disabled */ 108 mCbVRD P->setChecked (false);108 mCbVRDE->setChecked (false); 109 109 110 110 mCb3D->setEnabled (false); … … 153 153 #endif 154 154 155 /* VRDPSettings */156 CVRD PServer vrdp = mMachine.GetVRDPServer();157 if (!vrd p.isNull())158 { 159 mCbVRD P->setChecked (vrdp.GetEnabled());160 mLeVRD PPort->setText (vrdp.GetPorts());161 mCbVRD PMethod->setCurrentIndex (mCbVRDPMethod->162 findText (vboxGlobal().toString (vrd p.GetAuthType())));163 mLeVRD PTimeout->setText (QString::number (vrdp.GetAuthTimeout()));164 mCbMultipleConn->setChecked(vrd p.GetAllowMultiConnection());155 /* Remote Desktop Settings */ 156 CVRDEServer vrdeServer = mMachine.GetVRDEServer(); 157 if (!vrdeServer.isNull()) 158 { 159 mCbVRDE->setChecked (vrdeServer.GetEnabled()); 160 mLeVRDEPort->setText (vrdeServer.GetVRDEProperty("TCP/Ports")); 161 mCbVRDEMethod->setCurrentIndex (mCbVRDEMethod-> 162 findText (vboxGlobal().toString (vrdeServer.GetAuthType()))); 163 mLeVRDETimeout->setText (QString::number (vrdeServer.GetAuthTimeout())); 164 mCbMultipleConn->setChecked(vrdeServer.GetAllowMultiConnection()); 165 165 } 166 166 else … … 187 187 #endif 188 188 189 /* VRD PSettings */190 CVRD PServer vrdp = mMachine.GetVRDPServer();191 if (!vrd p.isNull())192 { 193 vrd p.SetEnabled (mCbVRDP->isChecked());194 vrd p.SetPorts (mLeVRDPPort->text());195 vrd p.SetAuthType (vboxGlobal().toVRDPAuthType (mCbVRDPMethod->currentText()));196 vrd p.SetAuthTimeout (mLeVRDPTimeout->text().toULong());197 vrd p.SetAllowMultiConnection(mCbMultipleConn->isChecked());189 /* VRDE Settings */ 190 CVRDEServer vrdeServer = mMachine.GetVRDEServer(); 191 if (!vrdeServer.isNull()) 192 { 193 vrdeServer.SetEnabled (mCbVRDE->isChecked()); 194 vrdeServer.SetVRDEProperty("TCP/Ports", mLeVRDEPort->text()); 195 vrdeServer.SetAuthType (vboxGlobal().toAuthType (mCbVRDEMethod->currentText())); 196 vrdeServer.SetAuthTimeout (mLeVRDETimeout->text().toULong()); 197 vrdeServer.SetAllowMultiConnection(mCbMultipleConn->isChecked()); 198 198 } 199 199 } … … 208 208 mValidator, SLOT (revalidate())); 209 209 #endif 210 connect (mCbVRD P, SIGNAL (toggled (bool)),211 mValidator, SLOT (revalidate())); 212 connect (mLeVRD PPort, SIGNAL (textChanged (const QString&)),213 mValidator, SLOT (revalidate())); 214 connect (mLeVRD PTimeout, SIGNAL (textChanged (const QString&)),210 connect (mCbVRDE, SIGNAL (toggled (bool)), 211 mValidator, SLOT (revalidate())); 212 connect (mLeVRDEPort, SIGNAL (textChanged (const QString&)), 213 mValidator, SLOT (revalidate())); 214 connect (mLeVRDETimeout, SIGNAL (textChanged (const QString&)), 215 215 mValidator, SLOT (revalidate())); 216 216 } … … 261 261 #ifdef VBOX_WITH_VIDEOHWACCEL 262 262 setTabOrder (mCb3D, mCb2DVideo); 263 setTabOrder (mCb2DVideo, mCbVRD P);263 setTabOrder (mCb2DVideo, mCbVRDE); 264 264 #else 265 setTabOrder (mCb3D, mCbVRD P);265 setTabOrder (mCb3D, mCbVRDE); 266 266 #endif 267 267 268 268 /* Remote display tab-order */ 269 setTabOrder (mCbVRD P, mLeVRDPPort);270 setTabOrder (mLeVRD PPort, mCbVRDPMethod);271 setTabOrder (mCbVRD PMethod, mLeVRDPTimeout);272 setTabOrder (mLeVRD PTimeout, mCbMultipleConn);269 setTabOrder (mCbVRDE, mLeVRDEPort); 270 setTabOrder (mLeVRDEPort, mCbVRDEMethod); 271 setTabOrder (mCbVRDEMethod, mLeVRDETimeout); 272 setTabOrder (mLeVRDETimeout, mCbMultipleConn); 273 273 } 274 274 … … 284 284 mLbMonitorsMax->setText (tr ("<qt>%1</qt>").arg (sys.GetMaxGuestMonitors())); 285 285 286 mCbVRD PMethod->setItemText (0,287 vboxGlobal().toString (K VRDPAuthType_Null));288 mCbVRD PMethod->setItemText (1,289 vboxGlobal().toString (K VRDPAuthType_External));290 mCbVRD PMethod->setItemText (2,291 vboxGlobal().toString (K VRDPAuthType_Guest));286 mCbVRDEMethod->setItemText (0, 287 vboxGlobal().toString (KAuthType_Null)); 288 mCbVRDEMethod->setItemText (1, 289 vboxGlobal().toString (KAuthType_External)); 290 mCbVRDEMethod->setItemText (2, 291 vboxGlobal().toString (KAuthType_Guest)); 292 292 } 293 293 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsDisplay.ui
r32242 r33386 324 324 </property> 325 325 <item> 326 <widget class="QCheckBox" name="mCbVRD P">326 <widget class="QCheckBox" name="mCbVRDE"> 327 327 <property name="whatsThis"> 328 328 <string>When checked, the VM will act as a Remote Desktop Protocol (RDP) server, allowing remote clients to connect and operate the VM (when it is running) using a standard RDP client.</string> … … 373 373 </property> 374 374 <property name="buddy"> 375 <cstring>mLeVRD PPort</cstring>375 <cstring>mLeVRDEPort</cstring> 376 376 </property> 377 377 </widget> 378 378 </item> 379 379 <item row="1" column="2"> 380 <widget class="QLineEdit" name="mLeVRD PPort">380 <widget class="QLineEdit" name="mLeVRDEPort"> 381 381 <property name="whatsThis"> 382 382 <string>The VRDP Server port number. You may specify <tt>0</tt> (zero), to select port 3389, the standard port for RDP.</string> … … 393 393 </property> 394 394 <property name="buddy"> 395 <cstring>mCbVRD PMethod</cstring>395 <cstring>mCbVRDEMethod</cstring> 396 396 </property> 397 397 </widget> 398 398 </item> 399 399 <item row="2" column="2"> 400 <widget class="QComboBox" name="mCbVRD PMethod">400 <widget class="QComboBox" name="mCbVRDEMethod"> 401 401 <property name="sizePolicy"> 402 402 <sizepolicy hsizetype="Expanding" vsizetype="Fixed"> … … 419 419 </property> 420 420 <property name="buddy"> 421 <cstring>mLeVRD PTimeout</cstring>421 <cstring>mLeVRDETimeout</cstring> 422 422 </property> 423 423 </widget> 424 424 </item> 425 425 <item row="3" column="2"> 426 <widget class="QLineEdit" name="mLeVRD PTimeout">426 <widget class="QLineEdit" name="mLeVRDETimeout"> 427 427 <property name="whatsThis"> 428 428 <string>Specifies the timeout for guest authentication, in milliseconds.</string> … … 501 501 <connections> 502 502 <connection> 503 <sender>mCbVRD P</sender>503 <sender>mCbVRDE</sender> 504 504 <signal>toggled(bool)</signal> 505 505 <receiver>mWtVRDPServer</receiver> -
trunk/src/VBox/Main/ConsoleImpl.cpp
r33108 r33386 276 276 kOnCPUChanged, 277 277 kOnCPUExecutionCapChanged, 278 kOnVRD PServerChanged,279 kOn RemoteDisplayInfoChanged,278 kOnVRDEServerChanged, 279 kOnVRDEServerInfoChanged, 280 280 kOnUSBControllerChanged, 281 281 kOnUSBDeviceStateChanged, … … 426 426 427 427 #ifdef VBOX_WITH_VRDP 428 rc = mMachine->COMGETTER(VRD PServer)(unconst(mVRDPServer).asOutParam());428 rc = mMachine->COMGETTER(VRDEServer)(unconst(mVRDEServer).asOutParam()); 429 429 AssertComRCReturnRC(rc); 430 430 #endif … … 453 453 AssertComRCReturnRC(rc); 454 454 455 unconst(m RemoteDisplayInfo).createObject();456 rc = m RemoteDisplayInfo->init(this);455 unconst(mVRDEServerInfo).createObject(); 456 rc = mVRDEServerInfo->init(this); 457 457 AssertComRCReturnRC(rc); 458 458 … … 555 555 mUSBDevices.clear(); 556 556 557 if (m RemoteDisplayInfo)558 { 559 m RemoteDisplayInfo->uninit();560 unconst(m RemoteDisplayInfo).setNull();;557 if (mVRDEServerInfo) 558 { 559 mVRDEServerInfo->uninit(); 560 unconst(mVRDEServerInfo).setNull();; 561 561 } 562 562 … … 598 598 599 599 #ifdef VBOX_WITH_VRDP 600 unconst(mVRD PServer).setNull();600 unconst(mVRDEServer).setNull(); 601 601 #endif 602 602 … … 644 644 { 645 645 Bstr clientName; 646 m RemoteDisplayInfo->COMGETTER(ClientName)(clientName.asOutParam());646 mVRDEServerInfo->COMGETTER(ClientName)(clientName.asOutParam()); 647 647 648 648 mMachine->SetGuestProperty(Bstr(pszPropertyName).raw(), … … 753 753 AssertComRCReturn(hrc, VERR_ACCESS_DENIED); 754 754 755 VRDPAuthType_T authType = VRDPAuthType_Null;756 hrc = mVRD PServer->COMGETTER(AuthType)(&authType);755 AuthType_T authType = AuthType_Null; 756 hrc = mVRDEServer->COMGETTER(AuthType)(&authType); 757 757 AssertComRCReturn(hrc, VERR_ACCESS_DENIED); 758 758 759 759 ULONG authTimeout = 0; 760 hrc = mVRD PServer->COMGETTER(AuthTimeout)(&authTimeout);760 hrc = mVRDEServer->COMGETTER(AuthTimeout)(&authTimeout); 761 761 AssertComRCReturn(hrc, VERR_ACCESS_DENIED); 762 762 … … 768 768 LogRel(("VRDPAUTH: User: [%s]. Domain: [%s]. Authentication type: [%s]\n", 769 769 pszUser, pszDomain, 770 authType == VRDPAuthType_Null?770 authType == AuthType_Null? 771 771 "Null": 772 (authType == VRDPAuthType_External?772 (authType == AuthType_External? 773 773 "External": 774 (authType == VRDPAuthType_Guest?774 (authType == AuthType_Guest? 775 775 "Guest": 776 776 "INVALID" … … 781 781 switch (authType) 782 782 { 783 case VRDPAuthType_Null:783 case AuthType_Null: 784 784 { 785 785 result = VRDPAuthAccessGranted; … … 787 787 } 788 788 789 case VRDPAuthType_External:789 case AuthType_External: 790 790 { 791 791 /* Call the external library. */ … … 802 802 } /* pass through */ 803 803 804 case VRDPAuthType_Guest:804 case AuthType_Guest: 805 805 { 806 806 guestJudgement = VRDPAuthGuestNotReacted; … … 848 848 } 849 849 850 if (authType == VRDPAuthType_External)850 if (authType == AuthType_External) 851 851 { 852 852 LogRel(("VRDPAUTH: Guest judgement %d.\n", guestJudgement)); … … 886 886 /* Multiconnection check must be made after authentication, so bad clients would not interfere with a good one. */ 887 887 BOOL allowMultiConnection = FALSE; 888 hrc = mVRD PServer->COMGETTER(AllowMultiConnection)(&allowMultiConnection);888 hrc = mVRDEServer->COMGETTER(AllowMultiConnection)(&allowMultiConnection); 889 889 AssertComRCReturn(hrc, VERR_ACCESS_DENIED); 890 890 891 891 BOOL reuseSingleConnection = FALSE; 892 hrc = mVRD PServer->COMGETTER(ReuseSingleConnection)(&reuseSingleConnection);892 hrc = mVRDEServer->COMGETTER(ReuseSingleConnection)(&reuseSingleConnection); 893 893 AssertComRCReturn(hrc, VERR_ACCESS_DENIED); 894 894 … … 1054 1054 AssertComRC(hrc); 1055 1055 1056 VRDPAuthType_T authType = VRDPAuthType_Null;1057 hrc = mVRD PServer->COMGETTER(AuthType)(&authType);1056 AuthType_T authType = AuthType_Null; 1057 hrc = mVRDEServer->COMGETTER(AuthType)(&authType); 1058 1058 AssertComRC(hrc); 1059 1059 1060 if (authType == VRDPAuthType_External)1060 if (authType == AuthType_External) 1061 1061 mConsoleVRDPServer->AuthDisconnect(uuid, u32ClientId); 1062 1062 … … 1624 1624 } 1625 1625 1626 STDMETHODIMP Console::COMGETTER( RemoteDisplayInfo)(IRemoteDisplayInfo **aRemoteDisplayInfo)1627 { 1628 CheckComArgOutPointerValid(a RemoteDisplayInfo);1626 STDMETHODIMP Console::COMGETTER(VRDEServerInfo)(IVRDEServerInfo **aVRDEServerInfo) 1627 { 1628 CheckComArgOutPointerValid(aVRDEServerInfo); 1629 1629 1630 1630 AutoCaller autoCaller(this); … … 1632 1632 1633 1633 /* mDisplay is constant during life time, no need to lock */ 1634 m RemoteDisplayInfo.queryInterfaceTo(aRemoteDisplayInfo);1634 mVRDEServerInfo.queryInterfaceTo(aVRDEServerInfo); 1635 1635 1636 1636 return S_OK; … … 3938 3938 3939 3939 /** 3940 * Called by IInternalSessionControl::OnVRD PServerChange().3940 * Called by IInternalSessionControl::OnVRDEServerChange(). 3941 3941 * 3942 3942 * @note Locks this object for writing. 3943 3943 */ 3944 HRESULT Console::onVRD PServerChange(BOOL aRestart)3944 HRESULT Console::onVRDEServerChange(BOOL aRestart) 3945 3945 { 3946 3946 AutoCaller autoCaller(this); … … 3951 3951 HRESULT rc = S_OK; 3952 3952 3953 if ( mVRD PServer3953 if ( mVRDEServer 3954 3954 && ( mMachineState == MachineState_Running 3955 3955 || mMachineState == MachineState_Teleporting … … 3960 3960 BOOL vrdpEnabled = FALSE; 3961 3961 3962 rc = mVRD PServer->COMGETTER(Enabled)(&vrdpEnabled);3962 rc = mVRDEServer->COMGETTER(Enabled)(&vrdpEnabled); 3963 3963 ComAssertComRCRetRC(rc); 3964 3964 … … 3991 3991 /* notify console callbacks on success */ 3992 3992 if (SUCCEEDED(rc)) 3993 CONSOLE_DO_CALLBACKS0(OnVRD PServerChanged);3993 CONSOLE_DO_CALLBACKS0(OnVRDEServerChanged); 3994 3994 3995 3995 return rc; … … 3999 3999 * @note Locks this object for reading. 4000 4000 */ 4001 void Console::on RemoteDisplayInfoChange()4001 void Console::onVRDEServerInfoChange() 4002 4002 { 4003 4003 AutoCaller autoCaller(this); … … 4006 4006 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 4007 4007 4008 CONSOLE_DO_CALLBACKS0(On RemoteDisplayInfoChanged);4008 CONSOLE_DO_CALLBACKS0(OnVRDEServerInfoChanged); 4009 4009 } 4010 4010 … … 7431 7431 7432 7432 #ifdef VBOX_WITH_VRDP 7433 7434 7433 /* Create the VRDP server. In case of headless operation, this will 7435 7434 * also create the framebuffer, required at VM creation. … … 7449 7448 Utf8Str errMsg; 7450 7449 Bstr bstr; 7451 console->mVRD PServer->COMGETTER(Ports)(bstr.asOutParam());7450 console->mVRDEServer->GetVRDEProperty(Bstr("TCP/Ports").raw(), bstr.asOutParam()); 7452 7451 Utf8Str ports = bstr; 7453 errMsg = Utf8StrFmt(tr("V RDP server can't bind to aport: %s"),7452 errMsg = Utf8StrFmt(tr("VirtualBox Remote Desktop Extension server can't bind to the port: %s"), 7454 7453 ports.c_str()); 7455 LogRel((" Warning: failed to launch VRDPserver (%Rrc): '%s'\n",7454 LogRel(("VRDE: Warning: failed to launch VRDE server (%Rrc): '%s'\n", 7456 7455 vrc, errMsg.c_str())); 7457 7456 } 7457 else if (vrc == VINF_NOT_SUPPORTED) 7458 { 7459 /* This means that the VRDE is not installed. */ 7460 LogRel(("VRDE: VirtualBox Remote Desktop Extension is not available.\n")); 7461 } 7458 7462 else if (RT_FAILURE(vrc)) 7459 7463 { 7464 /* Fail, if the server is installed but can't start. */ 7460 7465 Utf8Str errMsg; 7461 7466 switch (vrc) … … 7463 7468 case VERR_FILE_NOT_FOUND: 7464 7469 { 7465 errMsg = Utf8StrFmt(tr("Could not load the VRDP library")); 7470 /* VRDE library file is missing. */ 7471 errMsg = Utf8StrFmt(tr("Could not find the VirtualBox Remote Desktop Extension library.")); 7466 7472 break; 7467 7473 } 7468 7474 default: 7469 errMsg = Utf8StrFmt(tr("Failed to launch VRDPserver (%Rrc)"),7475 errMsg = Utf8StrFmt(tr("Failed to launch Remote Desktop Extension server (%Rrc)"), 7470 7476 vrc); 7471 7477 } 7472 LogRel((" Failed to launch VRDP server(%Rrc), error message: '%s'\n",7478 LogRel(("VRDE: Failed: (%Rrc), error message: '%s'\n", 7473 7479 vrc, errMsg.c_str())); 7474 7480 throw setErrorStatic(E_FAIL, errMsg.c_str()); -
trunk/src/VBox/Main/ConsoleVRDPServer.cpp
r33005 r33386 582 582 case VRDE_QP_NETWORK_PORT: 583 583 { 584 /* This is obsolete, the VRD Pserver uses VRDE_QP_NETWORK_PORT_RANGE instead. */584 /* This is obsolete, the VRDE server uses VRDE_QP_NETWORK_PORT_RANGE instead. */ 585 585 ULONG port = 0; 586 586 … … 601 601 { 602 602 com::Bstr bstr; 603 server->mConsole->getVRD PServer()->COMGETTER(NetAddress)(bstr.asOutParam());603 server->mConsole->getVRDEServer()->GetVRDEProperty(Bstr("TCP/Address").raw(), bstr.asOutParam()); 604 604 605 605 /* The server expects UTF8. */ … … 650 650 { 651 651 com::Bstr bstr; 652 HRESULT hrc = server->mConsole->getVRD PServer()->COMGETTER(Ports)(bstr.asOutParam());652 HRESULT hrc = server->mConsole->getVRDEServer()->GetVRDEProperty(Bstr("TCP/Ports").raw(), bstr.asOutParam()); 653 653 654 654 if (hrc != S_OK) … … 692 692 BOOL fVideoEnabled = FALSE; 693 693 694 server->mConsole->getVRD PServer()->COMGETTER(VideoChannel)(&fVideoEnabled);694 server->mConsole->getVRDEServer()->COMGETTER(VideoChannel)(&fVideoEnabled); 695 695 696 696 if (cbBuffer >= sizeof(uint32_t)) … … 711 711 ULONG ulQuality = 0; 712 712 713 server->mConsole->getVRD PServer()->COMGETTER(VideoChannelQuality)(&ulQuality);713 server->mConsole->getVRDEServer()->COMGETTER(VideoChannelQuality)(&ulQuality); 714 714 715 715 if (cbBuffer >= sizeof(uint32_t)) … … 844 844 } 845 845 846 server->mConsole->on RemoteDisplayInfoChange();846 server->mConsole->onVRDEServerInfoChange(); 847 847 } break; 848 848 … … 1256 1256 #ifdef VBOX_WITH_VRDP 1257 1257 int rc = VINF_SUCCESS; 1258 IVRDPServer *vrdpserver = mConsole->getVRDPServer(); 1259 Assert(vrdpserver); 1260 BOOL vrdpEnabled = FALSE; 1261 1262 HRESULT rc2 = vrdpserver->COMGETTER(Enabled)(&vrdpEnabled); 1263 AssertComRC(rc2); 1264 1265 if (SUCCEEDED(rc2) && vrdpEnabled) 1266 { 1267 if (loadVRDPLibrary()) 1258 1259 /* 1260 * Check that a VRDE library name is set. 1261 */ 1262 Utf8Str filename; 1263 1264 ComPtr<IMachine> machine; 1265 HRESULT hrc = mConsole->COMGETTER(Machine)(machine.asOutParam()); 1266 1267 if (SUCCEEDED(hrc)) 1268 { 1269 ComPtr<IVirtualBox> virtualBox; 1270 hrc = machine->COMGETTER(Parent)(virtualBox.asOutParam()); 1271 1272 if (SUCCEEDED(hrc)) 1273 { 1274 ComPtr<ISystemProperties> systemProperties; 1275 hrc = virtualBox->COMGETTER(SystemProperties)(systemProperties.asOutParam()); 1276 1277 if (SUCCEEDED(hrc)) 1278 { 1279 Bstr library; 1280 hrc = systemProperties->COMGETTER(DefaultVRDELibrary)(library.asOutParam()); 1281 1282 if (SUCCEEDED(hrc)) 1283 { 1284 filename = library; 1285 } 1286 } 1287 } 1288 } 1289 1290 if (FAILED(hrc) || filename.isEmpty()) 1291 { 1292 return VINF_NOT_SUPPORTED; 1293 } 1294 1295 /* 1296 * Load the VRDE library and start the server, if it is enabled. 1297 */ 1298 IVRDEServer *server = mConsole->getVRDEServer(); 1299 Assert(server); 1300 BOOL fEnabled = FALSE; 1301 1302 hrc = server->COMGETTER(Enabled)(&fEnabled); 1303 AssertComRC(hrc); 1304 1305 if (SUCCEEDED(hrc) && fEnabled) 1306 { 1307 rc = loadVRDPLibrary(filename.c_str()); 1308 1309 if (RT_SUCCESS(rc)) 1268 1310 { 1269 1311 rc = mpfnVRDECreateServer(&mCallbacks.header, this, (VRDEINTERFACEHDR **)&mpEntryPoints, &mhServer); … … 1276 1318 } 1277 1319 else if (rc != VERR_NET_ADDRESS_IN_USE) 1278 AssertMsgFailed(("Could not start VRDP server: rc = %Rrc\n", rc)); 1279 } 1280 else 1281 { 1282 AssertMsgFailed(("Could not load the VRDP library\n")); 1283 rc = VERR_FILE_NOT_FOUND; 1320 { 1321 LogRel(("VRDE: Could not start VRDP server rc = %Rrc\n", rc)); 1322 } 1284 1323 } 1285 1324 } … … 1509 1548 1510 1549 Bstr authLibrary; 1511 systemProperties->COMGETTER( RemoteDisplayAuthLibrary)(authLibrary.asOutParam());1550 systemProperties->COMGETTER(VRDEAuthLibrary)(authLibrary.asOutParam()); 1512 1551 1513 1552 Utf8Str filename = authLibrary; … … 2131 2170 2132 2171 #ifdef VBOX_WITH_VRDP 2133 /* note: static function now! */ 2134 bool ConsoleVRDPServer::loadVRDPLibrary(void) 2172 /* static */ int ConsoleVRDPServer::loadVRDPLibrary(const char *pszLibraryName) 2135 2173 { 2136 2174 int rc = VINF_SUCCESS; … … 2138 2176 if (!mVRDPLibrary) 2139 2177 { 2140 rc = SUPR3HardenedLdrLoadAppPriv( "VBoxVRDP", &mVRDPLibrary);2178 rc = SUPR3HardenedLdrLoadAppPriv(pszLibraryName, &mVRDPLibrary); 2141 2179 2142 2180 if (RT_SUCCESS(rc)) 2143 2181 { 2144 LogFlow(("VRDPServer::loadLibrary(): successfully loaded VRDP library.\n"));2145 2146 2182 struct SymbolEntry 2147 2183 { … … 2163 2199 rc = RTLdrGetSymbol(mVRDPLibrary, symbols[i].name, symbols[i].ppfn); 2164 2200 2165 AssertMsgRC(rc, ("Error resolving VRDP symbol %s\n", symbols[i].name));2166 2167 2201 if (RT_FAILURE(rc)) 2168 2202 { 2203 LogRel(("VRDE: Error resolving symbol '%s', rc %Rrc.\n", symbols[i].name, rc)); 2169 2204 break; 2170 2205 } … … 2173 2208 else 2174 2209 { 2175 LogRel(("VRDPServer::loadLibrary(): failed to load VRDP library! VRDP not available: rc = %Rrc\n", rc)); 2210 if (rc != VERR_FILE_NOT_FOUND) 2211 { 2212 LogRel(("VRDE: Error loading the library '%s' rc = %Rrc.\n", pszLibraryName, rc)); 2213 } 2214 2176 2215 mVRDPLibrary = NULL; 2177 2216 } 2178 2217 } 2179 2218 2180 // just to be safe2181 2219 if (RT_FAILURE(rc)) 2182 2220 { … … 2188 2226 } 2189 2227 2190 return (mVRDPLibrary != NULL);2228 return rc; 2191 2229 } 2192 2230 #endif /* VBOX_WITH_VRDP */ 2193 2231 2194 2232 /* 2195 * I RemoteDisplayInfo implementation.2233 * IVRDEServerInfo implementation. 2196 2234 */ 2197 2235 // constructor / destructor 2198 2236 ///////////////////////////////////////////////////////////////////////////// 2199 2237 2200 RemoteDisplayInfo::RemoteDisplayInfo()2238 VRDEServerInfo::VRDEServerInfo() 2201 2239 : mParent(NULL) 2202 2240 { 2203 2241 } 2204 2242 2205 RemoteDisplayInfo::~RemoteDisplayInfo()2206 { 2207 } 2208 2209 2210 HRESULT RemoteDisplayInfo::FinalConstruct()2243 VRDEServerInfo::~VRDEServerInfo() 2244 { 2245 } 2246 2247 2248 HRESULT VRDEServerInfo::FinalConstruct() 2211 2249 { 2212 2250 return S_OK; 2213 2251 } 2214 2252 2215 void RemoteDisplayInfo::FinalRelease()2253 void VRDEServerInfo::FinalRelease() 2216 2254 { 2217 2255 uninit(); … … 2224 2262 * Initializes the guest object. 2225 2263 */ 2226 HRESULT RemoteDisplayInfo::init(Console *aParent)2264 HRESULT VRDEServerInfo::init(Console *aParent) 2227 2265 { 2228 2266 LogFlowThisFunc(("aParent=%p\n", aParent)); … … 2246 2284 * Called either from FinalRelease() or by the parent when it gets destroyed. 2247 2285 */ 2248 void RemoteDisplayInfo::uninit()2286 void VRDEServerInfo::uninit() 2249 2287 { 2250 2288 LogFlowThisFunc(("\n")); … … 2258 2296 } 2259 2297 2260 // I RemoteDisplayInfo properties2298 // IVRDEServerInfo properties 2261 2299 ///////////////////////////////////////////////////////////////////////////// 2262 2300 2263 2301 #define IMPL_GETTER_BOOL(_aType, _aName, _aIndex) \ 2264 STDMETHODIMP RemoteDisplayInfo::COMGETTER(_aName)(_aType *a##_aName) \2302 STDMETHODIMP VRDEServerInfo::COMGETTER(_aName)(_aType *a##_aName) \ 2265 2303 { \ 2266 2304 if (!a##_aName) \ … … 2286 2324 2287 2325 #define IMPL_GETTER_SCALAR(_aType, _aName, _aIndex, _aValueMask) \ 2288 STDMETHODIMP RemoteDisplayInfo::COMGETTER(_aName)(_aType *a##_aName) \2326 STDMETHODIMP VRDEServerInfo::COMGETTER(_aName)(_aType *a##_aName) \ 2289 2327 { \ 2290 2328 if (!a##_aName) \ … … 2311 2349 2312 2350 #define IMPL_GETTER_BSTR(_aType, _aName, _aIndex) \ 2313 STDMETHODIMP RemoteDisplayInfo::COMGETTER(_aName)(_aType *a##_aName) \2351 STDMETHODIMP VRDEServerInfo::COMGETTER(_aName)(_aType *a##_aName) \ 2314 2352 { \ 2315 2353 if (!a##_aName) \ … … 2338 2376 if (!pchBuffer) \ 2339 2377 { \ 2340 Log((" RemoteDisplayInfo::"\2378 Log(("VRDEServerInfo::" \ 2341 2379 #_aName \ 2342 2380 ": Failed to allocate memory %d bytes\n", cbOut)); \ -
trunk/src/VBox/Main/MachineImpl.cpp
r33312 r33386 2147 2147 } 2148 2148 2149 STDMETHODIMP Machine::COMGETTER(VRD PServer)(IVRDPServer **vrdpServer)2149 STDMETHODIMP Machine::COMGETTER(VRDEServer)(IVRDEServer **vrdeServer) 2150 2150 { 2151 2151 #ifdef VBOX_WITH_VRDP 2152 if (!vrd pServer)2152 if (!vrdeServer) 2153 2153 return E_POINTER; 2154 2154 … … 2158 2158 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 2159 2159 2160 Assert(!!mVRD PServer);2161 mVRD PServer.queryInterfaceTo(vrdpServer);2160 Assert(!!mVRDEServer); 2161 mVRDEServer.queryInterfaceTo(vrdeServer); 2162 2162 2163 2163 return S_OK; 2164 2164 #else 2165 NOREF(vrd pServer);2165 NOREF(vrde); 2166 2166 ReturnComNotImplemented(); 2167 2167 #endif … … 5988 5988 || strType == "capture" 5989 5989 #ifdef VBOX_WITH_VRDP 5990 || strType == "vrdp" 5990 || strType == "vrdp" /* Deprecated. Same as headless. */ 5991 5991 #endif 5992 5992 ) 5993 5993 { 5994 /* On pre-4.0 the "headless" type was used for passing "--vrdp off" to VBoxHeadless to let it work in OSE, 5995 * which did not contain VRDP server. In VBox 4.0 the remote desktop server (VRDE) is optional, 5996 * and a VM works even if the server has not been installed. 5997 * So in 4.0 the "headless" behavior remains the same for default VBox installations. 5998 * Only if a VRDE has been installed and the VM enables it, the "headless" will work 5999 * differently in 4.0 and 3.x. 6000 */ 5994 6001 const char VBoxHeadless_exe[] = "VBoxHeadless" HOSTSUFF_EXE; 5995 6002 Assert(sz >= sizeof(VBoxHeadless_exe)); … … 5997 6004 5998 6005 Utf8Str idStr = mData->mUuid.toString(); 5999 /* Leave space for 2 args, as "headless" needs --vrdp off on non-OSE. */ 6000 const char * args[] = {szPath, "--comment", mUserData->s.strName.c_str(), "--startvm", idStr.c_str(), 0, 0, 0 }; 6001 #ifdef VBOX_WITH_VRDP 6002 if (strType == "headless") 6003 { 6004 unsigned pos = RT_ELEMENTS(args) - 3; 6005 args[pos++] = "--vrdp"; 6006 args[pos] = "off"; 6007 } 6008 #endif 6006 /* Leave space for "--capture" arg. */ 6007 const char * args[] = {szPath, "--comment", mUserData->s.strName.c_str(), "--startvm", idStr.c_str(), 0, 0 }; 6009 6008 if (strType == "capture") 6010 6009 { 6011 unsigned pos = RT_ELEMENTS(args) - 3;6010 unsigned pos = RT_ELEMENTS(args) - 2; 6012 6011 args[pos] = "--capture"; 6013 6012 } … … 6541 6540 6542 6541 #ifdef VBOX_WITH_VRDP 6543 /* create an associated VRD PServerobject (default is disabled) */6544 unconst(mVRD PServer).createObject();6545 mVRD PServer->init(this);6542 /* create an associated VRDE object (default is disabled) */ 6543 unconst(mVRDEServer).createObject(); 6544 mVRDEServer->init(this); 6546 6545 #endif 6547 6546 … … 6640 6639 6641 6640 #ifdef VBOX_WITH_VRDP 6642 if (mVRD PServer)6643 { 6644 mVRD PServer->uninit();6645 unconst(mVRD PServer).setNull();6641 if (mVRDEServer) 6642 { 6643 mVRDEServer->uninit(); 6644 unconst(mVRDEServer).setNull(); 6646 6645 } 6647 6646 #endif … … 7150 7149 7151 7150 #ifdef VBOX_WITH_VRDP 7152 /* RemoteDisplay*/7153 rc = mVRD PServer->loadSettings(data.vrdpSettings);7151 /* VRDEServer */ 7152 rc = mVRDEServer->loadSettings(data.vrdeSettings); 7154 7153 if (FAILED(rc)) return rc; 7155 7154 #endif … … 8183 8182 8184 8183 #ifdef VBOX_WITH_VRDP 8185 /* VRD Psettings (optional) */8186 rc = mVRD PServer->saveSettings(data.vrdpSettings);8184 /* VRDEServer settings (optional) */ 8185 rc = mVRDEServer->saveSettings(data.vrdeSettings); 8187 8186 if (FAILED(rc)) throw rc; 8188 8187 #endif … … 9329 9328 9330 9329 #ifdef VBOX_WITH_VRDP 9331 if (mVRD PServer && (mData->flModifications & IsModified_VRDPServer))9332 mVRD PServer->rollback();9330 if (mVRDEServer && (mData->flModifications & IsModified_VRDEServer)) 9331 mVRDEServer->rollback(); 9333 9332 #endif 9334 9333 … … 9381 9380 that->onSharedFolderChange(); 9382 9381 9383 if (flModifications & IsModified_VRD PServer)9384 that->onVRD PServerChange(/* aRestart */ TRUE);9382 if (flModifications & IsModified_VRDEServer) 9383 that->onVRDEServerChange(/* aRestart */ TRUE); 9385 9384 if (flModifications & IsModified_USB) 9386 9385 that->onUSBControllerChange(); … … 9431 9430 mBIOSSettings->commit(); 9432 9431 #ifdef VBOX_WITH_VRDP 9433 mVRD PServer->commit();9432 mVRDEServer->commit(); 9434 9433 #endif 9435 9434 mAudioAdapter->commit(); … … 9563 9562 mBIOSSettings->copyFrom(aThat->mBIOSSettings); 9564 9563 #ifdef VBOX_WITH_VRDP 9565 mVRD PServer->copyFrom(aThat->mVRDPServer);9564 mVRDEServer->copyFrom(aThat->mVRDEServer); 9566 9565 #endif 9567 9566 mAudioAdapter->copyFrom(aThat->mAudioAdapter); … … 9892 9891 mBIOSSettings->init(this, aMachine->mBIOSSettings); 9893 9892 #ifdef VBOX_WITH_VRDP 9894 /* create another VRD PServer object that will be mutable */9895 unconst(mVRD PServer).createObject();9896 mVRD PServer->init(this, aMachine->mVRDPServer);9893 /* create another VRDEServer object that will be mutable */ 9894 unconst(mVRDEServer).createObject(); 9895 mVRDEServer->init(this, aMachine->mVRDEServer); 9897 9896 #endif 9898 9897 /* create another audio adapter object that will be mutable */ … … 11082 11081 * @note Locks this object for reading. 11083 11082 */ 11084 HRESULT SessionMachine::onVRD PServerChange(BOOL aRestart)11083 HRESULT SessionMachine::onVRDEServerChange(BOOL aRestart) 11085 11084 { 11086 11085 LogFlowThisFunc(("\n")); … … 11099 11098 return S_OK; 11100 11099 11101 return directControl->OnVRD PServerChange(aRestart);11100 return directControl->OnVRDEServerChange(aRestart); 11102 11101 } 11103 11102 -
trunk/src/VBox/Main/SessionImpl.cpp
r32885 r33386 610 610 } 611 611 612 STDMETHODIMP Session::OnVRD PServerChange(BOOL aRestart)612 STDMETHODIMP Session::OnVRDEServerChange(BOOL aRestart) 613 613 { 614 614 LogFlowThisFunc(("\n")); … … 621 621 AssertReturn(mType == SessionType_WriteLock, VBOX_E_INVALID_OBJECT_STATE); 622 622 623 return mConsole->onVRD PServerChange(aRestart);623 return mConsole->onVRDEServerChange(aRestart); 624 624 } 625 625 -
trunk/src/VBox/Main/SnapshotImpl.cpp
r33318 r33386 1007 1007 1008 1008 #ifdef VBOX_WITH_VRDP 1009 unconst(mVRD PServer).createObject();1010 mVRD PServer->initCopy(this, mPeer->mVRDPServer);1009 unconst(mVRDEServer).createObject(); 1010 mVRDEServer->initCopy(this, mPeer->mVRDEServer); 1011 1011 #endif 1012 1012 … … 1100 1100 1101 1101 #ifdef VBOX_WITH_VRDP 1102 unconst(mVRD PServer).createObject();1103 mVRD PServer->init(this);1102 unconst(mVRDEServer).createObject(); 1103 mVRDEServer->init(this); 1104 1104 #endif 1105 1105 -
trunk/src/VBox/Main/SystemPropertiesImpl.cpp
r33344 r33386 87 87 setDefaultHardDiskFormat(Utf8Str::Empty); 88 88 89 setRemoteDisplayAuthLibrary(Utf8Str::Empty); 89 setVRDEAuthLibrary(Utf8Str::Empty); 90 setDefaultVRDELibrary(Utf8Str::Empty); 90 91 91 92 m->ulLogHistoryCount = 3; … … 666 667 } 667 668 668 STDMETHODIMP SystemProperties::COMGETTER( RemoteDisplayAuthLibrary)(BSTR *aRemoteDisplayAuthLibrary)669 { 670 CheckComArgOutPointerValid(a RemoteDisplayAuthLibrary);671 672 AutoCaller autoCaller(this); 673 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 674 675 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 676 677 m->str RemoteDisplayAuthLibrary.cloneTo(aRemoteDisplayAuthLibrary);678 679 return S_OK; 680 } 681 682 STDMETHODIMP SystemProperties::COMSETTER( RemoteDisplayAuthLibrary)(IN_BSTR aRemoteDisplayAuthLibrary)669 STDMETHODIMP SystemProperties::COMGETTER(VRDEAuthLibrary)(BSTR *aVRDEAuthLibrary) 670 { 671 CheckComArgOutPointerValid(aVRDEAuthLibrary); 672 673 AutoCaller autoCaller(this); 674 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 675 676 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 677 678 m->strVRDEAuthLibrary.cloneTo(aVRDEAuthLibrary); 679 680 return S_OK; 681 } 682 683 STDMETHODIMP SystemProperties::COMSETTER(VRDEAuthLibrary)(IN_BSTR aVRDEAuthLibrary) 683 684 { 684 685 AutoCaller autoCaller(this); … … 686 687 687 688 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 688 HRESULT rc = set RemoteDisplayAuthLibrary(aRemoteDisplayAuthLibrary);689 HRESULT rc = setVRDEAuthLibrary(aVRDEAuthLibrary); 689 690 alock.release(); 690 691 … … 732 733 } 733 734 735 STDMETHODIMP SystemProperties::COMGETTER(DefaultVRDELibrary)(BSTR *aVRDELibrary) 736 { 737 CheckComArgOutPointerValid(aVRDELibrary); 738 739 AutoCaller autoCaller(this); 740 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 741 742 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 743 744 m->strDefaultVRDELibrary.cloneTo(aVRDELibrary); 745 746 return S_OK; 747 } 748 749 STDMETHODIMP SystemProperties::COMSETTER(DefaultVRDELibrary)(IN_BSTR aVRDELibrary) 750 { 751 AutoCaller autoCaller(this); 752 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 753 754 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 755 HRESULT rc = setDefaultVRDELibrary(aVRDELibrary); 756 alock.release(); 757 758 if (SUCCEEDED(rc)) 759 { 760 // VirtualBox::saveSettings() needs vbox write lock 761 AutoWriteLock vboxLock(mParent COMMA_LOCKVAL_SRC_POS); 762 rc = mParent->saveSettings(); 763 } 764 765 return rc; 766 } 767 734 768 STDMETHODIMP SystemProperties::COMGETTER(LogHistoryCount)(ULONG *count) 735 769 { … … 794 828 if (FAILED(rc)) return rc; 795 829 796 rc = set RemoteDisplayAuthLibrary(data.strRemoteDisplayAuthLibrary);830 rc = setVRDEAuthLibrary(data.strVRDEAuthLibrary); 797 831 if (FAILED(rc)) return rc; 798 832 799 833 rc = setWebServiceAuthLibrary(data.strWebServiceAuthLibrary); 834 if (FAILED(rc)) return rc; 835 836 rc = setDefaultVRDELibrary(data.strDefaultVRDELibrary); 800 837 if (FAILED(rc)) return rc; 801 838 … … 924 961 } 925 962 926 HRESULT SystemProperties::set RemoteDisplayAuthLibrary(const Utf8Str &aPath)963 HRESULT SystemProperties::setVRDEAuthLibrary(const Utf8Str &aPath) 927 964 { 928 965 if (!aPath.isEmpty()) 929 m->str RemoteDisplayAuthLibrary = aPath;966 m->strVRDEAuthLibrary = aPath; 930 967 else 931 m->strRemoteDisplayAuthLibrary = "VRDPAuth"; 968 m->strVRDEAuthLibrary = "VRDPAuth"; 969 970 return S_OK; 971 } 972 973 HRESULT SystemProperties::setDefaultVRDELibrary(const Utf8Str &aPath) 974 { 975 m->strDefaultVRDELibrary = aPath; 932 976 933 977 return S_OK; -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r33294 r33386 4456 4456 } 4457 4457 4458 STDMETHODIMP VirtualBox::VRDERegisterLibrary(IN_BSTR aName) 4459 { 4460 return E_FAIL; /* @todo VRDE */ 4461 } 4462 4463 STDMETHODIMP VirtualBox::VRDEUnregisterLibrary(IN_BSTR aName) 4464 { 4465 return E_FAIL; /* @todo VRDE */ 4466 } 4467 4468 STDMETHODIMP VirtualBox::VRDEListLibraries(ComSafeArrayOut(BSTR, aNames)) 4469 { 4470 return E_FAIL; /* @todo VRDE */ 4471 } 4472 4458 4473 /* vi: set tabstop=4 shiftwidth=4 expandtab: */ -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r33307 r33386 77 77 implementation, is used. 78 78 79 All the parts that a typical VirtualBox user interacts with (the Qt GUI ,80 the VBoxManage command-line interface and the VBoxVRDP server) are technically79 All the parts that a typical VirtualBox user interacts with (the Qt GUI 80 and the VBoxManage command-line interface) are technically 81 81 front-ends to the Main API and only use the interfaces that are documented 82 82 in this Main API documentation. This ensures that, with any given release … … 1374 1374 <interface 1375 1375 name="IVirtualBox" extends="$unknown" 1376 uuid=" 5e887b09-e3f3-4787-b9f3-8ade5d04d675"1376 uuid="2ecb8c49-ce8a-41fc-96da-9a438b44e4b1" 1377 1377 wsmap="managed" 1378 1378 > … … 2163 2163 <param name="result" type="boolean" dir="return"> 2164 2164 <desc>If firmware of this type and version is available.</desc> 2165 </param> 2166 </method> 2167 2168 <method name="VRDERegisterLibrary"> 2169 <desc> 2170 Appends a VRDE library to this VirtualBox installation. 2171 2172 The library implements a VirtualBox Remote Desktop Extension (VRDE), 2173 which is used to remotely connect to the virtual machines. 2174 2175 The system library extension (".DLL" or ".so") must be omitted. 2176 The library must reside in the VirtualBox installation directory. 2177 </desc> 2178 <param name="name" type="wstring" dir="in"> 2179 <desc>The library name.</desc> 2180 </param> 2181 </method> 2182 2183 <method name="VRDEUnregisterLibrary"> 2184 <desc> 2185 Removes a VRDE library from this VirtualBox installation. 2186 </desc> 2187 <param name="name" type="wstring" dir="in"> 2188 <desc>The library name.</desc> 2189 </param> 2190 </method> 2191 2192 <method name="VRDEListLibraries"> 2193 <desc> 2194 List registered libraries. 2195 </desc> 2196 <param name="names" type="wstring" dir="return" safearray="yes"> 2197 <desc>Array of names of the libraries.</desc> 2165 2198 </param> 2166 2199 </method> … … 3346 3379 <interface 3347 3380 name="IMachine" extends="$unknown" 3348 uuid=" 14136b33-438a-45de-884c-550e9eb34f23"3381 uuid="8934e426-1c09-459f-bbc4-58dba016fbbe" 3349 3382 wsmap="managed" 3350 3383 > … … 3649 3682 </attribute> 3650 3683 3651 <attribute name="VRD PServer" type="IVRDPServer" readonly="yes">3652 <desc>V RDPserver object.</desc>3684 <attribute name="VRDEServer" type="IVRDEServer" readonly="yes"> 3685 <desc>VirtualBox Remote Desktop Extension (VRDE) server object.</desc> 3653 3686 </attribute> 3654 3687 … … 4124 4157 <ul> 4125 4158 <li><tt>"gui"</tt>: VirtualBox Qt GUI front-end</li> 4126 <li><tt>" vrdp"</tt>: VBoxHeadless (VRDPServer) front-end</li>4159 <li><tt>"headless"</tt>: VBoxHeadless (VRDE Server) front-end</li> 4127 4160 <li><tt>"sdl"</tt>: VirtualBox SDL front-end</li> 4128 4161 </ul> … … 5627 5660 5628 5661 <interface 5629 name="I RemoteDisplayInfo" extends="$unknown"5630 uuid=" b3741084-806f-4c3b-8c42-ebad1a81e45a"5662 name="IVRDEServerInfo" extends="$unknown" 5663 uuid="6890123c-5218-42ba-9afd-c71699475115" 5631 5664 wsmap="struct" 5632 5665 > 5633 5666 <desc> 5634 Contains information about the remote d isplay (VRDP)capabilities and status.5635 This is used in the <link to="IConsole:: remoteDisplayInfo" /> attribute.5667 Contains information about the remote desktop (VRDE) server capabilities and status. 5668 This is used in the <link to="IConsole::VRDEServerInfo" /> attribute. 5636 5669 </desc> 5637 5670 5638 5671 <attribute name="active" type="boolean" readonly="yes"> 5639 5672 <desc> 5640 Whether the remote d isplayconnection is active.5673 Whether the remote desktop connection is active. 5641 5674 </desc> 5642 5675 </attribute> … … 5644 5677 <attribute name="port" type="long" readonly="yes"> 5645 5678 <desc> 5646 VRD Pserver port number. If this property is equal to <tt>0</tt>, then5647 the VRD P server failed to start, usually because there are no free TCP5648 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRD P5679 VRDE server port number. If this property is equal to <tt>0</tt>, then 5680 the VRDE server failed to start, usually because there are no free IP 5681 ports to bind to. If this property is equal to <tt>-1</tt>, then the VRDE 5649 5682 server has not yet been started. 5650 5683 </desc> … … 5736 5769 <interface 5737 5770 name="IConsole" extends="$unknown" 5738 uuid=" 03cb7897-ea17-4e6c-81ae-4bd90be2fde2"5771 uuid="3c4a453e-d27b-44a2-b59d-dda6e1835e57" 5739 5772 wsmap="managed" 5740 5773 > … … 5829 5862 <attribute name="remoteUSBDevices" type="IHostUSBDevice" readonly="yes" safearray="yes"> 5830 5863 <desc> 5831 List of USB devices currently attached to the remote VRD Pclient.5864 List of USB devices currently attached to the remote VRDE client. 5832 5865 Once a new device is physically attached to the remote host computer, 5833 5866 it appears in this list and remains there until detached. … … 5851 5884 </attribute> 5852 5885 5853 <attribute name=" remoteDisplayInfo" type="IRemoteDisplayInfo" readonly="yes">5854 <desc> 5855 Interface that provides information on Remote D isplay (VRDP) connection.5886 <attribute name="VRDEServerInfo" type="IVRDEServerInfo" readonly="yes"> 5887 <desc> 5888 Interface that provides information on Remote Desktop Extension (VRDE) connection. 5856 5889 </desc> 5857 5890 </attribute> … … 7086 7119 name="ISystemProperties" 7087 7120 extends="$unknown" 7088 uuid=" f8fff1f1-eeb4-4483-a2a4-b4186fab5a1e"7121 uuid="2af0100b-fda2-4c6a-8e8f-31e4ba871886" 7089 7122 wsmap="managed" 7090 7123 > … … 7278 7311 </attribute> 7279 7312 7280 <attribute name=" remoteDisplayAuthLibrary" type="wstring">7281 <desc> 7282 Library that provides authentication for VRDPclients. The library7313 <attribute name="VRDEAuthLibrary" type="wstring"> 7314 <desc> 7315 Library that provides authentication for Remote Desktop clients. The library 7283 7316 is used if a virtual machine's authentication type is set to "external" 7284 7317 in the VM RemoteDisplay configuration. … … 7308 7341 within the <link to="IWebsessionManager::logon" /> implementation. 7309 7342 7310 As opposed to <link to="ISystemProperties:: remoteDisplayAuthLibrary" />,7343 As opposed to <link to="ISystemProperties::VRDEAuthLibrary" />, 7311 7344 there is no per-VM setting for this, as the webservice is a global 7312 7345 resource (if it is running). Only for this setting (for the webservice), … … 7317 7350 The initial value of this property is <tt>"VRDPAuth"</tt>, 7318 7351 meaning that the webservice will use the same authentication 7319 library that is used by default for V BoxVRDP(again, see7320 <link to="ISystemProperties:: remoteDisplayAuthLibrary" />).7352 library that is used by default for VRDE (again, see 7353 <link to="ISystemProperties::VRDEAuthLibrary" />). 7321 7354 The format and calling convention of authentication libraries 7322 is the same for the webservice as it is for V BoxVRDP.7355 is the same for the webservice as it is for VRDE. 7323 7356 7324 7357 <note> … … 7326 7359 initial value. 7327 7360 </note> 7361 </desc> 7362 </attribute> 7363 7364 <attribute name="defaultVRDELibrary" type="wstring"> 7365 <desc> 7366 Default VRDE library. 7367 7368 The default value of this property is an empty string, which means that the 7369 VRDE is not available. 7370 7371 For details about VirtualBox Remote Desktop Extension and how to implement 7372 it, please refer to the VirtualBox SDK. 7328 7373 </desc> 7329 7374 </attribute> … … 11821 11866 <attribute name="remote" type="boolean" readonly="yes"> 11822 11867 <desc> 11823 Whether the device is physically connected to a remote VRD P11868 Whether the device is physically connected to a remote VRDE 11824 11869 client or to a local host machine. 11825 11870 </desc> … … 12248 12293 </interface> 12249 12294 12250 <!--12251 // IVRDPServer12252 /////////////////////////////////////////////////////////////////////////12253 -->12254 12255 12295 <enum 12256 name=" VRDPAuthType"12257 uuid=" 3d91887a-b67f-4b33-85bf-2da7ab1ea83a"12296 name="AuthType" 12297 uuid="7eef6ef6-98c2-4dc2-ab35-10d2b292028d" 12258 12298 > 12259 12299 <desc> 12260 V RDPauthentication type.12300 VirtualBox authentication type. 12261 12301 </desc> 12262 12302 … … 12268 12308 </enum> 12269 12309 12310 <!-- 12311 // IVRDEServer 12312 ///////////////////////////////////////////////////////////////////////// 12313 --> 12314 12270 12315 <interface 12271 name="IVRD PServer" extends="$unknown"12272 uuid=" 7aeeb530-0b08-41fe-835d-9be9ec1dbe5c"12316 name="IVRDEServer" extends="$unknown" 12317 uuid="f68a6b34-6f09-4040-8de1-e8d746c4a9ea" 12273 12318 wsmap="managed" 12274 12319 > 12275 12320 <attribute name="enabled" type="boolean"> 12276 <desc>VRDP server status.</desc> 12277 </attribute> 12278 12279 <attribute name="ports" type="wstring"> 12280 <desc> 12281 VRDP server port numbers. The server will try to bind to one of free ports from the list. 12282 <note> 12283 This is a string of comma separated TCP port numbers or port number ranges. 12284 Example <tt>5000,5010-5012,5015</tt> 12285 </note> 12286 </desc> 12287 </attribute> 12288 12289 <attribute name="netAddress" type="wstring"> 12290 <desc>VRDP server address.</desc> 12291 </attribute> 12292 12293 <attribute name="authType" type="VRDPAuthType"> 12294 <desc>VRDP authentication method.</desc> 12321 <desc>VRDE server status.</desc> 12322 </attribute> 12323 12324 <attribute name="authType" type="AuthType"> 12325 <desc>VRDE authentication method.</desc> 12295 12326 </attribute> 12296 12327 … … 12309 12340 <desc> 12310 12341 Flag whether the existing connection must be dropped and a new connection 12311 must be established by the VRD Pserver, when a new client connects in single12342 must be established by the VRDE server, when a new client connects in single 12312 12343 connection mode. 12313 12344 </desc> … … 12316 12347 <attribute name="videoChannel" type="boolean"> 12317 12348 <desc> 12318 Flag whether RDP video channel is supported.12349 Flag whether video redirectiron channel is enabled. 12319 12350 </desc> 12320 12351 </attribute> … … 12325 12356 </desc> 12326 12357 </attribute> 12358 12359 <method name="setVRDEProperty"> 12360 <desc> 12361 Sets a VRDE specific property string. 12362 12363 If you pass @c null or empty string as a key @a value, the given @a key 12364 will be deleted. 12365 12366 </desc> 12367 <param name="key" type="wstring" dir="in"> 12368 <desc>Name of the key to set.</desc> 12369 </param> 12370 <param name="value" type="wstring" dir="in"> 12371 <desc>Value to assign to the key.</desc> 12372 </param> 12373 </method> 12374 12375 <method name="getVRDEProperty"> 12376 <desc> 12377 Returns a VRDE specific property string. 12378 12379 If the requested data @a key does not exist, this function will 12380 succeed and return an empty string in the @a value argument. 12381 12382 </desc> 12383 <param name="key" type="wstring" dir="in"> 12384 <desc>Name of the key to get.</desc> 12385 </param> 12386 <param name="value" type="wstring" dir="return"> 12387 <desc>Value of the requested key.</desc> 12388 </param> 12389 </method> 12327 12390 12328 12391 </interface> … … 12442 12505 <interface 12443 12506 name="IInternalSessionControl" extends="$unknown" 12444 uuid="0 431ef9e-2c2e-42af-87d7-c8f52455f28a"12507 uuid="06ef98a7-f7c0-45ba-bf99-9aca7a4d5530" 12445 12508 internal="yes" 12446 12509 wsmap="suppress" … … 12631 12694 </method> 12632 12695 12633 <method name="onVRD PServerChange">12634 <desc> 12635 Triggered when settings of the VRD Pserver object of the12696 <method name="onVRDEServerChange"> 12697 <desc> 12698 Triggered when settings of the VRDE server object of the 12636 12699 associated virtual machine have changed. 12637 12700 … … 13851 13914 <enum 13852 13915 name="VBoxEventType" 13853 uuid=" 1728bb3b-4843-4f12-af67-f7a1f69f3a52">13916 uuid="e085d0b1-05e6-4f40-a709-b7266fbdb236"> 13854 13917 13855 13918 <desc> … … 14013 14076 </desc> 14014 14077 </const> 14015 <const name="OnVRD PServerChanged" value="53">14016 <desc> 14017 See <link to="IVRD PServerChangedEvent">IVRDPServerChangedEvent</link>.14078 <const name="OnVRDEServerChanged" value="53"> 14079 <desc> 14080 See <link to="IVRDEServerChangedEvent">IVRDEServerChangedEvent</link>. 14018 14081 </desc> 14019 14082 </const> … … 14053 14116 </desc> 14054 14117 </const> 14055 <const name="On RemoteDisplayInfoChanged" value="61">14056 <desc> 14057 See <link to="I RemoteDisplayInfoChangedEvent">IRemoteDisplayInfoChangedEvent</link>.14118 <const name="OnVRDEServerInfoChanged" value="61"> 14119 <desc> 14120 See <link to="IVRDEServerInfoChangedEvent">IVRDEServerInfoChangedEvent</link>. 14058 14121 </desc> 14059 14122 </const> … … 14908 14971 14909 14972 <interface 14910 name="IVRD PServerChangedEvent" extends="IEvent"14911 uuid=" 726038B6-6279-4A7A-8037-D041693D1915"14912 wsmap="managed" autogen="VBoxEvent" id="OnVRD PServerChanged"14973 name="IVRDEServerChangedEvent" extends="IEvent" 14974 uuid="a06fd66a-3188-4c8c-8756-1395e8cb691c" 14975 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerChanged" 14913 14976 > 14914 14977 <desc> 14915 14978 Notification when a property of the 14916 <link to="IMachine::VRD PServer">VRDPserver</link> changes.14917 Interested callees should use IVRD PServer methods and attributes to14979 <link to="IMachine::VRDEServer">VRDE server</link> changes. 14980 Interested callees should use IVRDEServer methods and attributes to 14918 14981 find out what has changed. 14919 14982 </desc> … … 14921 14984 14922 14985 <interface 14923 name="I RemoteDisplayInfoChangedEvent" extends="IEvent"14924 uuid=" 65B556C5-2A99-47D8-B311-FC177F0914CD"14925 wsmap="managed" autogen="VBoxEvent" id="On RemoteDisplayInfoChanged"14986 name="IVRDEServerInfoChangedEvent" extends="IEvent" 14987 uuid="dd6a1080-e1b7-4339-a549-f0878115596e" 14988 wsmap="managed" autogen="VBoxEvent" id="OnVRDEServerInfoChanged" 14926 14989 > 14927 14990 <desc> 14928 Notification when the status of the VRD Pserver changes. Interested callees14929 should use <link to="IConsole:: remoteDisplayInfo">IRemoteDisplayInfo</link>14991 Notification when the status of the VRDE server changes. Interested callees 14992 should use <link to="IConsole::VRDEServerInfo">IVRDEServerInfo</link> 14930 14993 attributes to find out what is the current status. 14931 14994 </desc> -
trunk/src/VBox/Main/include/ConsoleImpl.h
r33004 r33386 33 33 class RemoteUSBDevice; 34 34 class SharedFolder; 35 class RemoteDisplayInfo;35 class VRDEServerInfo; 36 36 class AudioSniffer; 37 37 class ConsoleVRDPServer; … … 121 121 STDMETHOD(COMGETTER(USBDevices))(ComSafeArrayOut(IUSBDevice *, aUSBDevices)); 122 122 STDMETHOD(COMGETTER(RemoteUSBDevices))(ComSafeArrayOut(IHostUSBDevice *, aRemoteUSBDevices)); 123 STDMETHOD(COMGETTER( RemoteDisplayInfo))(IRemoteDisplayInfo **aRemoteDisplayInfo);123 STDMETHOD(COMGETTER(VRDEServerInfo))(IVRDEServerInfo **aVRDEServerInfo); 124 124 STDMETHOD(COMGETTER(SharedFolders))(ComSafeArrayOut(ISharedFolder *, aSharedFolders)); 125 125 STDMETHOD(COMGETTER(EventSource)) (IEventSource ** aEventSource); … … 169 169 170 170 /** Method is called only from ConsoleVRDPServer */ 171 IVRD PServer *getVRDPServer() const { return mVRDPServer; }171 IVRDEServer *getVRDEServer() const { return mVRDEServer; } 172 172 173 173 ConsoleVRDPServer *consoleVRDPServer() const { return mConsoleVRDPServer; } … … 183 183 HRESULT onCPUChange(ULONG aCPU, BOOL aRemove); 184 184 HRESULT onCPUExecutionCapChange(ULONG aExecutionCap); 185 HRESULT onVRD PServerChange(BOOL aRestart);185 HRESULT onVRDEServerChange(BOOL aRestart); 186 186 HRESULT onUSBControllerChange(); 187 187 HRESULT onSharedFolderChange(BOOL aGlobal); … … 228 228 void onRuntimeError(BOOL aFatal, IN_BSTR aErrorID, IN_BSTR aMessage); 229 229 HRESULT onShowWindow(BOOL aCheck, BOOL *aCanShow, LONG64 *aWinId); 230 void on RemoteDisplayInfoChange();230 void onVRDEServerInfoChange(); 231 231 232 232 static const PDMDRVREG DrvStatusReg; … … 594 594 const ComPtr<IInternalMachineControl> mControl; 595 595 596 const ComPtr <IVRD PServer> mVRDPServer;596 const ComPtr <IVRDEServer> mVRDEServer; 597 597 598 598 ConsoleVRDPServer * const mConsoleVRDPServer; … … 603 603 const ComObjPtr<Display> mDisplay; 604 604 const ComObjPtr<MachineDebugger> mDebugger; 605 const ComObjPtr< RemoteDisplayInfo> mRemoteDisplayInfo;605 const ComObjPtr<VRDEServerInfo> mVRDEServerInfo; 606 606 const ComObjPtr<EventSource> mEventSource; 607 607 -
trunk/src/VBox/Main/include/ConsoleVRDPServer.h
r33005 r33386 3 3 /** @file 4 4 * 5 * VBox Console VRD P Helper class and implementation of IRemoteDisplayInfo5 * VBox Console VRDE Server Helper class and implementation of IVRDEServerInfo 6 6 */ 7 7 8 8 /* 9 * Copyright (C) 2006-20 08Oracle Corporation9 * Copyright (C) 2006-2010 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 149 149 HVRDESERVER mhServer; 150 150 151 static bool loadVRDPLibrary (void);151 static int loadVRDPLibrary (const char *pszLibraryName); 152 152 153 153 /** Static because will never load this more than once! */ … … 230 230 class Console; 231 231 232 class ATL_NO_VTABLE RemoteDisplayInfo :232 class ATL_NO_VTABLE VRDEServerInfo : 233 233 public VirtualBoxBase, 234 VBOX_SCRIPTABLE_IMPL(I RemoteDisplayInfo)234 VBOX_SCRIPTABLE_IMPL(IVRDEServerInfo) 235 235 { 236 236 public: 237 237 238 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT( RemoteDisplayInfo, IRemoteDisplayInfo)239 240 DECLARE_NOT_AGGREGATABLE( RemoteDisplayInfo)238 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(VRDEServerInfo, IVRDEServerInfo) 239 240 DECLARE_NOT_AGGREGATABLE(VRDEServerInfo) 241 241 242 242 DECLARE_PROTECT_FINAL_CONSTRUCT() 243 243 244 BEGIN_COM_MAP( RemoteDisplayInfo)244 BEGIN_COM_MAP(VRDEServerInfo) 245 245 COM_INTERFACE_ENTRY(ISupportErrorInfo) 246 COM_INTERFACE_ENTRY(I RemoteDisplayInfo)246 COM_INTERFACE_ENTRY(IVRDEServerInfo) 247 247 COM_INTERFACE_ENTRY(IDispatch) 248 248 END_COM_MAP() 249 249 250 DECLARE_EMPTY_CTOR_DTOR ( RemoteDisplayInfo)250 DECLARE_EMPTY_CTOR_DTOR (VRDEServerInfo) 251 251 252 252 HRESULT FinalConstruct(); … … 257 257 void uninit(); 258 258 259 /* I RemoteDisplayInfo properties */259 /* IVRDEServerInfo properties */ 260 260 #define DECL_GETTER(_aType, _aName) STDMETHOD(COMGETTER(_aName)) (_aType *a##_aName) 261 261 DECL_GETTER (BOOL, Active); -
trunk/src/VBox/Main/include/MachineImpl.h
r33300 r33386 404 404 STDMETHOD(COMSETTER(SnapshotFolder))(IN_BSTR aSavedStateFolder); 405 405 STDMETHOD(COMGETTER(MediumAttachments))(ComSafeArrayOut(IMediumAttachment *, aAttachments)); 406 STDMETHOD(COMGETTER(VRD PServer))(IVRDPServer **vrdpServer);406 STDMETHOD(COMGETTER(VRDEServer))(IVRDEServer **vrdeServer); 407 407 STDMETHOD(COMGETTER(AudioAdapter))(IAudioAdapter **audioAdapter); 408 408 STDMETHOD(COMGETTER(USBController))(IUSBController * *aUSBController); … … 602 602 IsModified_SerialPorts = 0x0010, 603 603 IsModified_ParallelPorts = 0x0020, 604 IsModified_VRD PServer = 0x0040,604 IsModified_VRDEServer = 0x0040, 605 605 IsModified_AudioAdapter = 0x0080, 606 606 IsModified_USB = 0x0100, … … 616 616 virtual HRESULT onSerialPortChange(ISerialPort * /* serialPort */) { return S_OK; } 617 617 virtual HRESULT onParallelPortChange(IParallelPort * /* parallelPort */) { return S_OK; } 618 virtual HRESULT onVRD PServerChange(BOOL /* aRestart */) { return S_OK; }618 virtual HRESULT onVRDEServerChange(BOOL /* aRestart */) { return S_OK; } 619 619 virtual HRESULT onUSBControllerChange() { return S_OK; } 620 620 virtual HRESULT onStorageControllerChange() { return S_OK; } … … 848 848 // so they cannot be a part of HWData 849 849 850 const ComObjPtr<VRD PServer> mVRDPServer;850 const ComObjPtr<VRDEServer> mVRDEServer; 851 851 const ComObjPtr<SerialPort> mSerialPorts[SchemaDefs::SerialPortCount]; 852 852 const ComObjPtr<ParallelPort> mParallelPorts[SchemaDefs::ParallelPortCount]; … … 961 961 HRESULT onCPUChange(ULONG aCPU, BOOL aRemove); 962 962 HRESULT onCPUExecutionCapChange(ULONG aCpuExecutionCap); 963 HRESULT onVRD PServerChange(BOOL aRestart);963 HRESULT onVRDEServerChange(BOOL aRestart); 964 964 HRESULT onUSBControllerChange(); 965 965 HRESULT onUSBDeviceAttach(IUSBDevice *aDevice, -
trunk/src/VBox/Main/include/SessionImpl.h
r32885 r33386 91 91 STDMETHOD(OnCPUChange)(ULONG aCPU, BOOL aRemove); 92 92 STDMETHOD(OnCPUExecutionCapChange)(ULONG aExecutionCap); 93 STDMETHOD(OnVRD PServerChange)(BOOL aRestart);93 STDMETHOD(OnVRDEServerChange)(BOOL aRestart); 94 94 STDMETHOD(OnUSBControllerChange)(); 95 95 STDMETHOD(OnSharedFolderChange)(BOOL aGlobal); -
trunk/src/VBox/Main/include/SystemPropertiesImpl.h
r33344 r33386 86 86 STDMETHOD(COMGETTER(FreeDiskSpacePercentError))(ULONG *aFreeDiskSpacePercent); 87 87 STDMETHOD(COMSETTER(FreeDiskSpacePercentError))(ULONG aFreeDiskSpacePercent); 88 STDMETHOD(COMGETTER( RemoteDisplayAuthLibrary))(BSTR *aRemoteDisplayAuthLibrary);89 STDMETHOD(COMSETTER( RemoteDisplayAuthLibrary))(IN_BSTR aRemoteDisplayAuthLibrary);88 STDMETHOD(COMGETTER(VRDEAuthLibrary))(BSTR *aVRDEAuthLibrary); 89 STDMETHOD(COMSETTER(VRDEAuthLibrary))(IN_BSTR aVRDEAuthLibrary); 90 90 STDMETHOD(COMGETTER(WebServiceAuthLibrary))(BSTR *aWebServiceAuthLibrary); 91 91 STDMETHOD(COMSETTER(WebServiceAuthLibrary))(IN_BSTR aWebServiceAuthLibrary); 92 STDMETHOD(COMGETTER(DefaultVRDELibrary))(BSTR *aVRDELibrary); 93 STDMETHOD(COMSETTER(DefaultVRDELibrary))(IN_BSTR aVRDELibrary); 92 94 STDMETHOD(COMGETTER(LogHistoryCount))(ULONG *count); 93 95 STDMETHOD(COMSETTER(LogHistoryCount))(ULONG count); … … 119 121 HRESULT setDefaultHardDiskFormat(const Utf8Str &aFormat); 120 122 121 HRESULT set RemoteDisplayAuthLibrary(const Utf8Str &aPath);123 HRESULT setVRDEAuthLibrary(const Utf8Str &aPath); 122 124 HRESULT setWebServiceAuthLibrary(const Utf8Str &aPath); 125 HRESULT setDefaultVRDELibrary(const Utf8Str &aPath); 123 126 124 127 VirtualBox * const mParent; -
trunk/src/VBox/Main/include/VRDPServerImpl.h
r30739 r33386 7 7 8 8 /* 9 * Copyright (C) 2006-20 07Oracle Corporation9 * Copyright (C) 2006-2010 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 27 27 namespace settings 28 28 { 29 struct VRD PSettings;29 struct VRDESettings; 30 30 } 31 31 32 class ATL_NO_VTABLE VRD PServer :32 class ATL_NO_VTABLE VRDEServer : 33 33 public VirtualBoxBase, 34 VBOX_SCRIPTABLE_IMPL(IVRD PServer)34 VBOX_SCRIPTABLE_IMPL(IVRDEServer) 35 35 { 36 36 public: … … 39 39 { 40 40 BOOL mEnabled; 41 Bstr m VRDPPorts;42 Bstr m VRDPAddress;43 VRDPAuthType_T mAuthType;41 Bstr mPorts; 42 Bstr mAddress; 43 AuthType_T mAuthType; 44 44 ULONG mAuthTimeout; 45 45 BOOL mAllowMultiConnection; … … 49 49 }; 50 50 51 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(VRD PServer, IVRDPServer)51 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(VRDEServer, IVRDEServer) 52 52 53 DECLARE_NOT_AGGREGATABLE(VRD PServer)53 DECLARE_NOT_AGGREGATABLE(VRDEServer) 54 54 55 55 DECLARE_PROTECT_FINAL_CONSTRUCT() 56 56 57 BEGIN_COM_MAP(VRD PServer)57 BEGIN_COM_MAP(VRDEServer) 58 58 COM_INTERFACE_ENTRY (ISupportErrorInfo) 59 COM_INTERFACE_ENTRY (IVRD PServer)60 COM_INTERFACE_ENTRY2 (IDispatch, IVRD PServer)59 COM_INTERFACE_ENTRY (IVRDEServer) 60 COM_INTERFACE_ENTRY2 (IDispatch, IVRDEServer) 61 61 END_COM_MAP() 62 62 63 DECLARE_EMPTY_CTOR_DTOR (VRD PServer)63 DECLARE_EMPTY_CTOR_DTOR (VRDEServer) 64 64 65 65 HRESULT FinalConstruct(); … … 68 68 // public initializer/uninitializer for internal purposes only 69 69 HRESULT init(Machine *aParent); 70 HRESULT init(Machine *aParent, VRD PServer *aThat);71 HRESULT initCopy (Machine *aParent, VRD PServer *aThat);70 HRESULT init(Machine *aParent, VRDEServer *aThat); 71 HRESULT initCopy (Machine *aParent, VRDEServer *aThat); 72 72 void uninit(); 73 73 74 // IVRD PServer properties74 // IVRDEServer properties 75 75 STDMETHOD(COMGETTER(Enabled)) (BOOL *aEnabled); 76 76 STDMETHOD(COMSETTER(Enabled)) (BOOL aEnable); 77 STDMETHOD(COMGETTER(Ports)) (BSTR *aPorts); 78 STDMETHOD(COMSETTER(Ports)) (IN_BSTR aPorts); 79 STDMETHOD(COMGETTER(NetAddress)) (BSTR *aAddress); 80 STDMETHOD(COMSETTER(NetAddress)) (IN_BSTR aAddress); 81 STDMETHOD(COMGETTER(AuthType)) (VRDPAuthType_T *aType); 82 STDMETHOD(COMSETTER(AuthType)) (VRDPAuthType_T aType); 77 STDMETHOD(COMGETTER(AuthType)) (AuthType_T *aType); 78 STDMETHOD(COMSETTER(AuthType)) (AuthType_T aType); 83 79 STDMETHOD(COMGETTER(AuthTimeout)) (ULONG *aTimeout); 84 80 STDMETHOD(COMSETTER(AuthTimeout)) (ULONG aTimeout); … … 92 88 STDMETHOD(COMSETTER(VideoChannelQuality)) (ULONG aVideoChannelQuality); 93 89 94 // IVRDPServer methods 90 // IVRDEServer methods 91 STDMETHOD(SetVRDEProperty) (IN_BSTR aKey, IN_BSTR aValue); 92 STDMETHOD(GetVRDEProperty) (IN_BSTR aKey, BSTR *aValue); 95 93 96 94 // public methods only for internal purposes 97 95 98 HRESULT loadSettings(const settings::VRD PSettings &data);99 HRESULT saveSettings(settings::VRD PSettings &data);96 HRESULT loadSettings(const settings::VRDESettings &data); 97 HRESULT saveSettings(settings::VRDESettings &data); 100 98 101 99 void rollback(); 102 100 void commit(); 103 void copyFrom (VRD PServer *aThat);101 void copyFrom (VRDEServer *aThat); 104 102 105 103 private: 106 104 107 105 Machine * const mParent; 108 const ComObjPtr<VRD PServer> mPeer;106 const ComObjPtr<VRDEServer> mPeer; 109 107 110 108 Backupable<Data> mData; -
trunk/src/VBox/Main/include/VirtualBoxImpl.h
r33294 r33386 154 154 BSTR * aUrl, BSTR * aFile, BOOL * aResult); 155 155 156 STDMETHOD(VRDERegisterLibrary)(IN_BSTR aName); 157 STDMETHOD(VRDEUnregisterLibrary)(IN_BSTR aName); 158 STDMETHOD(VRDEListLibraries)(ComSafeArrayOut(BSTR, aNames)); 156 159 /* public methods only for internal purposes */ 157 160 -
trunk/src/VBox/Main/testcase/tstAPI.cpp
r32718 r33386 1041 1041 #if 0 1042 1042 RTPrintf("\n"); 1043 RTPrintf("Enabling the VRD Pserver (must succeed even if the VM is saved):\n");1044 ComPtr<IVRD PServer> vrdp;1045 CHECK_ERROR_BREAK(sessionMachine, COMGETTER(VRD PServer)(vrdp.asOutParam()));1046 if (FAILED(vrd p->COMSETTER(Enabled)(TRUE)))1047 { 1048 PRINT_ERROR_INFO(com::ErrorInfo(vrd p));1043 RTPrintf("Enabling the VRDE server (must succeed even if the VM is saved):\n"); 1044 ComPtr<IVRDEServer> vrdeServer; 1045 CHECK_ERROR_BREAK(sessionMachine, COMGETTER(VRDEServer)(vrdeServer.asOutParam())); 1046 if (FAILED(vrdeServer->COMSETTER(Enabled)(TRUE))) 1047 { 1048 PRINT_ERROR_INFO(com::ErrorInfo(vrdeServer)); 1049 1049 } 1050 1050 else 1051 1051 { 1052 1052 BOOL enabled = FALSE; 1053 CHECK_ERROR_BREAK(vrd p, COMGETTER(Enabled)(&enabled));1054 RTPrintf("VRD Pserver is %s\n", enabled ? "enabled" : "disabled");1053 CHECK_ERROR_BREAK(vrdeServer, COMGETTER(Enabled)(&enabled)); 1054 RTPrintf("VRDE server is %s\n", enabled ? "enabled" : "disabled"); 1055 1055 } 1056 1056 #endif … … 1233 1233 ComPtr<IMachine> machine; 1234 1234 Bstr name = argc > 1 ? argv[1] : "dsl"; 1235 Bstr sessionType = argc > 2 ? argv[2] : " vrdp";1235 Bstr sessionType = argc > 2 ? argv[2] : "headless"; 1236 1236 RTPrintf("Getting a machine object named '%ls'...\n", name.raw()); 1237 1237 CHECK_RC_BREAK(virtualBox->FindMachine(name, machine.asOutParam())); -
trunk/src/VBox/Main/xml/Settings.cpp
r33238 r33386 1229 1229 pelmGlobalChild->getAttributeValue("defaultMachineFolder", systemProperties.strDefaultMachineFolder); 1230 1230 pelmGlobalChild->getAttributeValue("defaultHardDiskFormat", systemProperties.strDefaultHardDiskFormat); 1231 pelmGlobalChild->getAttributeValue("remoteDisplayAuthLibrary", systemProperties.strRemoteDisplayAuthLibrary); 1231 if (!pelmGlobalChild->getAttributeValue("VRDEAuthLibrary", systemProperties.strVRDEAuthLibrary)) 1232 // pre-1.11 used @remoteDisplayAuthLibrary instead 1233 pelmGlobalChild->getAttributeValue("remoteDisplayAuthLibrary", systemProperties.strVRDEAuthLibrary); 1232 1234 pelmGlobalChild->getAttributeValue("webServiceAuthLibrary", systemProperties.strWebServiceAuthLibrary); 1235 pelmGlobalChild->getAttributeValue("defaultVRDELibrary", systemProperties.strDefaultVRDELibrary); 1233 1236 pelmGlobalChild->getAttributeValue("LogHistoryCount", systemProperties.ulLogHistoryCount); 1234 1237 } … … 1335 1338 if (systemProperties.strDefaultHardDiskFormat.length()) 1336 1339 pelmSysProps->setAttribute("defaultHardDiskFormat", systemProperties.strDefaultHardDiskFormat); 1337 if (systemProperties.str RemoteDisplayAuthLibrary.length())1338 pelmSysProps->setAttribute(" remoteDisplayAuthLibrary", systemProperties.strRemoteDisplayAuthLibrary);1340 if (systemProperties.strVRDEAuthLibrary.length()) 1341 pelmSysProps->setAttribute("VRDEAuthLibrary", systemProperties.strVRDEAuthLibrary); 1339 1342 if (systemProperties.strWebServiceAuthLibrary.length()) 1340 1343 pelmSysProps->setAttribute("webServiceAuthLibrary", systemProperties.strWebServiceAuthLibrary); 1344 if (systemProperties.strDefaultVRDELibrary.length()) 1345 pelmSysProps->setAttribute("defaultVRDELibrary", systemProperties.strDefaultVRDELibrary); 1341 1346 pelmSysProps->setAttribute("LogHistoryCount", systemProperties.ulLogHistoryCount); 1342 1347 … … 1365 1370 * machine settings have really changed and thus need to be written out to disk. 1366 1371 */ 1367 bool VRD PSettings::operator==(const VRDPSettings& v) const1372 bool VRDESettings::operator==(const VRDESettings& v) const 1368 1373 { 1369 1374 return ( (this == &v) … … 1595 1600 && (keyboardHidType == h.keyboardHidType) 1596 1601 && (chipsetType == h.chipsetType) 1597 && (vrd pSettings == h.vrdpSettings)1602 && (vrdeSettings == h.vrdeSettings) 1598 1603 && (biosSettings == h.biosSettings) 1599 1604 && (usbController == h.usbController) … … 2426 2431 else if (pelmHwChild->nameEquals("RemoteDisplay")) 2427 2432 { 2428 pelmHwChild->getAttributeValue("enabled", hw.vrd pSettings.fEnabled);2429 pelmHwChild->getAttributeValue("port", hw.vrd pSettings.strPort);2430 pelmHwChild->getAttributeValue("netAddress", hw.vrd pSettings.strNetAddress);2433 pelmHwChild->getAttributeValue("enabled", hw.vrdeSettings.fEnabled); 2434 pelmHwChild->getAttributeValue("port", hw.vrdeSettings.strPort); 2435 pelmHwChild->getAttributeValue("netAddress", hw.vrdeSettings.strNetAddress); 2431 2436 2432 2437 Utf8Str strAuthType; … … 2436 2441 strAuthType.toUpper(); 2437 2442 if (strAuthType == "NULL") 2438 hw.vrd pSettings.authType = VRDPAuthType_Null;2443 hw.vrdeSettings.authType = AuthType_Null; 2439 2444 else if (strAuthType == "GUEST") 2440 hw.vrd pSettings.authType = VRDPAuthType_Guest;2445 hw.vrdeSettings.authType = AuthType_Guest; 2441 2446 else if (strAuthType == "EXTERNAL") 2442 hw.vrd pSettings.authType = VRDPAuthType_External;2447 hw.vrdeSettings.authType = AuthType_External; 2443 2448 else 2444 2449 throw ConfigFileError(this, pelmHwChild, N_("Invalid value '%s' in RemoteDisplay/@authType attribute"), strAuthType.c_str()); 2445 2450 } 2446 2451 2447 pelmHwChild->getAttributeValue("authTimeout", hw.vrd pSettings.ulAuthTimeout);2448 pelmHwChild->getAttributeValue("allowMultiConnection", hw.vrd pSettings.fAllowMultiConnection);2449 pelmHwChild->getAttributeValue("reuseSingleConnection", hw.vrd pSettings.fReuseSingleConnection);2452 pelmHwChild->getAttributeValue("authTimeout", hw.vrdeSettings.ulAuthTimeout); 2453 pelmHwChild->getAttributeValue("allowMultiConnection", hw.vrdeSettings.fAllowMultiConnection); 2454 pelmHwChild->getAttributeValue("reuseSingleConnection", hw.vrdeSettings.fReuseSingleConnection); 2450 2455 2451 2456 const xml::ElementNode *pelmVideoChannel; 2452 2457 if ((pelmVideoChannel = pelmHwChild->findChildElement("VideoChannel"))) 2453 2458 { 2454 pelmVideoChannel->getAttributeValue("enabled", hw.vrd pSettings.fVideoChannel);2455 pelmVideoChannel->getAttributeValue("quality", hw.vrd pSettings.ulVideoChannelQuality);2456 hw.vrd pSettings.ulVideoChannelQuality = RT_CLAMP(hw.vrdpSettings.ulVideoChannelQuality, 10, 100);2459 pelmVideoChannel->getAttributeValue("enabled", hw.vrdeSettings.fVideoChannel); 2460 pelmVideoChannel->getAttributeValue("quality", hw.vrdeSettings.ulVideoChannelQuality); 2461 hw.vrdeSettings.ulVideoChannelQuality = RT_CLAMP(hw.vrdeSettings.ulVideoChannelQuality, 10, 100); 2457 2462 } 2458 2463 } … … 3341 3346 pelmDisplay->setAttribute("accelerate2DVideo", hw.fAccelerate2DVideo); 3342 3347 3343 xml::ElementNode *pelmVRD P= pelmHardware->createChild("RemoteDisplay");3344 pelmVRD P->setAttribute("enabled", hw.vrdpSettings.fEnabled);3345 Utf8Str strPort = hw.vrd pSettings.strPort;3348 xml::ElementNode *pelmVRDE = pelmHardware->createChild("RemoteDisplay"); 3349 pelmVRDE->setAttribute("enabled", hw.vrdeSettings.fEnabled); 3350 Utf8Str strPort = hw.vrdeSettings.strPort; 3346 3351 if (!strPort.length()) 3347 3352 strPort = "3389"; 3348 pelmVRD P->setAttribute("port", strPort);3349 if (hw.vrd pSettings.strNetAddress.length())3350 pelmVRD P->setAttribute("netAddress", hw.vrdpSettings.strNetAddress);3353 pelmVRDE->setAttribute("port", strPort); 3354 if (hw.vrdeSettings.strNetAddress.length()) 3355 pelmVRDE->setAttribute("netAddress", hw.vrdeSettings.strNetAddress); 3351 3356 const char *pcszAuthType; 3352 switch (hw.vrd pSettings.authType)3353 { 3354 case VRDPAuthType_Guest: pcszAuthType = "Guest"; break;3355 case VRDPAuthType_External: pcszAuthType = "External"; break;3356 default: /*case VRDPAuthType_Null:*/ pcszAuthType = "Null"; break;3357 } 3358 pelmVRD P->setAttribute("authType", pcszAuthType);3359 3360 if (hw.vrd pSettings.ulAuthTimeout != 0)3361 pelmVRD P->setAttribute("authTimeout", hw.vrdpSettings.ulAuthTimeout);3362 if (hw.vrd pSettings.fAllowMultiConnection)3363 pelmVRD P->setAttribute("allowMultiConnection", hw.vrdpSettings.fAllowMultiConnection);3364 if (hw.vrd pSettings.fReuseSingleConnection)3365 pelmVRD P->setAttribute("reuseSingleConnection", hw.vrdpSettings.fReuseSingleConnection);3357 switch (hw.vrdeSettings.authType) 3358 { 3359 case AuthType_Guest: pcszAuthType = "Guest"; break; 3360 case AuthType_External: pcszAuthType = "External"; break; 3361 default: /*case AuthType_Null:*/ pcszAuthType = "Null"; break; 3362 } 3363 pelmVRDE->setAttribute("authType", pcszAuthType); 3364 3365 if (hw.vrdeSettings.ulAuthTimeout != 0) 3366 pelmVRDE->setAttribute("authTimeout", hw.vrdeSettings.ulAuthTimeout); 3367 if (hw.vrdeSettings.fAllowMultiConnection) 3368 pelmVRDE->setAttribute("allowMultiConnection", hw.vrdeSettings.fAllowMultiConnection); 3369 if (hw.vrdeSettings.fReuseSingleConnection) 3370 pelmVRDE->setAttribute("reuseSingleConnection", hw.vrdeSettings.fReuseSingleConnection); 3366 3371 3367 3372 if (m->sv >= SettingsVersion_v1_10) 3368 3373 { 3369 xml::ElementNode *pelmVideoChannel = pelmVRD P->createChild("VideoChannel");3370 pelmVideoChannel->setAttribute("enabled", hw.vrd pSettings.fVideoChannel);3371 pelmVideoChannel->setAttribute("quality", hw.vrd pSettings.ulVideoChannelQuality);3374 xml::ElementNode *pelmVideoChannel = pelmVRDE->createChild("VideoChannel"); 3375 pelmVideoChannel->setAttribute("enabled", hw.vrdeSettings.fVideoChannel); 3376 pelmVideoChannel->setAttribute("quality", hw.vrdeSettings.ulVideoChannelQuality); 3372 3377 } 3373 3378 … … 4317 4322 if ( (hardwareMachine.ioSettings.fIoCacheEnabled != true) 4318 4323 || (hardwareMachine.ioSettings.ulIoCacheSize != 5) 4319 // and VRDP videochannel4320 || (hardwareMachine.vrd pSettings.fVideoChannel)4324 // and remote desktop video redirection channel 4325 || (hardwareMachine.vrdeSettings.fVideoChannel) 4321 4326 // and page fusion 4322 4327 || (hardwareMachine.fPageFusionEnabled) -
trunk/src/VBox/Main/xml/VirtualBox-settings-common.xsd
r32436 r33386 208 208 209 209 210 <xsd:simpleType name="T VRDPAuthType">210 <xsd:simpleType name="TAuthType"> 211 211 <xsd:restriction base="xsd:string"> 212 212 <xsd:enumeration value="Null"/> … … 356 356 <xsd:attribute name="defaultHardDiskFolder" type="TLocalFile"/> 357 357 <xsd:attribute name="defaultHardDiskFormat" type="TNonEmptyString"/> 358 <xsd:attribute name=" remoteDisplayAuthLibrary" type="TLocalFile"/>358 <xsd:attribute name="VRDEAuthLibrary" type="TLocalFile"/> 359 359 <xsd:attribute name="webServiceAuthLibrary" type="TLocalFile"/> 360 <xsd:attribute name="defaultVRDELibrary" type="TLocalFile"/> 360 361 <xsd:attribute name="HWVirtExEnabled" type="xsd:boolean"/> 361 362 <xsd:attribute name="LogHistoryCount" type="xsd:unsignedInt" default="3"/> … … 542 543 <xsd:attribute name="port" type="xsd:token" default="0"/> 543 544 <xsd:attribute name="netAddress" type="xsd:token" default=""/> 544 <xsd:attribute name="authType" type="T VRDPAuthType" default="Null"/>545 <xsd:attribute name="authType" type="TAuthType" default="Null"/> 545 546 <xsd:attribute name="authTimeout" type="xsd:unsignedInt" default="5000"/> 546 547 <xsd:attribute name="allowMultiConnection" type="xsd:boolean" default="false"/> -
trunk/src/VBox/Main/xpcom/module.cpp
r30825 r33386 70 70 NS_DECL_CLASSINFO(SharedFolder) 71 71 NS_IMPL_THREADSAFE_ISUPPORTS1_CI(SharedFolder, ISharedFolder) 72 NS_DECL_CLASSINFO( RemoteDisplayInfo)73 NS_IMPL_THREADSAFE_ISUPPORTS1_CI( RemoteDisplayInfo, IRemoteDisplayInfo)72 NS_DECL_CLASSINFO(VRDEInfo) 73 NS_IMPL_THREADSAFE_ISUPPORTS1_CI(VRDEInfo, IVRDEInfo) 74 74 75 75 NS_DECL_CLASSINFO(Session) -
trunk/src/VBox/Main/xpcom/server.cpp
r33112 r33386 141 141 142 142 #ifdef VBOX_WITH_VRDP 143 NS_DECL_CLASSINFO(VRD PServer)144 NS_IMPL_THREADSAFE_ISUPPORTS1_CI(VRD PServer, IVRDPServer)143 NS_DECL_CLASSINFO(VRDE) 144 NS_IMPL_THREADSAFE_ISUPPORTS1_CI(VRDE, IVRDE) 145 145 #endif 146 146
Note:
See TracChangeset
for help on using the changeset viewer.