org.apache.felix.upnp.sample.tv
Class TvDevice

java.lang.Object
  extended by org.apache.felix.upnp.sample.tv.TvDevice
All Implemented Interfaces:
java.util.EventListener, org.osgi.framework.ServiceListener, org.osgi.service.upnp.UPnPDevice, org.osgi.service.upnp.UPnPEventListener

public class TvDevice
extends java.lang.Object
implements org.osgi.service.upnp.UPnPDevice, org.osgi.service.upnp.UPnPEventListener, org.osgi.framework.ServiceListener


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
 
Fields inherited from interface org.osgi.service.upnp.UPnPEventListener
UPNP_FILTER
 
Constructor Summary
TvDevice()
           
 
Method Summary
 void doSubscribe()
           
 java.lang.String getAirconTempture()
           
 java.lang.String getClockTime()
           
 java.awt.Component getComponent()
           
 java.util.Dictionary getDescriptions(java.lang.String locale)
           
 org.osgi.service.upnp.UPnPIcon[] getIcons(java.lang.String locale)
           
 java.lang.String getMessage()
           
 org.osgi.service.upnp.UPnPService getService(java.lang.String serviceId)
           
 org.osgi.service.upnp.UPnPService[] getServices()
           
 boolean isOn()
           
 void notifyUPnPEvent(java.lang.String deviceId, java.lang.String serviceId, java.util.Dictionary events)
           
 void off()
           
 void on()
           
 void serviceChanged(org.osgi.framework.ServiceEvent event)
           
 void setComponent(java.awt.Component comp)
           
 void setMessage(java.lang.String msg)
           
 void start()
           
 void stop()
           
 void undoSubscribe()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TvDevice

public TvDevice()
Method Detail

getService

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

getServices

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

getIcons

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

getDescriptions

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

setComponent

public void setComponent(java.awt.Component comp)

getComponent

public java.awt.Component getComponent()

on

public void on()

isOn

public boolean isOn()

off

public void off()

getClockTime

public java.lang.String getClockTime()

getAirconTempture

public java.lang.String getAirconTempture()

setMessage

public void setMessage(java.lang.String msg)

getMessage

public java.lang.String getMessage()

doSubscribe

public void doSubscribe()

undoSubscribe

public void undoSubscribe()

notifyUPnPEvent

public void notifyUPnPEvent(java.lang.String deviceId,
                            java.lang.String serviceId,
                            java.util.Dictionary events)
Specified by:
notifyUPnPEvent in interface org.osgi.service.upnp.UPnPEventListener

start

public void start()

stop

public void stop()

serviceChanged

public void serviceChanged(org.osgi.framework.ServiceEvent event)
Specified by:
serviceChanged in interface org.osgi.framework.ServiceListener