Property | Type | Description | |
---|---|---|---|
iHandle |
Method | Description | |
---|---|---|
PropertiesLock ( ) : void |
Lock the provider's properties, blocking publication of updates. This is not necessary when updating a single property but is used by providers that have >1 properties whose values are related. Without locking, updates to some properties may be published, leaving related properties in their old (now incompatible) states. Every call to this must be followed by (exactly) one call to PropertiesUnlock(). |
|
PropertiesUnlock ( ) : void |
Unlock the provider's properties, allowing publication of updates. Any pending updates will automatically be scheduled. This must only be called following a call to PropertiesLock(). |
Method | Description | |
---|---|---|
AddProperty ( OpenHome aProperty ) : void |
Add a property to this provider Any later updates to the value of the property will be automatically published to any subscribers |
|
DisposeProvider ( ) : bool |
Must be called by each sub-class, preferably from their Dispose() method
|
|
DvProvider ( OpenHome.Net.Device.DvDevice aDevice, String aDomain, String aType, uint aVersion ) : System |
Constructor
|
|
EnableAction ( OpenHome aAction, ActionDelegate aDelegate, |
Register an action as available. The action will be published as part of the owning device's service xml
|
|
SetPropertyBinary ( |
Utility function which updates the value of a PropertyBinary. (Not intended for external use) If the property value has changed and the properties are not locked (PropertiesLock() called more recently than PropertiesUnlock()), publication of an update is scheduled |
|
SetPropertyBool ( |
Utility function which updates the value of a PropertyBool. (Not intended for external use) If the property value has changed and the properties are not locked (PropertiesLock() called more recently than PropertiesUnlock()), publication of an update is scheduled |
|
SetPropertyInt ( |
Utility function which updates the value of a PropertyInt. (Not intended for external use) If the property value has changed and the properties are not locked (PropertiesLock() called more recently than PropertiesUnlock()), publication of an update is scheduled. Throws ParameterValidationError if the property has a range of allowed values and the new value is not in this range |
|
SetPropertyString ( |
Utility function which updates the value of a PropertyString. (Not intended for external use) If the property value has changed and the properties are not locked (PropertiesLock() called more recently than PropertiesUnlock()), publication of an update is scheduled. Throws ParameterValidationError if the property has a range of allowed values and the new value is not in this range |
|
SetPropertyUint ( |
Utility function which updates the value of a PropertyUint. (Not intended for external use) If the property value has changed and the properties are not locked (PropertiesLock() called more recently than PropertiesUnlock()), publication of an update is scheduled. Throws ParameterValidationError if the property has a range of allowed values and the new value is not in this range |
Method | Description | |
---|---|---|
DvProviderAddAction ( |
||
DvProviderAddProperty ( |
||
DvProviderCreate ( |
||
DvProviderDestroy ( |
||
DvProviderPropertiesLock ( |
||
DvProviderPropertiesUnlock ( |
||
DvProviderSetPropertyBinary ( |
||
DvProviderSetPropertyBool ( |
||
DvProviderSetPropertyInt ( |
||
DvProviderSetPropertyString ( |
||
DvProviderSetPropertyUint ( |
protected AddProperty ( OpenHome aProperty ) : void | ||
aProperty | OpenHome | Property being added |
return | void |
protected DvProvider ( OpenHome.Net.Device.DvDevice aDevice, String aDomain, String aType, uint aVersion ) : System | ||
aDevice | OpenHome.Net.Device.DvDevice | Device the service is being added to and will be offered by |
aDomain | String | Domain of the vendor who defined the service |
aType | String | Name of the service |
aVersion | uint | Version number of the service |
return | System |
protected EnableAction ( OpenHome aAction, ActionDelegate aDelegate, |
||
aAction | OpenHome | Action being registered as availabke |
aDelegate | ActionDelegate | Delegate to call when the action is invoked |
aPtr | Data to pass to the delegate | |
return | void |
protected SetPropertyBinary ( |
||
aProperty | Property to be updated | |
aValue | byte | New value for the property |
return | bool |
protected SetPropertyBool ( |
||
aProperty | Property to be updated | |
aValue | bool | New value for the property |
return | bool |
protected SetPropertyInt ( |
||
aProperty | Property to be updated | |
aValue | int | New value for the property |
return | bool |
protected SetPropertyString ( |
||
aProperty | Property to be updated | |
aValue | String | New value for the property |
return | bool |
protected SetPropertyUint ( |
||
aProperty | Property to be updated | |
aValue | uint | New value for the property |
return | bool |