VirtualBox

Changeset 31220 in vbox


Ignore:
Timestamp:
Jul 29, 2010 3:25:57 PM (15 years ago)
Author:
vboxsync
Message:

Main: rename IConsole::forgetSavedState() to discardSavedState()

Location:
trunk/src/VBox
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r31218 r31220  
    442442                ComPtr<IConsole> console;
    443443                CHECK_ERROR_BREAK(a->session, COMGETTER(Console)(console.asOutParam()));
    444                 CHECK_ERROR_BREAK(console, ForgetSavedState());
     444                CHECK_ERROR_BREAK(console, DiscardSavedState());
    445445            } while (0);
    446446            CHECK_ERROR_BREAK(a->session, UnlockMachine());
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r31218 r31220  
    16521652        if (machineState == MachineState_Saved)
    16531653        {
    1654             CHECK_ERROR(gConsole, ForgetSavedState());
     1654            CHECK_ERROR(gConsole, DiscardSavedState());
    16551655        }
    16561656        /*
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/VBoxSelectorWnd.cpp

    r31218 r31220  
    805805
    806806    CConsole console = session.GetConsole();
    807     console.ForgetSavedState();
     807    console.DiscardSavedState();
    808808    if (!console.isOk())
    809809        vboxProblem().cannotDiscardSavedState (console);
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r31218 r31220  
    23872387}
    23882388
    2389 STDMETHODIMP Console::ForgetSavedState()
     2389STDMETHODIMP Console::DiscardSavedState()
    23902390{
    23912391    AutoCaller autoCaller(this);
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r31219 r31220  
    59335933  <interface
    59345934     name="IConsole" extends="$unknown"
    5935      uuid="3a7bb20e-bbee-47f2-a5ee-b158555f2c79"
     5935     uuid="03cb7897-ea17-4e6c-81ae-4bd90be2fde2"
    59365936     wsmap="managed"
    59375937     >
     
    62996299    </method>
    63006300
    6301     <method name="forgetSavedState">
    6302       <desc>
    6303         Forgets the saved state of the virtual machine if it is currently
    6304         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"/>)
    63056305        and deletes the file into which the machine state was saved.
    63066306        Next time the machine is powered up, a clean boot will occur.
    63076307        <note>
    63086308          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.
    63106312        </note>
    63116313        <result name="VBOX_E_INVALID_VM_STATE">
     
    65916593          If the machine state is <link to="MachineState_Saved">Saved</link>
    65926594          prior to this operation, the saved state file will be implicitly
    6593           deleted (as if <link to="IConsole::forgetSavedState"/> were
     6595          deleted (as if <link to="IConsole::discardSavedState"/> were
    65946596          called).
    65956597        </note>
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r31218 r31220  
    138138    STDMETHOD(SaveState)(IProgress **aProgress);
    139139    STDMETHOD(AdoptSavedState)(IN_BSTR aSavedStateFile);
    140     STDMETHOD(ForgetSavedState)();
     140    STDMETHOD(DiscardSavedState)();
    141141    STDMETHOD(GetDeviceActivity)(DeviceType_T aDeviceType,
    142142                                DeviceActivity_T *aDeviceActivity);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette