Changeset 29354 in vbox
- Timestamp:
- May 11, 2010 1:44:25 PM (14 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
-
Frontends/VirtualBox/src/VBoxSnapshotDetailsDlg.cpp (modified) (1 diff)
-
Main/MachineImpl.cpp (modified) (8 diffs)
-
Main/idl/VirtualBox.xidl (modified) (5 diffs)
-
Main/include/MachineImpl.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxSnapshotDetailsDlg.cpp
r28800 r29354 70 70 /* Get thumbnail if present */ 71 71 ULONG width = 0, height = 0; 72 QVector <BYTE> thumbData = machine.ReadSavedThumbnailToArray ( true, width, height);72 QVector <BYTE> thumbData = machine.ReadSavedThumbnailToArray (0, true, width, height); 73 73 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); 75 75 mScreenshot = screenData.size() != 0 ? QPixmap::fromImage (QImage::fromData (screenData.data(), screenData.size(), "PNG")) : QPixmap(); 76 76 -
trunk/src/VBox/Main/MachineImpl.cpp
r29347 r29354 4654 4654 } 4655 4655 4656 STDMETHODIMP Machine::QuerySavedThumbnailSize(ULONG *aSize, ULONG *aWidth, ULONG *aHeight)4656 STDMETHODIMP Machine::QuerySavedThumbnailSize(ULONG aScreenId, ULONG *aSize, ULONG *aWidth, ULONG *aHeight) 4657 4657 { 4658 4658 LogFlowThisFunc(("\n")); … … 4661 4661 CheckComArgNotNull(aWidth); 4662 4662 CheckComArgNotNull(aHeight); 4663 4664 if (aScreenId != 0) 4665 return E_NOTIMPL; 4663 4666 4664 4667 AutoCaller autoCaller(this); … … 4688 4691 } 4689 4692 4690 STDMETHODIMP Machine::ReadSavedThumbnailToArray( BOOL aBGR, ULONG *aWidth, ULONG *aHeight, ComSafeArrayOut(BYTE, aData))4693 STDMETHODIMP Machine::ReadSavedThumbnailToArray(ULONG aScreenId, BOOL aBGR, ULONG *aWidth, ULONG *aHeight, ComSafeArrayOut(BYTE, aData)) 4691 4694 { 4692 4695 LogFlowThisFunc(("\n")); … … 4695 4698 CheckComArgNotNull(aHeight); 4696 4699 CheckComArgOutSafeArrayPointerValid(aData); 4700 4701 if (aScreenId != 0) 4702 return E_NOTIMPL; 4697 4703 4698 4704 AutoCaller autoCaller(this); … … 4747 4753 } 4748 4754 4749 STDMETHODIMP Machine::QuerySavedScreenshotPNGSize(ULONG *aSize, ULONG *aWidth, ULONG *aHeight)4755 STDMETHODIMP Machine::QuerySavedScreenshotPNGSize(ULONG aScreenId, ULONG *aSize, ULONG *aWidth, ULONG *aHeight) 4750 4756 { 4751 4757 LogFlowThisFunc(("\n")); … … 4754 4760 CheckComArgNotNull(aWidth); 4755 4761 CheckComArgNotNull(aHeight); 4762 4763 if (aScreenId != 0) 4764 return E_NOTIMPL; 4756 4765 4757 4766 AutoCaller autoCaller(this); … … 4781 4790 } 4782 4791 4783 STDMETHODIMP Machine::ReadSavedScreenshotPNGToArray(ULONG *aWidth, ULONG *aHeight, ComSafeArrayOut(BYTE, aData))4792 STDMETHODIMP Machine::ReadSavedScreenshotPNGToArray(ULONG aScreenId, ULONG *aWidth, ULONG *aHeight, ComSafeArrayOut(BYTE, aData)) 4784 4793 { 4785 4794 LogFlowThisFunc(("\n")); … … 4788 4797 CheckComArgNotNull(aHeight); 4789 4798 CheckComArgOutSafeArrayPointerValid(aData); 4799 4800 if (aScreenId != 0) 4801 return E_NOTIMPL; 4790 4802 4791 4803 AutoCaller autoCaller(this); -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r29335 r29354 4215 4215 <interface 4216 4216 name="IMachine" extends="$unknown" 4217 uuid=" b5d4457e-888f-46ef-b2db-644616db94fd"4217 uuid="6d9212cb-a5c0-48b7-bbc1-3fa2ba2ee6d2" 4218 4218 wsmap="managed" 4219 4219 > … … 5940 5940 Returns size in bytes and dimensions in pixels of a saved thumbnail bitmap from saved state. 5941 5941 </desc> 5942 <param name="screenId" type="unsigned long" dir="in"> 5943 <desc> 5944 Saved guest screen to query info from. 5945 </desc> 5946 </param> 5942 5947 <param name="size" type="unsigned long" dir="out"> 5943 5948 <desc> … … 5961 5966 Thumbnail is retrieved to an array of bytes in uncompressed 32-bit BGRA or RGBA format. 5962 5967 </desc> 5968 <param name="screenId" type="unsigned long" dir="in"> 5969 <desc> 5970 Saved guest screen to read from. 5971 </desc> 5972 </param> 5963 5973 <param name="BGR" type="boolean" dir="in"> 5964 5974 <desc> … … 5988 5998 Returns size in bytes and dimensions of a saved PNG image of screenshot from saved state. 5989 5999 </desc> 6000 <param name="screenId" type="unsigned long" dir="in"> 6001 <desc> 6002 Saved guest screen to query info from. 6003 </desc> 6004 </param> 5990 6005 <param name="size" type="unsigned long" dir="out"> 5991 6006 <desc> … … 6009 6024 Screenshot in PNG format is retrieved to an array of bytes. 6010 6025 </desc> 6026 <param name="screenId" type="unsigned long" dir="in"> 6027 <desc> 6028 Saved guest screen to read from. 6029 </desc> 6030 </param> 6011 6031 <param name="width" type="unsigned long" dir="out"> 6012 6032 <desc> -
trunk/src/VBox/Main/include/MachineImpl.h
r29309 r29354 499 499 STDMETHOD(GetStorageControllerByName(IN_BSTR aName, IStorageController **storageController)); 500 500 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)); 505 505 STDMETHOD(HotPlugCPU(ULONG aCpu)); 506 506 STDMETHOD(HotUnplugCPU(ULONG aCpu));
Note:
See TracChangeset
for help on using the changeset viewer.

