uint32_t STDCALL ServicePropertySetValueBool(ServiceProperty aProperty, uint32_t aValue) { PropertyBool* prop = reinterpret_cast<PropertyBool*>(aProperty); ASSERT(prop != NULL); TBool val = (aValue != 0); if (prop->SetValue(val)) { return 1; } return 0; }
int32_t STDCALL ServicePropertyValueBool(ServiceProperty aProperty, uint32_t* aValue) { PropertyBool* prop = reinterpret_cast<PropertyBool*>(aProperty); ASSERT(prop != NULL); int32_t err = 0; TBool val; try { val = prop->Value(); *aValue = (val? 1 : 0); } catch (PropertyError&) { err = -1; } return err; }
void CpProxyAvOpenhomeOrgInfo1C::PropertyLossless(TBool& aLossless) const { PropertyReadLock(); ASSERT(IsSubscribed()); aLossless = iLossless->Value(); PropertyReadUnlock(); }
void CpProxyAvOpenhomeOrgSender1C::PropertyAudio(TBool& aAudio) const { PropertyReadLock(); ASSERT(IsSubscribed()); aAudio = iAudio->Value(); PropertyReadUnlock(); }
void CpProxyUpnpOrgSwitchPower1C::PropertyStatus(TBool& aStatus) const { PropertyReadLock(); ASSERT(IsSubscribed()); aStatus = iStatus->Value(); PropertyReadUnlock(); }
bool DvProvider::SetPropertyBool(PropertyBool& aProperty, TBool aValue) { if (aProperty.SetValue(aValue)) { TryPublishUpdate(); return true; } return false; }
void DvProviderLinnCoUkCloud1C::GetPropertyConnected(TBool& aValue) { ASSERT(iPropertyConnected != NULL); aValue = iPropertyConnected->Value(); }
void DvProviderAvOpenhomeOrgInfo1C::GetPropertyLossless(TBool& aValue) { aValue = iPropertyLossless->Value(); }
void CpProxyAvOpenhomeOrgSender1C::PropertyAudio(TBool& aAudio) const { AutoMutex a(GetPropertyReadLock()); CheckSubscribed(); aAudio = iAudio->Value(); }
/** * Copy constructor. * * @param aProperty Property to be copied. */ PropertyBool::PropertyBool(const PropertyBool &aProperty) : Property_Deprecated(aProperty) { _value = aProperty.getValueBool(); }