Example #1
0
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;
}
Example #2
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;
}
Example #3
0
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();
}
Example #5
0
void CpProxyUpnpOrgSwitchPower1C::PropertyStatus(TBool& aStatus) const
{
    PropertyReadLock();
    ASSERT(IsSubscribed());
    aStatus = iStatus->Value();
    PropertyReadUnlock();
}
Example #6
0
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();
}
Example #8
0
void DvProviderAvOpenhomeOrgInfo1C::GetPropertyLossless(TBool& aValue)
{
    aValue = iPropertyLossless->Value();
}
void CpProxyAvOpenhomeOrgSender1C::PropertyAudio(TBool& aAudio) const
{
    AutoMutex a(GetPropertyReadLock());
    CheckSubscribed();
    aAudio = iAudio->Value();
}
Example #10
0
/**
 * Copy constructor.
 *
 * @param aProperty Property to be copied.
 */
PropertyBool::PropertyBool(const PropertyBool &aProperty) 
:   Property_Deprecated(aProperty)
{
    _value = aProperty.getValueBool();
}