コード例 #1
0
ファイル: Preferences.cpp プロジェクト: puckipedia/FilWip
status_t Preferences::SetBool (const char *name, bool b)
{
	if (HasBool (name) == true)
		return ReplaceBool (name, 0, b);

	return AddBool(name, b);
}
コード例 #2
0
ファイル: AttributeMessage.cpp プロジェクト: stippi/Clockwerk
status_t
AttributeMessage::SetAttribute(const char* name, bool value)
{
	if (ReplaceBool(name, value) == B_OK)
		return B_OK;
	return AddBool(name, value);
}
コード例 #3
0
ファイル: Settings.cpp プロジェクト: threedeyes/DjVuViewer
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);
}