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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxBalloonCtrl/VBoxModAPIMonitor.cpp

    r43738 r55214  
    1 
    21/* $Id$ */
    32/** @file
     
    65
    76/*
    8  * Copyright (C) 2012 Oracle Corporation
     7 * Copyright (C) 2012-2015 Oracle Corporation
    98 *
    109 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    214213                ComPtr<IConsole> console;
    215214                CHECK_ERROR_BREAK(g_pSession, COMGETTER(Console)(console.asOutParam()));
     215                /* Get the associated session machine. */
     216                ComPtr<IMachine> sessionMachine;
     217                CHECK_ERROR_BREAK(g_pSession, COMGETTER(Machine)(sessionMachine.asOutParam()));
    216218
    217219                ComPtr<IProgress> progress;
     
    269271                        }
    270272
    271                         CHECK_ERROR(console, SaveState(progress.asOutParam()));
     273                        CHECK_ERROR(sessionMachine, SaveState(progress.asOutParam()));
    272274                        if (SUCCEEDED(rc))
    273275                        {
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