Changeset 31742 in vbox
- Timestamp:
- Aug 18, 2010 7:52:22 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64919
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/settings.h
r31696 r31742 879 879 && (uFaultToleranceInterval == c.uFaultToleranceInterval) 880 880 && (strFaultToleranceAddress == c.strFaultToleranceAddress) 881 && (strFaultTolerancePassword == c.strFaultTolerancePassword) 881 882 && (fRTCUseUTC == c.fRTCUseUTC); 882 883 } … … 894 895 uint32_t uFaultTolerancePort; 895 896 com::Utf8Str strFaultToleranceAddress; 897 com::Utf8Str strFaultTolerancePassword; 896 898 uint32_t uFaultToleranceInterval; 897 899 bool fRTCUseUTC; -
trunk/src/VBox/Main/ConsoleImpl.cpp
r31733 r31742 7476 7476 Utf8Str strAddress(bstrAddress); 7477 7477 const char *pszAddress = strAddress.isEmpty() ? NULL : strAddress.c_str(); 7478 7479 /** @todo set progress cancel callback! */ 7478 7480 7479 7481 /* Power on the FT enabled VM. */ -
trunk/src/VBox/Main/MachineImpl.cpp
r31706 r31742 2661 2661 } 2662 2662 2663 STDMETHODIMP Machine::COMGETTER(FaultTolerancePassword)(BSTR *aPassword) 2664 { 2665 CheckComArgOutPointerValid(aPassword); 2666 2667 AutoCaller autoCaller(this); 2668 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 2669 2670 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 2671 2672 mUserData->s.strFaultTolerancePassword.cloneTo(aPassword); 2673 2674 return S_OK; 2675 } 2676 2677 STDMETHODIMP Machine::COMSETTER(FaultTolerancePassword)(IN_BSTR aPassword) 2678 { 2679 AutoCaller autoCaller(this); 2680 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 2681 2682 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 2683 2684 /* @todo deal with running state change. */ 2685 HRESULT rc = checkStateDependency(MutableStateDep); 2686 if (FAILED(rc)) return rc; 2687 2688 setModified(IsModified_MachineData); 2689 mUserData.backup(); 2690 mUserData->s.strFaultTolerancePassword = aPassword; 2691 2692 return S_OK; 2693 } 2694 2663 2695 STDMETHODIMP Machine::COMGETTER(FaultToleranceSyncInterval)(ULONG *aInterval) 2664 2696 { -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r31733 r31742 3421 3421 <interface 3422 3422 name="IMachine" extends="$unknown" 3423 uuid="7 315c8f6-5010-4e2a-9242-c84ead390d55"3423 uuid="70ddc295-39fb-46e2-a93b-854e123b2b97" 3424 3424 wsmap="managed" 3425 3425 > … … 3973 3973 </attribute> 3974 3974 3975 <attribute name="faultTolerancePassword" type="wstring"> 3976 <desc> 3977 The password the to check for on the standby VM. This is just a 3978 very basic measure to prevent simple hacks and operators accidentally 3979 choosing the wrong standby VM. 3980 </desc> 3981 </attribute> 3982 3975 3983 <attribute name="faultToleranceSyncInterval" type="unsigned long"> 3976 3984 <desc> -
trunk/src/VBox/Main/include/MachineImpl.h
r31698 r31742 438 438 STDMETHOD(COMGETTER(FaultTolerancePort))(ULONG *aPort); 439 439 STDMETHOD(COMSETTER(FaultTolerancePort))(ULONG aPort); 440 STDMETHOD(COMGETTER(FaultTolerancePassword))(BSTR *aPassword); 441 STDMETHOD(COMSETTER(FaultTolerancePassword))(IN_BSTR aPassword); 440 442 STDMETHOD(COMGETTER(FaultToleranceSyncInterval))(ULONG *aInterval); 441 443 STDMETHOD(COMSETTER(FaultToleranceSyncInterval))(ULONG aInterval); -
trunk/src/VBox/Main/xml/Settings.cpp
r31733 r31742 3124 3124 pelmMachineChild->getAttributeValue("address", machineUserData.strFaultToleranceAddress); 3125 3125 pelmMachineChild->getAttributeValue("interval", machineUserData.uFaultToleranceInterval); 3126 pelmMachineChild->getAttributeValue("password", machineUserData.strFaultTolerancePassword); 3126 3127 } 3127 3128 else if (pelmMachineChild->nameEquals("MediaRegistry")) … … 4053 4054 pelmFaultTolerance->setAttribute("address", machineUserData.strFaultToleranceAddress); 4054 4055 pelmFaultTolerance->setAttribute("interval", machineUserData.uFaultToleranceInterval); 4056 pelmFaultTolerance->setAttribute("password", machineUserData.strFaultTolerancePassword); 4055 4057 } 4056 4058
Note:
See TracChangeset
for help on using the changeset viewer.