VirtualBox

Ignore:
Timestamp:
Apr 13, 2015 3:53:01 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
99520
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

Location:
trunk/src/VBox/Frontends/VBoxAutostart
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxAutostart/VBoxAutostartStop.cpp

    r43967 r55214  
    5151{
    5252    HRESULT rc = S_OK;
     53    ComPtr<IMachine> machine;
    5354    ComPtr<IProgress> progress;
    5455
     
    8384        }
    8485
    85         CHECK_ERROR(console, SaveState(progress.asOutParam()));
     86        CHECK_ERROR(console, COMGETTER(Machine)(machine.asOutParam()));
     87        CHECK_ERROR(machine, SaveState(progress.asOutParam()));
    8688        if (FAILED(rc))
    8789        {
  • trunk/src/VBox/Frontends/VBoxAutostart/VBoxAutostartUtils.cpp

    r43967 r55214  
    4848        case MachineState_Saved:
    4949            return "saved";
     50        case MachineState_Teleported:
     51            return "teleported";
    5052        case MachineState_Aborted:
    5153            return "aborted";
    52         case MachineState_Teleported:
    53             return "teleported";
    5454        case MachineState_Running:
    5555            return "running";
     
    5858        case MachineState_Stuck:
    5959            return fShort ? "gurumeditation"       : "guru meditation";
     60        case MachineState_Teleporting:
     61            return "teleporting";
    6062        case MachineState_LiveSnapshotting:
    6163            return fShort ? "livesnapshotting"     : "live snapshotting";
    62         case MachineState_Teleporting:
    63             return "teleporting";
    6464        case MachineState_Starting:
    6565            return "starting";
     
    7474        case MachineState_TeleportingIn:
    7575            return fShort ? "teleportingin"        : "teleporting (incoming)";
     76        case MachineState_DeletingSnapshotOnline:
     77            return fShort ? "deletingsnapshotlive" : "deleting snapshot live";
     78        case MachineState_DeletingSnapshotPaused:
     79            return fShort ? "deletingsnapshotlivepaused" : "deleting snapshot live paused";
     80        case MachineState_OnlineSnapshotting:
     81            return fShort ? "onlinesnapshotting"   : "online snapshotting";
    7682        case MachineState_RestoringSnapshot:
    7783            return fShort ? "restoringsnapshot"    : "restoring snapshot";
    7884        case MachineState_DeletingSnapshot:
    7985            return fShort ? "deletingsnapshot"     : "deleting snapshot";
    80         case MachineState_DeletingSnapshotOnline:
    81             return fShort ? "deletingsnapshotlive" : "deleting snapshot live";
    82         case MachineState_DeletingSnapshotPaused:
    83             return fShort ? "deletingsnapshotlivepaused" : "deleting snapshot live paused";
    8486        case MachineState_SettingUp:
    8587            return fShort ? "settingup"           : "setting up";
     88        case MachineState_Snapshotting:
     89            return "snapshotting";
    8690        default:
    8791            break;
Note: See TracChangeset for help on using the changeset viewer.

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