Changeset 31220 in vbox
- Timestamp:
- Jul 29, 2010 3:25:57 PM (15 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r31218 r31220 442 442 ComPtr<IConsole> console; 443 443 CHECK_ERROR_BREAK(a->session, COMGETTER(Console)(console.asOutParam())); 444 CHECK_ERROR_BREAK(console, ForgetSavedState());444 CHECK_ERROR_BREAK(console, DiscardSavedState()); 445 445 } while (0); 446 446 CHECK_ERROR_BREAK(a->session, UnlockMachine()); -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r31218 r31220 1652 1652 if (machineState == MachineState_Saved) 1653 1653 { 1654 CHECK_ERROR(gConsole, ForgetSavedState());1654 CHECK_ERROR(gConsole, DiscardSavedState()); 1655 1655 } 1656 1656 /* -
trunk/src/VBox/Frontends/VirtualBox/src/selector/VBoxSelectorWnd.cpp
r31218 r31220 805 805 806 806 CConsole console = session.GetConsole(); 807 console. ForgetSavedState();807 console.DiscardSavedState(); 808 808 if (!console.isOk()) 809 809 vboxProblem().cannotDiscardSavedState (console); -
trunk/src/VBox/Main/ConsoleImpl.cpp
r31218 r31220 2387 2387 } 2388 2388 2389 STDMETHODIMP Console:: ForgetSavedState()2389 STDMETHODIMP Console::DiscardSavedState() 2390 2390 { 2391 2391 AutoCaller autoCaller(this); -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r31219 r31220 5933 5933 <interface 5934 5934 name="IConsole" extends="$unknown" 5935 uuid=" 3a7bb20e-bbee-47f2-a5ee-b158555f2c79"5935 uuid="03cb7897-ea17-4e6c-81ae-4bd90be2fde2" 5936 5936 wsmap="managed" 5937 5937 > … … 6299 6299 </method> 6300 6300 6301 <method name=" forgetSavedState">6302 <desc> 6303 For gets the saved state of the virtual machine if it is currently6304 in the "Saved" state (previously created by <link to="#saveState"/>)6301 <method name="discardSavedState"> 6302 <desc> 6303 Forcibly resets the machine to "Powered Off" state if it is 6304 currently in the "Saved" state (previously created by <link to="#saveState"/>) 6305 6305 and deletes the file into which the machine state was saved. 6306 6306 Next time the machine is powered up, a clean boot will occur. 6307 6307 <note> 6308 6308 This operation is equivalent to resetting or powering off 6309 the machine without doing a proper shutdown in the guest OS. 6309 the machine without doing a proper shutdown of the guest 6310 operating system; as with resetting a running phyiscal 6311 computer, it can can lead to data loss. 6310 6312 </note> 6311 6313 <result name="VBOX_E_INVALID_VM_STATE"> … … 6591 6593 If the machine state is <link to="MachineState_Saved">Saved</link> 6592 6594 prior to this operation, the saved state file will be implicitly 6593 deleted (as if <link to="IConsole:: forgetSavedState"/> were6595 deleted (as if <link to="IConsole::discardSavedState"/> were 6594 6596 called). 6595 6597 </note> -
trunk/src/VBox/Main/include/ConsoleImpl.h
r31218 r31220 138 138 STDMETHOD(SaveState)(IProgress **aProgress); 139 139 STDMETHOD(AdoptSavedState)(IN_BSTR aSavedStateFile); 140 STDMETHOD( ForgetSavedState)();140 STDMETHOD(DiscardSavedState)(); 141 141 STDMETHOD(GetDeviceActivity)(DeviceType_T aDeviceType, 142 142 DeviceActivity_T *aDeviceActivity);
Note:
See TracChangeset
for help on using the changeset viewer.