uint32_t STDCALL ServicePropertySetValueInt(ServiceProperty aProperty, int32_t aValue) { PropertyInt* prop = reinterpret_cast<PropertyInt*>(aProperty); ASSERT(prop != NULL); if (prop->SetValue(aValue)) { return 1; } return 0; }
int32_t STDCALL ServicePropertyValueInt(ServiceProperty aProperty, int32_t* aValue) { PropertyInt* prop = reinterpret_cast<PropertyInt*>(aProperty); ASSERT(prop != NULL); int32_t err = 0; try { *aValue = prop->Value(); } catch (PropertyError&) { err = -1; } return err; }
bool DvProvider::SetPropertyInt(PropertyInt& aProperty, TInt aValue) { if (aProperty.SetValue(aValue)) { TryPublishUpdate(); return true; } return false; }