Changeset 105605 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Aug 6, 2024 2:00:56 PM (6 months ago)
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r105266 r105605 8619 8619 const settings::Debugging *pDbg, 8620 8620 const settings::Autostart *pAutostart, 8621 const settings::Recording Settings&recording)8621 const settings::Recording &recording) 8622 8622 { 8623 8623 AssertReturn(!i_isSessionMachine(), E_FAIL); … … 10013 10013 */ 10014 10014 HRESULT Machine::i_saveHardware(settings::Hardware &data, settings::Debugging *pDbg, 10015 settings::Autostart *pAutostart, settings::Recording Settings&recording)10015 settings::Autostart *pAutostart, settings::Recording &recording) 10016 10016 { 10017 10017 HRESULT hrc = S_OK; -
trunk/src/VBox/Main/src-server/RecordingScreenSettingsImpl.cpp
r104635 r105605 65 65 66 66 // use the XML settings structure in the members for simplicity 67 Backupable<settings::RecordingScreen Settings>bd;67 Backupable<settings::RecordingScreen> bd; 68 68 }; 69 69 … … 93 93 */ 94 94 HRESULT RecordingScreenSettings::init(RecordingSettings *aParent, uint32_t uScreenId, 95 const settings::RecordingScreen Settings& aThat)95 const settings::RecordingScreen& aThat) 96 96 { 97 97 LogFlowThisFunc(("aParent: %p\n", aParent)); … … 1092 1092 * 1093 1093 * @returns HRESULT 1094 * @param data Configuration settings to load.1094 * @param Settings Screen settings to load. 1095 1095 */ 1096 HRESULT RecordingScreenSettings::i_loadSettings(const settings::RecordingScreen Settings &data)1096 HRESULT RecordingScreenSettings::i_loadSettings(const settings::RecordingScreen &Settings) 1097 1097 { 1098 1098 AutoCaller autoCaller(this); … … 1103 1103 1104 1104 // simply copy 1105 m->bd.assignCopy(& data);1105 m->bd.assignCopy(&Settings); 1106 1106 return S_OK; 1107 1107 } … … 1111 1111 * 1112 1112 * @returns HRESULT 1113 * @param data Configuration settings to save to.1113 * @param Settings Screen settings to save to. 1114 1114 */ 1115 HRESULT RecordingScreenSettings::i_saveSettings(settings::RecordingScreen Settings &data)1115 HRESULT RecordingScreenSettings::i_saveSettings(settings::RecordingScreen &Settings) 1116 1116 { 1117 1117 LogThisFunc(("%p: Screen %RU32\n", this, m ? m->uScreenId : UINT32_MAX)); … … 1123 1123 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 1124 1124 1125 data= *m->bd.data();1125 Settings = *m->bd.data(); 1126 1126 1127 1127 return S_OK; … … 1197 1197 } 1198 1198 1199 settings::RecordingScreen Settings&RecordingScreenSettings::i_getData(void)1199 settings::RecordingScreen &RecordingScreenSettings::i_getData(void) 1200 1200 { 1201 1201 /* sanity */ -
trunk/src/VBox/Main/src-server/RecordingSettingsImpl.cpp
r105308 r105605 61 61 62 62 // use the XML settings structure in the members for simplicity 63 Backupable<settings::RecordingCommon Settings> bd;63 Backupable<settings::RecordingCommon> bd; 64 64 }; 65 65 … … 434 434 */ 435 435 int RecordingSettings::i_createScreenObj(RecordingScreenSettingsObjMap &screenSettingsMap, 436 uint32_t idScreen, const settings::RecordingScreen Settings&data)436 uint32_t idScreen, const settings::RecordingScreen &data) 437 437 { 438 438 AssertReturn(screenSettingsMap.find(idScreen) == screenSettingsMap.end(), VERR_ALREADY_EXISTS); … … 529 529 * May be called once right after this object creation. 530 530 * 531 * @param data Capturesettings to load from.531 * @param Settings Recording settings to load from. 532 532 * 533 533 * @note Locks this object for writing. 534 534 */ 535 HRESULT RecordingSettings::i_loadSettings(const settings::Recording Settings &data)535 HRESULT RecordingSettings::i_loadSettings(const settings::Recording &Settings) 536 536 { 537 537 LogFlowThisFuncEnter(); … … 544 544 HRESULT hrc = S_OK; 545 545 546 LogFlowThisFunc(("Data has %zu screens\n", data.mapScreens.size()));547 548 settings::RecordingScreenSettingsMap::const_iterator itScreenData = data.mapScreens.begin();549 while (itScreenData != data.mapScreens.end())546 LogFlowThisFunc(("Data has %zu screens\n", Settings.mapScreens.size())); 547 548 settings::RecordingScreenSettingsMap::const_iterator itScreenData = Settings.mapScreens.begin(); 549 while (itScreenData != Settings.mapScreens.end()) 550 550 { 551 551 RecordingScreenSettingsObjMap::iterator itScreen = m->mapScreenObj.find(itScreenData->first); … … 573 573 { 574 574 ComAssertComRCRet(hrc, hrc); 575 AssertReturn(m->mapScreenObj.size() == data.mapScreens.size(), E_UNEXPECTED);575 AssertReturn(m->mapScreenObj.size() == Settings.mapScreens.size(), E_UNEXPECTED); 576 576 577 577 // simply copy 578 m->bd.assignCopy(& data.common);578 m->bd.assignCopy(&Settings.common); 579 579 } 580 580 … … 600 600 * Saves settings to the given settings. 601 601 * 602 * @param data Where to store the capturesettings to.602 * @param Settings Where to store the recording settings to. 603 603 * 604 604 * @note Locks this object for reading. 605 605 */ 606 HRESULT RecordingSettings::i_saveSettings(settings::Recording Settings &data)606 HRESULT RecordingSettings::i_saveSettings(settings::Recording &Settings) 607 607 { 608 608 LogFlowThisFuncEnter(); … … 623 623 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 624 624 625 data.common = *m->bd.data();625 Settings.common = *m->bd.data(); 626 626 627 627 HRESULT hrc = S_OK; … … 631 631 ++itScreen) 632 632 { 633 hrc = itScreen->second->i_saveSettings( data.mapScreens[itScreen->first /* Screen ID */]);633 hrc = itScreen->second->i_saveSettings(Settings.mapScreens[itScreen->first /* Screen ID */]); 634 634 if (FAILED(hrc)) 635 635 break; … … 923 923 if (m->mapScreenObj.find(i) == m->mapScreenObj.end()) 924 924 { 925 settings::RecordingScreen SettingsdefaultScreenSettings(i /* Screen ID */); /* Apply default settings. */925 settings::RecordingScreen defaultScreenSettings(i /* Screen ID */); /* Apply default settings. */ 926 926 927 927 int vrc2 = i_createScreenObj(m->mapScreenObj, i /* Screen ID */, defaultScreenSettings); -
trunk/src/VBox/Main/src-server/SnapshotImpl.cpp
r101035 r105605 1274 1274 const settings::Debugging *pDbg, 1275 1275 const settings::Autostart *pAutostart, 1276 const settings::Recording Settings&recording,1276 const settings::Recording &recording, 1277 1277 IN_GUID aSnapshotId, 1278 1278 const Utf8Str &aStateFilePath)
Note:
See TracChangeset
for help on using the changeset viewer.