Changeset 48607 in vbox for trunk/src/VBox/Main
- Timestamp:
- Sep 20, 2013 3:47:37 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 89180
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/Makefile.kmk
r48600 r48607 350 350 src-server/HostNetworkInterfaceImpl.cpp \ 351 351 src-server/HostPower.cpp \ 352 src-server/HostVideo CaptureDeviceImpl.cpp \352 src-server/HostVideoInputDeviceImpl.cpp \ 353 353 src-server/MachineImpl.cpp \ 354 354 src-server/MachineImplCloneVM.cpp \ -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r48578 r48607 8309 8309 8310 8310 <interface 8311 name="IHostVideo CaptureDevice" extends="$unknown"8312 uuid=" b3979ea4-bf32-4a03-8158-44d64a59487d"8311 name="IHostVideoInputDevice" extends="$unknown" 8312 uuid="a1ceae44-d65e-4156-9359-d390f93ee9a0" 8313 8313 wsmap="managed" 8314 8314 > … … 8332 8332 <interface 8333 8333 name="IHost" extends="$unknown" 8334 uuid=" e1e3150d-1764-4819-b53a-c09a75a8b8f0"8334 uuid="93269330-48ca-4096-b4a2-1189df336267" 8335 8335 wsmap="managed" 8336 8336 > … … 8788 8788 </method> 8789 8789 8790 <attribute name="video CaptureDevices" type="IHostVideoCaptureDevice" safearray="yes" readonly="yes">8790 <attribute name="videoInputDevices" type="IHostVideoInputDevice" safearray="yes" readonly="yes"> 8791 8791 <desc>List of currently available host video capture devices.</desc> 8792 8792 </attribute> -
trunk/src/VBox/Main/include/HostImpl.h
r48578 r48607 78 78 STDMETHOD(COMGETTER(UTCTime))(LONG64 *aUTCTime); 79 79 STDMETHOD(COMGETTER(Acceleration3DAvailable))(BOOL *aSupported); 80 STDMETHOD(COMGETTER(Video CaptureDevices))(ComSafeArrayOut(IHostVideoCaptureDevice*, aVideoCaptureDevices));80 STDMETHOD(COMGETTER(VideoInputDevices))(ComSafeArrayOut(IHostVideoInputDevice*, aVideoInputDevices)); 81 81 82 82 // IHost methods -
trunk/src/VBox/Main/include/HostVideoInputDeviceImpl.h
r48600 r48607 18 18 */ 19 19 20 #ifndef HOSTVIDEO CAPTUREDEVICE_IMPL_H_21 #define HOSTVIDEO CAPTUREDEVICE_IMPL_H_20 #ifndef HOSTVIDEOINPUTDEVICE_IMPL_H_ 21 #define HOSTVIDEOINPUTDEVICE_IMPL_H_ 22 22 23 #include "HostVideo CaptureDeviceWrap.h"23 #include "HostVideoInputDeviceWrap.h" 24 24 25 25 #include <list> 26 26 27 class HostVideo CaptureDevice;27 class HostVideoInputDevice; 28 28 29 typedef std::list<ComObjPtr<HostVideo CaptureDevice> > HostVideoCaptureDeviceList;29 typedef std::list<ComObjPtr<HostVideoInputDevice> > HostVideoInputDeviceList; 30 30 31 class ATL_NO_VTABLE HostVideo CaptureDevice :32 public HostVideo CaptureDeviceWrap31 class ATL_NO_VTABLE HostVideoInputDevice : 32 public HostVideoInputDeviceWrap 33 33 { 34 34 public: 35 35 36 DECLARE_EMPTY_CTOR_DTOR(HostVideo CaptureDevice)36 DECLARE_EMPTY_CTOR_DTOR(HostVideoInputDevice) 37 37 38 38 HRESULT FinalConstruct(); … … 43 43 void uninit(); 44 44 45 static HRESULT queryHostDevices(HostVideo CaptureDeviceList *pList);45 static HRESULT queryHostDevices(HostVideoInputDeviceList *pList); 46 46 47 47 private: 48 48 49 // wrapped IHostVideo CaptureDevice properties49 // wrapped IHostVideoInputDevice properties 50 50 virtual HRESULT getName(com::Utf8Str &aName) { aName = m.name; return S_OK; } 51 51 virtual HRESULT getPath(com::Utf8Str &aPath) { aPath = m.path; return S_OK; } … … 67 67 }; 68 68 69 #endif // HOSTVIDEO CAPTUREDEVICE_IMPL_H_69 #endif // HOSTVIDEOINPUTDEVICE_IMPL_H_ 70 70 71 71 /* vi: set tabstop=4 shiftwidth=4 expandtab: */ -
trunk/src/VBox/Main/src-server/HostImpl.cpp
r48578 r48607 32 32 33 33 #include "HostNetworkInterfaceImpl.h" 34 #include "HostVideo CaptureDeviceImpl.h"34 #include "HostVideoInputDeviceImpl.h" 35 35 #include "MachineImpl.h" 36 36 #include "AutoCaller.h" … … 1731 1731 * 1732 1732 * @returns COM status code 1733 * @param aVideo CaptureDevices Array of interface pointers to be filled.1734 */ 1735 STDMETHODIMP Host::COMGETTER(Video CaptureDevices)(ComSafeArrayOut(IHostVideoCaptureDevice*, aVideoCaptureDevices))1736 { 1737 if (ComSafeArrayOutIsNull(aVideo CaptureDevices))1733 * @param aVideoInputDevices Array of interface pointers to be filled. 1734 */ 1735 STDMETHODIMP Host::COMGETTER(VideoInputDevices)(ComSafeArrayOut(IHostVideoInputDevice*, aVideoInputDevices)) 1736 { 1737 if (ComSafeArrayOutIsNull(aVideoInputDevices)) 1738 1738 return E_POINTER; 1739 1739 … … 1742 1742 1743 1743 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 1744 HostVideo CaptureDeviceList list;1745 1746 HRESULT hr = HostVideo CaptureDevice::queryHostDevices(&list);1744 HostVideoInputDeviceList list; 1745 1746 HRESULT hr = HostVideoInputDevice::queryHostDevices(&list); 1747 1747 1748 1748 if (SUCCEEDED(hr)) 1749 1749 { 1750 SafeIfaceArray<IHostVideo CaptureDevice> devices(list);1751 devices.detachTo(ComSafeArrayOutArg(aVideo CaptureDevices));1750 SafeIfaceArray<IHostVideoInputDevice> devices(list); 1751 devices.detachTo(ComSafeArrayOutArg(aVideoInputDevices)); 1752 1752 } 1753 1753 -
trunk/src/VBox/Main/src-server/HostVideoInputDeviceImpl.cpp
r48600 r48607 17 17 */ 18 18 19 #include "HostVideo CaptureDeviceImpl.h"19 #include "HostVideoInputDeviceImpl.h" 20 20 #include "Logging.h" 21 21 … … 25 25 26 26 /* 27 * HostVideo CaptureDevice implementation.28 */ 29 DEFINE_EMPTY_CTOR_DTOR(HostVideo CaptureDevice)30 31 HRESULT HostVideo CaptureDevice::FinalConstruct()27 * HostVideoInputDevice implementation. 28 */ 29 DEFINE_EMPTY_CTOR_DTOR(HostVideoInputDevice) 30 31 HRESULT HostVideoInputDevice::FinalConstruct() 32 32 { 33 33 return BaseFinalConstruct(); 34 34 } 35 35 36 void HostVideo CaptureDevice::FinalRelease()36 void HostVideoInputDevice::FinalRelease() 37 37 { 38 38 uninit(); … … 44 44 * Initializes the instance. 45 45 */ 46 HRESULT HostVideo CaptureDevice::init(const com::Utf8Str &name, const com::Utf8Str &path, const com::Utf8Str &alias)46 HRESULT HostVideoInputDevice::init(const com::Utf8Str &name, const com::Utf8Str &path, const com::Utf8Str &alias) 47 47 { 48 48 LogFlowThisFunc(("\n")); … … 66 66 * Called either from FinalRelease() or by the parent when it gets destroyed. 67 67 */ 68 void HostVideo CaptureDevice::uninit()68 void HostVideoInputDevice::uninit() 69 69 { 70 70 LogFlowThisFunc(("\n")); … … 80 80 } 81 81 82 static HRESULT hostVideo CaptureDeviceAdd(HostVideoCaptureDeviceList *pList,83 84 85 86 { 87 ComObjPtr<HostVideo CaptureDevice> obj;82 static HRESULT hostVideoInputDeviceAdd(HostVideoInputDeviceList *pList, 83 const com::Utf8Str &name, 84 const com::Utf8Str &path, 85 const com::Utf8Str &alias) 86 { 87 ComObjPtr<HostVideoInputDevice> obj; 88 88 HRESULT hr = obj.createObject(); 89 89 if (SUCCEEDED(hr)) … … 110 110 } 111 111 112 static HRESULT hvcdFillList(HostVideo CaptureDeviceList *pList, IEnumMoniker *pEnumMoniker)112 static HRESULT hvcdFillList(HostVideoInputDeviceList *pList, IEnumMoniker *pEnumMoniker) 113 113 { 114 114 int iDevice = 0; … … 159 159 com::Utf8Str alias = com::Utf8StrFmt(".%d", iDevice); 160 160 161 hr = hostVideo CaptureDeviceAdd(pList, name, path, alias);161 hr = hostVideoInputDeviceAdd(pList, name, path, alias); 162 162 163 163 pPropBag->Release(); … … 171 171 } 172 172 173 static HRESULT fillDeviceList(HostVideo CaptureDeviceList *pList)173 static HRESULT fillDeviceList(HostVideoInputDeviceList *pList) 174 174 { 175 175 IEnumMoniker *pEnumMoniker = NULL; … … 191 191 } 192 192 #else 193 static HRESULT fillDeviceList(HostVideo CaptureDeviceList *pList)193 static HRESULT fillDeviceList(HostVideoInputDeviceList *pList) 194 194 { 195 195 NOREF(pList); … … 198 198 #endif /* RT_OS_WINDOWS */ 199 199 200 /* static */ HRESULT HostVideo CaptureDevice::queryHostDevices(HostVideoCaptureDeviceList *pList)200 /* static */ HRESULT HostVideoInputDevice::queryHostDevices(HostVideoInputDeviceList *pList) 201 201 { 202 202 HRESULT hr = fillDeviceList(pList);
Note:
See TracChangeset
for help on using the changeset viewer.