VirtualBox

Changeset 75326 in vbox


Ignore:
Timestamp:
Nov 8, 2018 3:50:17 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126447
Message:

Recording: Added a read-only ID attribute to ICaptureScreenSettings.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r75271 r75326  
    48094809  <interface
    48104810    name="ICaptureScreenSettings" extends="$unknown"
    4811     uuid="17DA29A9-3F41-482E-A9BB-3D183BA3EE59"
     4811    uuid="B19FFA8A-686C-4221-AB29-3C1FA33946CA"
    48124812    wsmap="managed"
    48134813    >
     
    48294829      </param>
    48304830    </method>
     4831
     4832    <attribute name="id" type="unsigned long" readonly="yes">
     4833      <desc>
     4834        This attribute contains the screen ID bound to these settings.
     4835      </desc>
     4836    </attribute>
    48314837
    48324838    <attribute name="enabled" type="boolean" default="false">
  • trunk/src/VBox/Main/include/CaptureScreenSettingsImpl.h

    r75324 r75326  
    6161
    6262    // wrapped ICaptureScreenSettings properties
     63    HRESULT getId(ULONG *id);
    6364    HRESULT getEnabled(BOOL *enabled);
    6465    HRESULT setEnabled(BOOL enabled);
  • trunk/src/VBox/Main/src-server/CaptureScreenSettingsImpl.cpp

    r75324 r75326  
    243243}
    244244
     245HRESULT CaptureScreenSettings::getId(ULONG *id)
     246{
     247    AutoCaller autoCaller(this);
     248    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     249
     250    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     251
     252    *id = m->uScreenId;
     253
     254    return S_OK;
     255}
     256
    245257HRESULT CaptureScreenSettings::getEnabled(BOOL *enabled)
    246258{
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