Changeset 20931 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jun 25, 2009 12:17:55 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r20928 r20931 8240 8240 //////////////////////////////////////////////////////////////////////////////// 8241 8241 8242 SessionMachine::SessionMachine() 8243 : mRemoveSavedState(true) 8244 {} 8245 8246 SessionMachine::~SessionMachine() 8247 {} 8242 DEFINE_EMPTY_CTOR_DTOR (SessionMachine) 8248 8243 8249 8244 HRESULT SessionMachine::FinalConstruct() … … 8425 8420 } 8426 8421 8422 /* default is to delete saved state on Saved -> PoweredOff transition */ 8423 mRemoveSavedState = true; 8424 8427 8425 /* Confirm a successful initialization when it's the case */ 8428 8426 autoInitSpan.setSucceeded(); -
trunk/src/VBox/Main/testcase/tstVBoxAPIWin.cpp
r19477 r20931 210 210 break; 211 211 } 212 212 213 213 /* Start a VM session using the delivered VBox GUI. */ 214 214 rc = virtualBox->OpenRemoteSession (session, guid, sessiontype, … … 219 219 break; 220 220 } 221 221 222 222 /* Wait until VM is running. */ 223 223 printf ("Starting VM, please wait ...\n"); 224 224 rc = progress->WaitForCompletion (-1); 225 225 226 226 /* Get console object. */ 227 227 session->get_Console(&console); … … 234 234 235 235 /* 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); 237 241 238 242 /* Close the session. */ 239 rc = session->Close(); 240 243 rc = session->Close(); 244 241 245 } while (0); 242 246
Note:
See TracChangeset
for help on using the changeset viewer.