VirtualBox

Changeset 78068 in vbox


Ignore:
Timestamp:
Apr 10, 2019 9:38:27 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129924
Message:

Recording/Main: Some renaming, comment fixes.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/RecordingScreenSettingsImpl.h

    r76562 r78068  
    4444
    4545    // public initializer/uninitializer for internal purposes only
    46     HRESULT init(RecordingSettings *aParent, uint32_t uScreenId, const settings::RecordingScreenSettings& data);
    47     HRESULT init(RecordingSettings *aParent, RecordingScreenSettings *that);
    48     HRESULT initCopy(RecordingSettings *aParent, RecordingScreenSettings *that);
     46    HRESULT init(RecordingSettings *aParent, uint32_t uScreenId, const settings::RecordingScreenSettings& aThat);
     47    HRESULT init(RecordingSettings *aParent, RecordingScreenSettings *aThat);
     48    HRESULT initCopy(RecordingSettings *aParent, RecordingScreenSettings *aThat);
    4949    void uninit();
    50 
    51     // public methods only for internal purposes
    52     HRESULT i_loadSettings(const settings::RecordingScreenSettings &data);
    53     HRESULT i_saveSettings(settings::RecordingScreenSettings &data);
    54 
    55     void i_rollback();
    56     void i_commit();
    57     void i_copyFrom(RecordingScreenSettings *aThat);
    58     void i_applyDefaults();
    5950
    6051private:
  • trunk/src/VBox/Main/include/RecordingSettingsImpl.h

    r76562 r78068  
    4444    // public initializer/uninitializer for internal purposes only
    4545    HRESULT init(Machine *parent);
    46     HRESULT init(Machine *parent, RecordingSettings *that);
    47     HRESULT initCopy(Machine *parent, RecordingSettings *that);
     46    HRESULT init(Machine *parent, RecordingSettings *aThat);
     47    HRESULT initCopy(Machine *parent, RecordingSettings *aThat);
    4848    void uninit();
    4949
  • trunk/src/VBox/Main/src-server/RecordingScreenSettingsImpl.cpp

    r76553 r78068  
    7272
    7373/**
    74  * Initializes the audio adapter object.
     74 * Initializes the recording screen settings object.
    7575 *
    7676 * @returns COM result indicator
    7777 */
    78 HRESULT RecordingScreenSettings::init(RecordingSettings *aParent, uint32_t uScreenId, const settings::RecordingScreenSettings& data)
     78HRESULT RecordingScreenSettings::init(RecordingSettings *aParent, uint32_t uScreenId,
     79                                      const settings::RecordingScreenSettings& aThat)
    7980{
    8081    LogFlowThisFuncEnter();
     
    9697    m->uScreenId = uScreenId;
    9798    m->bd.allocate();
    98     m->bd->operator=(data);
     99    m->bd->operator=(aThat);
    99100
    100101    HRESULT rc = S_OK;
     
    123124 *  it shares data with is destroyed.
    124125 */
    125 HRESULT RecordingScreenSettings::init(RecordingSettings *aParent, RecordingScreenSettings *that)
     126HRESULT RecordingScreenSettings::init(RecordingSettings *aParent, RecordingScreenSettings *aThat)
    126127{
    127128    LogFlowThisFuncEnter();
    128     LogFlowThisFunc(("aParent: %p, that: %p\n", aParent, that));
    129 
    130     ComAssertRet(aParent && that, E_INVALIDARG);
     129    LogFlowThisFunc(("aParent: %p, aThat: %p\n", aParent, aThat));
     130
     131    ComAssertRet(aParent && aThat, E_INVALIDARG);
    131132
    132133    /* Enclose the state transition NotReady->InInit->Ready */
     
    137138
    138139    unconst(m->pParent) = aParent;
    139     m->pPeer = that;
    140 
    141     AutoWriteLock thatlock(that COMMA_LOCKVAL_SRC_POS);
    142 
    143     m->uScreenId = that->m->uScreenId;
    144     m->bd.share(that->m->bd);
     140    m->pPeer = aThat;
     141
     142    AutoWriteLock thatlock(aThat COMMA_LOCKVAL_SRC_POS);
     143
     144    m->uScreenId = aThat->m->uScreenId;
     145    m->bd.share(aThat->m->bd);
    145146
    146147    HRESULT rc = S_OK;
     
    166167 *  of the original object passed as an argument.
    167168 */
    168 HRESULT RecordingScreenSettings::initCopy(RecordingSettings *aParent, RecordingScreenSettings *that)
     169HRESULT RecordingScreenSettings::initCopy(RecordingSettings *aParent, RecordingScreenSettings *aThat)
    169170{
    170171    LogFlowThisFuncEnter();
    171     LogFlowThisFunc(("aParent: %p, that: %p\n", aParent, that));
    172 
    173     ComAssertRet(aParent && that, E_INVALIDARG);
     172    LogFlowThisFunc(("aParent: %p, aThat: %p\n", aParent, aThat));
     173
     174    ComAssertRet(aParent && aThat, E_INVALIDARG);
    174175
    175176    /* Enclose the state transition NotReady->InInit->Ready */
     
    182183    /* mPeer is left null. */
    183184
    184     AutoWriteLock thatlock(that COMMA_LOCKVAL_SRC_POS);
    185 
    186     m->uScreenId = that->m->uScreenId;
    187     m->bd.attachCopy(that->m->bd);
     185    AutoWriteLock thatlock(aThat COMMA_LOCKVAL_SRC_POS);
     186
     187    m->uScreenId = aThat->m->uScreenId;
     188    m->bd.attachCopy(aThat->m->bd);
    188189
    189190    HRESULT rc = S_OK;
  • trunk/src/VBox/Main/src-server/RecordingSettingsImpl.cpp

    r76553 r78068  
    6565
    6666/**
    67  * Initializes the audio adapter object.
     67 * Initializes the recording settings object.
    6868 *
    6969 * @returns COM result indicator
     
    101101 *  it shares data with is destroyed.
    102102 */
    103 HRESULT RecordingSettings::init(Machine *aParent, RecordingSettings *that)
    104 {
    105     LogFlowThisFuncEnter();
    106     LogFlowThisFunc(("aParent: %p, that: %p\n", aParent, that));
    107 
    108     ComAssertRet(aParent && that, E_INVALIDARG);
     103HRESULT RecordingSettings::init(Machine *aParent, RecordingSettings *aThat)
     104{
     105    LogFlowThisFuncEnter();
     106    LogFlowThisFunc(("aParent: %p, aThat: %p\n", aParent, aThat));
     107
     108    ComAssertRet(aParent && aThat, E_INVALIDARG);
    109109
    110110    /* Enclose the state transition NotReady->InInit->Ready */
     
    115115
    116116    unconst(m->pMachine) = aParent;
    117     m->pPeer = that;
    118 
    119     AutoWriteLock thatlock(that COMMA_LOCKVAL_SRC_POS);
    120 
    121     m->bd.share(that->m->bd);
    122     m->mapScreenObj = that->m->mapScreenObj;
     117    m->pPeer = aThat;
     118
     119    AutoWriteLock thatlock(aThat COMMA_LOCKVAL_SRC_POS);
     120
     121    m->bd.share(aThat->m->bd);
     122    m->mapScreenObj = aThat->m->mapScreenObj;
    123123
    124124    autoInitSpan.setSucceeded();
     
    133133 *  of the original object passed as an argument.
    134134 */
    135 HRESULT RecordingSettings::initCopy(Machine *aParent, RecordingSettings *that)
    136 {
    137     LogFlowThisFuncEnter();
    138     LogFlowThisFunc(("aParent: %p, that: %p\n", aParent, that));
    139 
    140     ComAssertRet(aParent && that, E_INVALIDARG);
     135HRESULT RecordingSettings::initCopy(Machine *aParent, RecordingSettings *aThat)
     136{
     137    LogFlowThisFuncEnter();
     138    LogFlowThisFunc(("aParent: %p, aThat: %p\n", aParent, aThat));
     139
     140    ComAssertRet(aParent && aThat, E_INVALIDARG);
    141141
    142142    /* Enclose the state transition NotReady->InInit->Ready */
     
    149149    // mPeer is left null
    150150
    151     AutoWriteLock thatlock(that COMMA_LOCKVAL_SRC_POS);
    152 
    153     m->bd.attachCopy(that->m->bd);
    154     m->mapScreenObj = that->m->mapScreenObj;
     151    AutoWriteLock thatlock(aThat COMMA_LOCKVAL_SRC_POS);
     152
     153    m->bd.attachCopy(aThat->m->bd);
     154    m->mapScreenObj = aThat->m->mapScreenObj;
    155155
    156156    autoInitSpan.setSucceeded();
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette