fr.imag.adele.bundle.webcam.upnp
Class WebCamDevice

java.lang.Object
  extended byfr.imag.adele.bundle.webcam.upnp.WebCamDevice
All Implemented Interfaces:
org.osgi.framework.BundleActivator, org.osgi.service.upnp.UPnPDevice

public class WebCamDevice
extends Object
implements org.osgi.service.upnp.UPnPDevice, org.osgi.framework.BundleActivator


Field Summary
 
Fields inherited from interface org.osgi.service.upnp.UPnPDevice
CHILDREN_UDN, DEVICE_CATEGORY, FRIENDLY_NAME, ID, MANUFACTURER, MANUFACTURER_URL, MATCH_GENERIC, MATCH_MANUFACTURER_MODEL, MATCH_MANUFACTURER_MODEL_REVISION, MATCH_MANUFACTURER_MODEL_REVISION_SERIAL, MATCH_TYPE, MODEL_DESCRIPTION, MODEL_NAME, MODEL_NUMBER, MODEL_URL, PARENT_UDN, PRESENTATION_URL, SERIAL_NUMBER, TYPE, UDN, UPC, UPNP_EXPORT
 
Constructor Summary
WebCamDevice(String udn, String serialNumber, Dictionary extraProperties, ImageGrabber imageGrabber)
           
 
Method Summary
 Dictionary getDescriptions(String locale)
           
 org.osgi.service.upnp.UPnPIcon[] getIcons(String locale)
           
 byte[] getImage()
           
 org.osgi.service.upnp.UPnPService getService(String serviceId)
           
 org.osgi.service.upnp.UPnPService[] getServices()
           
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext bundleContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebCamDevice

public WebCamDevice(String udn,
                    String serialNumber,
                    Dictionary extraProperties,
                    ImageGrabber imageGrabber)
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
Exception
See Also:
BundleActivator.start(org.osgi.framework.BundleContext)

stop

public void stop(org.osgi.framework.BundleContext bundleContext)
          throws Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
Exception
See Also:
BundleActivator.stop(org.osgi.framework.BundleContext)

getService

public org.osgi.service.upnp.UPnPService getService(String serviceId)
Specified by:
getService in interface org.osgi.service.upnp.UPnPDevice
See Also:
UPnPDevice.getService(java.lang.String)

getServices

public org.osgi.service.upnp.UPnPService[] getServices()
Specified by:
getServices in interface org.osgi.service.upnp.UPnPDevice
See Also:
UPnPDevice.getServices()

getIcons

public org.osgi.service.upnp.UPnPIcon[] getIcons(String locale)
Specified by:
getIcons in interface org.osgi.service.upnp.UPnPDevice
See Also:
UPnPDevice.getIcons(java.lang.String)

getDescriptions

public Dictionary getDescriptions(String locale)
Specified by:
getDescriptions in interface org.osgi.service.upnp.UPnPDevice
See Also:
UPnPDevice.getDescriptions(java.lang.String)

getImage

public byte[] getImage()
Returns: