VirtualBox

Changeset 55214 in vbox for trunk/src/VBox/Frontends/VBoxSDL


Ignore:
Timestamp:
Apr 13, 2015 3:53:01 PM (10 years ago)
Author:
vboxsync
Message:

Main/Console+Machine+Session+Snapshot: move the save state and snapshot related methods from IConsole to IMachine, with lots of unavoidable code restructuring and cleanup. Also define two new machine states (so that the "Saving" one is specifically for saving state now) which requires more changes everywhere
Frontends: necessary adjustments
doc/SDK: document the changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r55133 r55214  
    18381838        if (machineState == MachineState_Saved)
    18391839        {
    1840             CHECK_ERROR(gpConsole, DiscardSavedState(true /* fDeleteFile */));
     1840            CHECK_ERROR(gpMachine, DiscardSavedState(true /* fDeleteFile */));
    18411841        }
    18421842        /*
     
    18551855                goto leave;
    18561856
    1857             CHECK_ERROR(gpConsole, RestoreSnapshot(pCurrentSnapshot, gpProgress.asOutParam()));
     1857            CHECK_ERROR(gpMachine, RestoreSnapshot(pCurrentSnapshot, gpProgress.asOutParam()));
    18581858            rc = gpProgress->WaitForCompletion(-1);
    18591859        }
     
    42004200    UpdateTitlebar(TITLEBAR_SAVE);
    42014201    gpProgress = NULL;
    4202     HRESULT rc = gpConsole->SaveState(gpProgress.asOutParam());
     4202    HRESULT rc = gpMachine->SaveState(gpProgress.asOutParam());
    42034203    if (FAILED(rc))
    42044204    {
     
    49504950            gpProgress = NULL;
    49514951            HRESULT rc;
    4952             CHECK_ERROR(gpConsole, TakeSnapshot(Bstr(pszSnapshotName).raw(),
     4952            CHECK_ERROR(gpMachine, TakeSnapshot(Bstr(pszSnapshotName).raw(),
    49534953                                                Bstr("Taken by VBoxSDL").raw(),
     4954                                                TRUE,
    49544955                                                gpProgress.asOutParam()));
    49554956            if (FAILED(rc))
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