- Timestamp:
- Apr 23, 2013 1:00:08 PM (12 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/idl/VirtualBox.xidl
r45674 r45680 16572 16572 <interface 16573 16573 name="IVRDEServer" extends="$unknown" 16574 uuid=" e129c465-b575-48ea-adbb-49cbd9d3d458"16574 uuid="d38de40a-c2c1-4e95-b5a4-167b05f5694c" 16575 16575 wsmap="managed" 16576 16576 > 16577 <attribute name="checkPrerequisites" type="boolean" readonly="yes">16578 <desc>Checks if the prerequisites for running the VRDE server are16579 fulfilled, returns @c true if they are.</desc>16580 </attribute>16581 16577 16582 16578 <attribute name="enabled" type="boolean"> -
trunk/src/VBox/Main/include/VRDEServerImpl.h
r45674 r45680 66 66 67 67 // IVRDEServer properties 68 STDMETHOD(COMGETTER(CheckPrerequisites))(BOOL *aCheckPrerequisites);69 68 STDMETHOD(COMGETTER(Enabled))(BOOL *aEnabled); 70 69 STDMETHOD(COMSETTER(Enabled))(BOOL aEnable); -
trunk/src/VBox/Main/src-client/ConsoleVRDPServer.cpp
r45674 r45680 1432 1432 1433 1433 /* 1434 * Check if the prerequisites for VRDE are present.1435 */1436 BOOL fPrerequisites;1437 HRESULT hrc = server->COMGETTER(CheckPrerequisites)(&fPrerequisites);1438 AssertComRCReturn(hrc, Global::vboxStatusCodeFromCOM(hrc));1439 if (!fPrerequisites)1440 {1441 LogRel(("VRDE: prerequisite missing, skipped start\n"));1442 return VINF_SUCCESS;1443 }1444 1445 /*1446 1434 * Check if VRDE is enabled. 1447 1435 */ 1448 1436 BOOL fEnabled; 1449 hrc = server->COMGETTER(Enabled)(&fEnabled);1437 HRESULT hrc = server->COMGETTER(Enabled)(&fEnabled); 1450 1438 AssertComRCReturn(hrc, Global::vboxStatusCodeFromCOM(hrc)); 1451 1439 if (!fEnabled) -
trunk/src/VBox/Main/src-server/VRDEServerImpl.cpp
r45674 r45680 245 245 // IVRDEServer properties 246 246 ///////////////////////////////////////////////////////////////////////////// 247 248 STDMETHODIMP VRDEServer::COMGETTER(CheckPrerequisites)(BOOL *aCheckPrerequisites)249 {250 CheckComArgOutPointerValid(aCheckPrerequisites);251 252 AutoCaller autoCaller(this);253 if (FAILED(autoCaller.rc())) return autoCaller.rc();254 255 BOOL res = TRUE;256 GraphicsControllerType_T graphicsController = GraphicsControllerType_Null;257 HRESULT rc = mParent->COMGETTER(GraphicsControllerType)(&graphicsController);258 if (SUCCEEDED(rc))259 res &= (graphicsController != GraphicsControllerType_Null);260 else261 res = FALSE;262 263 *aCheckPrerequisites = res;264 265 return S_OK;266 }267 247 268 248 STDMETHODIMP VRDEServer::COMGETTER(Enabled)(BOOL *aEnabled)
Note:
See TracChangeset
for help on using the changeset viewer.