VirtualBox

Changeset 20931 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jun 25, 2009 12:17:55 PM (16 years ago)
Author:
vboxsync
Message:

API: cleanup of previous changes

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r20928 r20931  
    82408240////////////////////////////////////////////////////////////////////////////////
    82418241
    8242 SessionMachine::SessionMachine()
    8243     : mRemoveSavedState(true)
    8244 {}
    8245 
    8246 SessionMachine::~SessionMachine()
    8247 {}
     8242DEFINE_EMPTY_CTOR_DTOR (SessionMachine)
    82488243
    82498244HRESULT SessionMachine::FinalConstruct()
     
    84258420    }
    84268421
     8422    /* default is to delete saved state on Saved -> PoweredOff transition */
     8423    mRemoveSavedState = true;
     8424
    84278425    /* Confirm a successful initialization when it's the case */
    84288426    autoInitSpan.setSucceeded();
  • trunk/src/VBox/Main/testcase/tstVBoxAPIWin.cpp

    r19477 r20931  
    210210                break;
    211211            }
    212    
     212
    213213            /* Start a VM session using the delivered VBox GUI. */
    214214            rc = virtualBox->OpenRemoteSession (session, guid, sessiontype,
     
    219219                break;
    220220            }
    221    
     221
    222222            /* Wait until VM is running. */
    223223            printf ("Starting VM, please wait ...\n");
    224224            rc = progress->WaitForCompletion (-1);
    225    
     225
    226226            /* Get console object. */
    227227            session->get_Console(&console);
     
    234234
    235235            /* Power down the machine. */
    236             rc = console->PowerDown();
     236            rc = console->PowerDown(&progress);
     237
     238            /* Wait until VM is powered down. */
     239            printf ("Powering off VM, please wait ...\n");
     240            rc = progress->WaitForCompletion (-1);
    237241
    238242            /* Close the session. */
    239             rc = session->Close(); 
    240            
     243            rc = session->Close();
     244
    241245        } while (0);
    242246
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