1 #include "QuickCamDevice.h" 2 3 const usb_named_support_descriptor kSupportedDevices[] = { 4 {{ 0, 0, 0, 0x046d, 0x0840 }, "Logitech", "QuickCam Express"}, 5 {{ 0, 0, 0, 0x046d, 0x0850 }, "Logitech", "QuickCam Express LEGO"}, 6 {{ 0, 0, 0, 0x046d, 0xd001 }, "Logitech", "QuickCam Express"}, // Alan's 7 {{ 0, 0, 0, 0, 0}, NULL, NULL } 8 }; 9 10 11 // ----------------------------------------------------------------------------- 12 QuickCamDevice::QuickCamDevice(CamDeviceAddon &_addon, BUSBDevice* _device) 13 :CamDevice(_addon, _device) 14 { 15 fInitStatus = B_OK; 16 } 17 18 // ----------------------------------------------------------------------------- 19 QuickCamDevice::~QuickCamDevice() 20 { 21 22 } 23 24 // ----------------------------------------------------------------------------- 25 QuickCamDeviceAddon::QuickCamDeviceAddon(WebCamMediaAddOn* webcam) 26 : CamDeviceAddon(webcam) 27 { 28 SetSupportedDevices(kSupportedDevices); 29 } 30 31 // ----------------------------------------------------------------------------- 32 QuickCamDeviceAddon::~QuickCamDeviceAddon() 33 { 34 } 35 36 // ----------------------------------------------------------------------------- 37 const char * 38 QuickCamDeviceAddon::BrandName() 39 { 40 return "QuickCam"; 41 } 42 43 // ----------------------------------------------------------------------------- 44 QuickCamDevice * 45 QuickCamDeviceAddon::Instantiate(CamRoster &roster, BUSBDevice *from) 46 { 47 return new QuickCamDevice(*this, from); 48 } 49 50 extern "C" status_t 51 B_WEBCAM_MKINTFUNC(quickcam) 52 (WebCamMediaAddOn* webcam, CamDeviceAddon **addon) 53 { 54 *addon = new QuickCamDeviceAddon(webcam); 55 return B_OK; 56 } 57