VirtualBox

Changeset 29354 in vbox


Ignore:
Timestamp:
May 11, 2010 1:44:25 PM (14 years ago)
Author:
vboxsync
Message:

Main: Make API change to query saved screenshots of any configured monitor in a snapshot. Not implemented, yet.

Location:
trunk/src/VBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxSnapshotDetailsDlg.cpp

    r28800 r29354  
    7070    /* Get thumbnail if present */
    7171    ULONG width = 0, height = 0;
    72     QVector <BYTE> thumbData = machine.ReadSavedThumbnailToArray (true, width, height);
     72    QVector <BYTE> thumbData = machine.ReadSavedThumbnailToArray (0, true, width, height);
    7373    mThumbnail = thumbData.size() != 0 ? QPixmap::fromImage (QImage (thumbData.data(), width, height, QImage::Format_RGB32).copy()) : QPixmap();
    74     QVector <BYTE> screenData = machine.ReadSavedScreenshotPNGToArray (width, height);
     74    QVector <BYTE> screenData = machine.ReadSavedScreenshotPNGToArray (0, width, height);
    7575    mScreenshot = screenData.size() != 0 ? QPixmap::fromImage (QImage::fromData (screenData.data(), screenData.size(), "PNG")) : QPixmap();
    7676
  • trunk/src/VBox/Main/MachineImpl.cpp

    r29347 r29354  
    46544654}
    46554655
    4656 STDMETHODIMP Machine::QuerySavedThumbnailSize(ULONG *aSize, ULONG *aWidth, ULONG *aHeight)
     4656STDMETHODIMP Machine::QuerySavedThumbnailSize(ULONG aScreenId, ULONG *aSize, ULONG *aWidth, ULONG *aHeight)
    46574657{
    46584658    LogFlowThisFunc(("\n"));
     
    46614661    CheckComArgNotNull(aWidth);
    46624662    CheckComArgNotNull(aHeight);
     4663
     4664    if (aScreenId != 0)
     4665        return E_NOTIMPL;
    46634666
    46644667    AutoCaller autoCaller(this);
     
    46884691}
    46894692
    4690 STDMETHODIMP Machine::ReadSavedThumbnailToArray(BOOL aBGR, ULONG *aWidth, ULONG *aHeight, ComSafeArrayOut(BYTE, aData))
     4693STDMETHODIMP Machine::ReadSavedThumbnailToArray(ULONG aScreenId, BOOL aBGR, ULONG *aWidth, ULONG *aHeight, ComSafeArrayOut(BYTE, aData))
    46914694{
    46924695    LogFlowThisFunc(("\n"));
     
    46954698    CheckComArgNotNull(aHeight);
    46964699    CheckComArgOutSafeArrayPointerValid(aData);
     4700
     4701    if (aScreenId != 0)
     4702        return E_NOTIMPL;
    46974703
    46984704    AutoCaller autoCaller(this);
     
    47474753}
    47484754
    4749 STDMETHODIMP Machine::QuerySavedScreenshotPNGSize(ULONG *aSize, ULONG *aWidth, ULONG *aHeight)
     4755STDMETHODIMP Machine::QuerySavedScreenshotPNGSize(ULONG aScreenId, ULONG *aSize, ULONG *aWidth, ULONG *aHeight)
    47504756{
    47514757    LogFlowThisFunc(("\n"));
     
    47544760    CheckComArgNotNull(aWidth);
    47554761    CheckComArgNotNull(aHeight);
     4762
     4763    if (aScreenId != 0)
     4764        return E_NOTIMPL;
    47564765
    47574766    AutoCaller autoCaller(this);
     
    47814790}
    47824791
    4783 STDMETHODIMP Machine::ReadSavedScreenshotPNGToArray(ULONG *aWidth, ULONG *aHeight, ComSafeArrayOut(BYTE, aData))
     4792STDMETHODIMP Machine::ReadSavedScreenshotPNGToArray(ULONG aScreenId, ULONG *aWidth, ULONG *aHeight, ComSafeArrayOut(BYTE, aData))
    47844793{
    47854794    LogFlowThisFunc(("\n"));
     
    47884797    CheckComArgNotNull(aHeight);
    47894798    CheckComArgOutSafeArrayPointerValid(aData);
     4799
     4800    if (aScreenId != 0)
     4801        return E_NOTIMPL;
    47904802
    47914803    AutoCaller autoCaller(this);
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r29335 r29354  
    42154215  <interface
    42164216     name="IMachine" extends="$unknown"
    4217      uuid="b5d4457e-888f-46ef-b2db-644616db94fd"
     4217     uuid="6d9212cb-a5c0-48b7-bbc1-3fa2ba2ee6d2"
    42184218     wsmap="managed"
    42194219     >
     
    59405940        Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state.
    59415941      </desc>
     5942      <param name="screenId" type="unsigned long" dir="in">
     5943        <desc>
     5944          Saved guest screen to query info from.
     5945        </desc>
     5946      </param>
    59425947      <param name="size" type="unsigned long" dir="out">
    59435948        <desc>
     
    59615966        Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format.
    59625967      </desc>
     5968      <param name="screenId" type="unsigned long" dir="in">
     5969        <desc>
     5970          Saved guest screen to read from.
     5971        </desc>
     5972      </param>
    59635973      <param name="BGR" type="boolean" dir="in">
    59645974        <desc>
     
    59885998        Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state.
    59895999      </desc>
     6000      <param name="screenId" type="unsigned long" dir="in">
     6001        <desc>
     6002          Saved guest screen to query info from.
     6003        </desc>
     6004      </param>
    59906005      <param name="size" type="unsigned long" dir="out">
    59916006        <desc>
     
    60096024        Screenshot in PNG format is retrieved to an array of bytes.
    60106025      </desc>
     6026      <param name="screenId" type="unsigned long" dir="in">
     6027        <desc>
     6028          Saved guest screen to read from.
     6029        </desc>
     6030      </param>
    60116031      <param name="width" type="unsigned long" dir="out">
    60126032        <desc>
  • trunk/src/VBox/Main/include/MachineImpl.h

    r29309 r29354  
    499499    STDMETHOD(GetStorageControllerByName(IN_BSTR aName, IStorageController **storageController));
    500500    STDMETHOD(GetStorageControllerByInstance(ULONG aInstance, IStorageController **storageController));
    501     STDMETHOD(QuerySavedThumbnailSize)(ULONG *aSize, ULONG *aWidth, ULONG *aHeight);
    502     STDMETHOD(ReadSavedThumbnailToArray)(BOOL aBGR, ULONG *aWidth, ULONG *aHeight, ComSafeArrayOut(BYTE, aData));
    503     STDMETHOD(QuerySavedScreenshotPNGSize)(ULONG *aSize, ULONG *aWidth, ULONG *aHeight);
    504     STDMETHOD(ReadSavedScreenshotPNGToArray)(ULONG *aWidth, ULONG *aHeight, ComSafeArrayOut(BYTE, aData));
     501    STDMETHOD(QuerySavedThumbnailSize)(ULONG aScreenId, ULONG *aSize, ULONG *aWidth, ULONG *aHeight);
     502    STDMETHOD(ReadSavedThumbnailToArray)(ULONG aScreenId, BOOL aBGR, ULONG *aWidth, ULONG *aHeight, ComSafeArrayOut(BYTE, aData));
     503    STDMETHOD(QuerySavedScreenshotPNGSize)(ULONG aScreenId, ULONG *aSize, ULONG *aWidth, ULONG *aHeight);
     504    STDMETHOD(ReadSavedScreenshotPNGToArray)(ULONG aScreenId, ULONG *aWidth, ULONG *aHeight, ComSafeArrayOut(BYTE, aData));
    505505    STDMETHOD(HotPlugCPU(ULONG aCpu));
    506506    STDMETHOD(HotUnplugCPU(ULONG aCpu));
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