void Config::SetInt(const char *name, int value) { if (HasInt32(name)) ReplaceInt32(name, value); else AddInt32(name, value); }
status_t Preferences::SetInt32 (const char *name, int32 i) { if (HasInt32 (name) == true) return ReplaceInt32 (name, 0, i); return AddInt32 (name, i); }
status_t AttributeMessage::SetAttribute(const char* name, uint32 value) { if (ReplaceInt32(name, (int32)value) == B_OK) return B_OK; return AddInt32(name, (int32)value); }
void PSettings::SetInt32(const char *name,int32 value) { int32 old; status_t s=FindInt32(name,&old); if(s==B_OK)ReplaceInt32(name,value); else AddInt32(name,value); }
void Preferences::SaveInt32(int32 value, const char* name) { Lock(); if (HasInt32(name)) ReplaceInt32(name, value); else AddInt32(name, value); Unlock(); }
status_t TPreferences::SetInt32(const char *name, int32 i) { if (HasInt32(name)) { return ReplaceInt32(name, 0, i); } return AddInt32(name, i); }
/* int32 Message::ReplaceBool(const char *name, bool aBool); int32 Message::ReplaceBool(const char *name, int32 index, bool aBool); int32 Message::ReplaceInt8(const char *name, int8 anInt8); int32 Message::ReplaceInt8(const char *name, int32 index, int8 anInt8); int32 Message::ReplaceInt16(const char *name, int16 anInt16); int32 Message::ReplaceInt16(const char *name, int32 index, int16 anInt16); */ int32 Message::ReplaceInt32(const char *name, long anInt32) { return ReplaceInt32(name, 0, anInt32 ); }