VirtualBox

Changeset 105605 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Aug 6, 2024 2:00:56 PM (6 months ago)
Author:
vboxsync
Message:

Recording/Main: Renaming: Dropped the superfluous "Settings" suffix of the settings namespace recording classes. This makes those classes easier to find, also for editors which don't support namespace handling, as the same class names were used for the actual implementation classes (i.e. RecordingSettingsImpl.cpp -> RecordingSettings). No functional changes.

Location:
trunk/src/VBox/Main/src-server
Files:
4 edited

Legend:

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

    r105266 r105605  
    86198619                                const settings::Debugging *pDbg,
    86208620                                const settings::Autostart *pAutostart,
    8621                                 const settings::RecordingSettings &recording)
     8621                                const settings::Recording &recording)
    86228622{
    86238623    AssertReturn(!i_isSessionMachine(), E_FAIL);
     
    1001310013 */
    1001410014HRESULT Machine::i_saveHardware(settings::Hardware &data, settings::Debugging *pDbg,
    10015                                 settings::Autostart *pAutostart, settings::RecordingSettings &recording)
     10015                                settings::Autostart *pAutostart, settings::Recording &recording)
    1001610016{
    1001710017    HRESULT hrc = S_OK;
  • trunk/src/VBox/Main/src-server/RecordingScreenSettingsImpl.cpp

    r104635 r105605  
    6565
    6666    // use the XML settings structure in the members for simplicity
    67     Backupable<settings::RecordingScreenSettings> bd;
     67    Backupable<settings::RecordingScreen>    bd;
    6868};
    6969
     
    9393 */
    9494HRESULT RecordingScreenSettings::init(RecordingSettings *aParent, uint32_t uScreenId,
    95                                       const settings::RecordingScreenSettings& aThat)
     95                                      const settings::RecordingScreen& aThat)
    9696{
    9797    LogFlowThisFunc(("aParent: %p\n", aParent));
     
    10921092 *
    10931093 * @returns HRESULT
    1094  * @param   data                Configuration settings to load.
     1094 * @param   Settings            Screen settings to load.
    10951095 */
    1096 HRESULT RecordingScreenSettings::i_loadSettings(const settings::RecordingScreenSettings &data)
     1096HRESULT RecordingScreenSettings::i_loadSettings(const settings::RecordingScreen &Settings)
    10971097{
    10981098    AutoCaller autoCaller(this);
     
    11031103
    11041104    // simply copy
    1105     m->bd.assignCopy(&data);
     1105    m->bd.assignCopy(&Settings);
    11061106    return S_OK;
    11071107}
     
    11111111 *
    11121112 *  @returns HRESULT
    1113  *  @param   data               Configuration settings to save to.
     1113 *  @param   Settings           Screen settings to save to.
    11141114 */
    1115 HRESULT RecordingScreenSettings::i_saveSettings(settings::RecordingScreenSettings &data)
     1115HRESULT RecordingScreenSettings::i_saveSettings(settings::RecordingScreen &Settings)
    11161116{
    11171117    LogThisFunc(("%p: Screen %RU32\n", this, m ? m->uScreenId : UINT32_MAX));
     
    11231123    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    11241124
    1125     data = *m->bd.data();
     1125    Settings = *m->bd.data();
    11261126
    11271127    return S_OK;
     
    11971197}
    11981198
    1199 settings::RecordingScreenSettings &RecordingScreenSettings::i_getData(void)
     1199settings::RecordingScreen &RecordingScreenSettings::i_getData(void)
    12001200{
    12011201    /* sanity */
  • trunk/src/VBox/Main/src-server/RecordingSettingsImpl.cpp

    r105308 r105605  
    6161
    6262    // use the XML settings structure in the members for simplicity
    63     Backupable<settings::RecordingCommonSettings> bd;
     63    Backupable<settings::RecordingCommon> bd;
    6464};
    6565
     
    434434 */
    435435int RecordingSettings::i_createScreenObj(RecordingScreenSettingsObjMap &screenSettingsMap,
    436                                          uint32_t idScreen, const settings::RecordingScreenSettings &data)
     436                                         uint32_t idScreen, const settings::RecordingScreen &data)
    437437{
    438438    AssertReturn(screenSettingsMap.find(idScreen) == screenSettingsMap.end(), VERR_ALREADY_EXISTS);
     
    529529 * May be called once right after this object creation.
    530530 *
    531  * @param data                  Capture settings to load from.
     531 * @param Settings                  Recording settings to load from.
    532532 *
    533533 * @note Locks this object for writing.
    534534 */
    535 HRESULT RecordingSettings::i_loadSettings(const settings::RecordingSettings &data)
     535HRESULT RecordingSettings::i_loadSettings(const settings::Recording &Settings)
    536536{
    537537    LogFlowThisFuncEnter();
     
    544544    HRESULT hrc = S_OK;
    545545
    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())
    550550    {
    551551        RecordingScreenSettingsObjMap::iterator itScreen = m->mapScreenObj.find(itScreenData->first);
     
    573573    {
    574574        ComAssertComRCRet(hrc, hrc);
    575         AssertReturn(m->mapScreenObj.size() == data.mapScreens.size(), E_UNEXPECTED);
     575        AssertReturn(m->mapScreenObj.size() == Settings.mapScreens.size(), E_UNEXPECTED);
    576576
    577577        // simply copy
    578         m->bd.assignCopy(&data.common);
     578        m->bd.assignCopy(&Settings.common);
    579579    }
    580580
     
    600600 * Saves settings to the given settings.
    601601 *
    602  * @param data                  Where to store the capture settings to.
     602 * @param Settings                  Where to store the recording settings to.
    603603 *
    604604 * @note Locks this object for reading.
    605605 */
    606 HRESULT RecordingSettings::i_saveSettings(settings::RecordingSettings &data)
     606HRESULT RecordingSettings::i_saveSettings(settings::Recording &Settings)
    607607{
    608608    LogFlowThisFuncEnter();
     
    623623    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    624624
    625     data.common = *m->bd.data();
     625    Settings.common = *m->bd.data();
    626626
    627627    HRESULT hrc = S_OK;
     
    631631                                                     ++itScreen)
    632632    {
    633         hrc = itScreen->second->i_saveSettings(data.mapScreens[itScreen->first /* Screen ID */]);
     633        hrc = itScreen->second->i_saveSettings(Settings.mapScreens[itScreen->first /* Screen ID */]);
    634634        if (FAILED(hrc))
    635635            break;
     
    923923        if (m->mapScreenObj.find(i) == m->mapScreenObj.end())
    924924        {
    925             settings::RecordingScreenSettings defaultScreenSettings(i /* Screen ID */); /* Apply default settings. */
     925            settings::RecordingScreen defaultScreenSettings(i /* Screen ID */); /* Apply default settings. */
    926926
    927927            int vrc2 = i_createScreenObj(m->mapScreenObj, i /* Screen ID */, defaultScreenSettings);
  • trunk/src/VBox/Main/src-server/SnapshotImpl.cpp

    r101035 r105605  
    12741274                                          const settings::Debugging *pDbg,
    12751275                                          const settings::Autostart *pAutostart,
    1276                                           const settings::RecordingSettings &recording,
     1276                                          const settings::Recording &recording,
    12771277                                          IN_GUID aSnapshotId,
    12781278                                          const Utf8Str &aStateFilePath)
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