Пример #1
0
status_t Preferences::SetBool (const char *name, bool b)
{
	if (HasBool (name) == true)
		return ReplaceBool (name, 0, b);

	return AddBool(name, b);
}
Пример #2
0
status_t
AttributeMessage::SetAttribute(const char* name, bool value)
{
	if (ReplaceBool(name, value) == B_OK)
		return B_OK;
	return AddBool(name, value);
}
Пример #3
0
void
PSettings::SetBool(const char *name,bool value)
{
	bool	old;
	status_t s=FindBool(name,&old);
	if(s==B_OK)ReplaceBool(name,value);
	else AddBool(name,value);	
}
Пример #4
0
status_t TPreferences::SetBool(const char *name, bool b) {
	if (HasBool(name)) {
		return ReplaceBool(name, 0, b);
	}
	return AddBool(name, b);
}