Changeset 52481 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Aug 22, 2014 5:27:48 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/MachineImpl.h
r52312 r52481 73 73 class HostUSBDevice; 74 74 class StorageController; 75 76 75 class SessionMachine; 77 76 … … 1258 1257 RWLockHandle *lockHandle() const; 1259 1258 1260 // IInternalMachineControl methods1261 STDMETHOD(SetRemoveSavedStateFile)(BOOL aRemove);1262 STDMETHOD(UpdateState)(MachineState_T machineState);1263 STDMETHOD(BeginPowerUp)(IProgress *aProgress);1264 STDMETHOD(EndPowerUp)(LONG iResult);1265 STDMETHOD(BeginPoweringDown)(IProgress **aProgress);1266 STDMETHOD(EndPoweringDown)(LONG aResult, IN_BSTR aErrMsg);1267 STDMETHOD(RunUSBDeviceFilters)(IUSBDevice *aUSBDevice, BOOL *aMatched, ULONG *aMaskedIfs);1268 STDMETHOD(CaptureUSBDevice)(IN_BSTR aId);1269 STDMETHOD(DetachUSBDevice)(IN_BSTR aId, BOOL aDone);1270 STDMETHOD(AutoCaptureUSBDevices)();1271 STDMETHOD(DetachAllUSBDevices)(BOOL aDone);1272 STDMETHOD(OnSessionEnd)(ISession *aSession, IProgress **aProgress);1273 STDMETHOD(BeginSavingState)(IProgress **aProgress, BSTR *aStateFilePath);1274 STDMETHOD(EndSavingState)(LONG aResult, IN_BSTR aErrMsg);1275 STDMETHOD(AdoptSavedState)(IN_BSTR aSavedStateFile);1276 STDMETHOD(BeginTakingSnapshot)(IConsole *aInitiator,1277 IN_BSTR aName,1278 IN_BSTR aDescription,1279 IProgress *aConsoleProgress,1280 BOOL fTakingSnapshotOnline,1281 BSTR *aStateFilePath);1282 STDMETHOD(EndTakingSnapshot)(BOOL aSuccess);1283 STDMETHOD(DeleteSnapshot)(IConsole *aInitiator, IN_BSTR aStartId,1284 IN_BSTR aEndID, BOOL fDeleteAllChildren,1285 MachineState_T *aMachineState, IProgress **aProgress);1286 STDMETHOD(FinishOnlineMergeMedium)();1287 STDMETHOD(RestoreSnapshot)(IConsole *aInitiator,1288 ISnapshot *aSnapshot,1289 MachineState_T *aMachineState,1290 IProgress **aProgress);1291 STDMETHOD(PullGuestProperties)(ComSafeArrayOut(BSTR, aNames), ComSafeArrayOut(BSTR, aValues),1292 ComSafeArrayOut(LONG64, aTimestamps), ComSafeArrayOut(BSTR, aFlags));1293 STDMETHOD(PushGuestProperty)(IN_BSTR aName, IN_BSTR aValue,1294 LONG64 aTimestamp, IN_BSTR aFlags);1295 STDMETHOD(LockMedia)();1296 STDMETHOD(UnlockMedia)();1297 STDMETHOD(EjectMedium)(IMediumAttachment *aAttachment,1298 IMediumAttachment **aNewAttachment);1299 STDMETHOD(ReportVmStatistics)(ULONG aValidStats, ULONG aCpuUser,1300 ULONG aCpuKernel, ULONG aCpuIdle,1301 ULONG aMemTotal, ULONG aMemFree,1302 ULONG aMemBalloon, ULONG aMemShared,1303 ULONG aMemCache, ULONG aPageTotal,1304 ULONG aAllocVMM, ULONG aFreeVMM,1305 ULONG aBalloonedVMM, ULONG aSharedVMM,1306 ULONG aVmNetRx, ULONG aVmNetTx);1307 1308 1259 // public methods only for internal purposes 1309 1260 … … 1350 1301 bool i_hasMatchingUSBFilter(const ComObjPtr<HostUSBDevice> &aDevice, ULONG *aMaskedIfs); 1351 1302 1303 HRESULT i_lockMedia(); 1304 HRESULT i_unlockMedia(); 1305 1306 private: 1307 1308 // wrapped IInternalMachineControl properties 1309 1310 // wrapped IInternalMachineControl methods 1311 HRESULT setRemoveSavedStateFile(BOOL aRemove); 1312 HRESULT updateState(MachineState_T aState); 1313 HRESULT beginPowerUp(const ComPtr<IProgress> &aProgress); 1314 HRESULT endPowerUp(LONG aResult); 1315 HRESULT beginPoweringDown(ComPtr<IProgress> &aProgress); 1316 HRESULT endPoweringDown(LONG aResult, 1317 const com::Utf8Str &aErrMsg); 1318 HRESULT runUSBDeviceFilters(const ComPtr<IUSBDevice> &aDevice, 1319 BOOL *aMatched, 1320 ULONG *aMaskedInterfaces); 1321 HRESULT captureUSBDevice(const com::Guid &aId); 1322 HRESULT detachUSBDevice(const com::Guid &aId, 1323 BOOL aDone); 1324 HRESULT autoCaptureUSBDevices(); 1325 HRESULT detachAllUSBDevices(BOOL aDone); 1326 HRESULT onSessionEnd(const ComPtr<ISession> &aSession, 1327 ComPtr<IProgress> &aProgress); 1328 HRESULT beginSavingState(ComPtr<IProgress> &aProgress, 1329 com::Utf8Str &aStateFilePath); 1330 HRESULT endSavingState(LONG aResult, 1331 const com::Utf8Str &aErrMsg); 1332 HRESULT adoptSavedState(const com::Utf8Str &aSavedStateFile); 1333 HRESULT beginTakingSnapshot(const ComPtr<IConsole> &aInitiator, 1334 const com::Utf8Str &aName, 1335 const com::Utf8Str &aDescription, 1336 const ComPtr<IProgress> &aConsoleProgress, 1337 BOOL aFTakingSnapshotOnline, 1338 com::Utf8Str &aStateFilePath); 1339 HRESULT endTakingSnapshot(BOOL aSuccess); 1340 HRESULT deleteSnapshot(const ComPtr<IConsole> &aInitiator, 1341 const com::Guid &aStartId, 1342 const com::Guid &aEndId, 1343 BOOL aDeleteAllChildren, 1344 MachineState_T *aMachineState, 1345 ComPtr<IProgress> &aProgress); 1346 HRESULT finishOnlineMergeMedium(); 1347 HRESULT restoreSnapshot(const ComPtr<IConsole> &aInitiator, 1348 const ComPtr<ISnapshot> &aSnapshot, 1349 MachineState_T *aMachineState, 1350 ComPtr<IProgress> &aProgress); 1351 HRESULT pullGuestProperties(std::vector<com::Utf8Str> &aNames, 1352 std::vector<com::Utf8Str> &aValues, 1353 std::vector<LONG64> &aTimestamps, 1354 std::vector<com::Utf8Str> &aFlags); 1355 HRESULT pushGuestProperty(const com::Utf8Str &aName, 1356 const com::Utf8Str &aValue, 1357 LONG64 aTimestamp, 1358 const com::Utf8Str &aFlags); 1352 1359 HRESULT lockMedia(); 1353 1360 HRESULT unlockMedia(); 1354 1355 private: 1361 HRESULT ejectMedium(const ComPtr<IMediumAttachment> &aAttachment, 1362 ComPtr<IMediumAttachment> &aNewAttachment); 1363 HRESULT reportVmStatistics(ULONG aValidStats, 1364 ULONG aCpuUser, 1365 ULONG aCpuKernel, 1366 ULONG aCpuIdle, 1367 ULONG aMemTotal, 1368 ULONG aMemFree, 1369 ULONG aMemBalloon, 1370 ULONG aMemShared, 1371 ULONG aMemCache, 1372 ULONG aPagedTotal, 1373 ULONG aMemAllocTotal, 1374 ULONG aMemFreeTotal, 1375 ULONG aMemBalloonTotal, 1376 ULONG aMemSharedTotal, 1377 ULONG aVmNetRx, 1378 ULONG aVmNetTx); 1379 1356 1380 1357 1381 struct ConsoleTaskData … … 1381 1405 friend struct RestoreSnapshotTask; 1382 1406 1383 HRESULT endSavingState(HRESULT aRC, const Utf8Str &aErrMsg);1407 HRESULT i_endSavingState(HRESULT aRC, const Utf8Str &aErrMsg); 1384 1408 void i_releaseSavedStateFile(const Utf8Str &strSavedStateFile, Snapshot *pSnapshotToIgnore); 1385 1409
Note:
See TracChangeset
for help on using the changeset viewer.