GetBool
bool GetBool(const char* name,
bool GetBool(const char* name, int32 index,
inline bool GetBool(const char* name,
inline bool GetBool(const char* name, int32 index,
fAddSpamToSubject = settings.GetBool("AddMarkerToSubject", false);
fAutoTraining = settings.GetBool("AutoTraining", true);
fNoWordsMeansSpam = settings.GetBool("NoWordsMeansSpam", true);
fQuitServerWhenFinished = settings.GetBool("QuitServerWhenFinished", false);
return fMessage.GetBool("idle", true);
_SetAlwaysOnTop(settings.GetBool("always on top", false));
fStdoutEnabled->SetValue(settings.GetBool("showStdout", true)
fStderrEnabled->SetValue(settings.GetBool("showStderr", true)
settings.vertical = prefs.GetBool("vertical",
settings.left = prefs.GetBool("left",
settings.top = prefs.GetBool("top",
settings.showClock = prefs.GetBool("showClock",
settings.trackerAlwaysFirst = prefs.GetBool("trackerAlwaysFirst",
settings.sortRunningApps = prefs.GetBool("sortRunningApps",
settings.superExpando = prefs.GetBool("superExpando",
settings.expandNewTeams = prefs.GetBool("expandNewTeams",
settings.hideLabels = prefs.GetBool("hideLabels",
settings.recentDocsEnabled = prefs.GetBool("recentDocsEnabled",
= prefs.GetBool("recentFoldersEnabled",
settings.recentAppsEnabled = prefs.GetBool("recentAppsEnabled",
settings.alwaysOnTop = prefs.GetBool("alwaysOnTop",
settings.autoRaise = prefs.GetBool("autoRaise",
settings.autoHide = prefs.GetBool("autoHide",
clock.showSeconds = prefs.GetBool("showSeconds", false);
clock.showDayOfWeek = prefs.GetBool("showDayOfWeek", false);
clock.showTimeZone = prefs.GetBool("showTimeZone", false);
if (CurrentMessage()->GetBool("install_complete")) {
fWrapMode = settings.GetBool("WordWrapMode", fWrapMode);
fAutoMarkRead = settings.GetBool("AutoMarkRead", fAutoMarkRead);
fColoredQuotes = settings.GetBool("ColoredQuotes", fColoredQuotes);
fAttachAttributes = settings.GetBool("AttachAttributes", fAttachAttributes);
fWarnAboutUnencodableCharacters = settings.GetBool(
fStartWithSpellCheckOn = settings.GetBool("StartWithSpellCheck",
if (!GetBool("normal_fade_colors", &normal_fade_colors, &b)) {
bool GetBool(const char *name, bool *value, bool *defaultvalue);
bool GetBool(const char* name, bool defaultValue);
fStretchToBounds = settings->GetBool("StretchToBounds",
fScaleBilinear = settings->GetBool("ScaleBilinear", fScaleBilinear);
fShowCaption = settings->GetBool("ShowCaption", fShowCaption);
fShowToolBar = settings->GetBool("ShowToolBar", fShowToolBar);
if (message->GetBool("clear", false))
fStandAlone = message.GetBool("stand_alone");
return reply.GetBool("running");
fAutoConfigure = data.GetBool("auto_config", false);
IdentifySelection(message->GetBool("force", false));
bool clearClipboard = clipboardReport->GetBool("clearClipboard", false);
fSettings.scroll_twofinger_natural_scrolling = settingsMsg.GetBool(
fSettings.finger_click = settingsMsg.GetBool(
fSettings.software_button_areas = settingsMsg.GetBool(
bool autoStart = settings.GetBool(kAutoStartName, true);
bool show = msg->GetBool(kShowButtonsKey, true);
if (message.GetBool("noData", false)) {
bool value = settings.GetBool(fField);
systemOnly = filter.GetBool("systemOnly");
userOnly = filter.GetBool("userOnly");
} else if (targetMessage.GetBool("reset")) {
job->SetEnabled(!message.GetBool("disabled", !job->IsEnabled()));
job->SetCreateDefaultPort(!message.GetBool("legacy", !service));
if (message.GetBool("no_safemode")) {
if (message.GetBool("on_demand")) {
bool force = message->GetBool("force");
bool enable = message->GetBool("enable");
bool force = message->GetBool("force");
bool addUser = message.GetBool("add user", false);
bool addGroup = message.GetBool("add group", false);
bool getShadowPwd = message.GetBool("shadow", false);
if (gBootParams.GetBool(BOOT_VOLUME_BOOTED_FROM_IMAGE, false)) {
if (isBootDevice && gBootParams.GetBool(BOOT_VOLUME_BOOTED_FROM_IMAGE,
if (isBootDevice && gBootParams.GetBool(BOOT_VOLUME_BOOTED_FROM_IMAGE,
bool addEvents = eventSpecifier->GetBool("add events", false);
eventSpecifier->GetBool("kernel", true));
eventSpecifier->GetBool("kernel", true));
bool addFlags = eventSpecifier->GetBool("add flags", false);
eventSpecifier->GetBool("kernel", true));
if (!fBootVolume.GetBool(BOOT_VOLUME_BOOTED_FROM_IMAGE, false)) {
if (fBootVolume.GetBool(BOOT_VOLUME_USER_SELECTED, false)
if (!bootVolume.GetBool(BOOT_VOLUME_USER_SELECTED, false))
if (bootVolume.GetBool(BOOT_VOLUME_PACKAGED, false)
|| (bootVolume.GetBool(BOOT_VOLUME_BOOTED_FROM_IMAGE, false)
bool success = message->GetBool(UrlEventData::Success, false);
"UrlEventData::Success must be true", message.GetBool(Success));
CPPUNIT_ASSERT_EQUAL_MESSAGE("bool1", true, message.GetBool("bool1"));
CPPUNIT_ASSERT_EQUAL_MESSAGE("bool2", true, message.GetBool("bool2"));
CPPUNIT_ASSERT_EQUAL_MESSAGE("bool3", true, message.GetBool("bool3"));
CPPUNIT_ASSERT_EQUAL_MESSAGE("bool4", true, message.GetBool("bool4"));
CPPUNIT_ASSERT_EQUAL_MESSAGE("bool5", true, message.GetBool("bool5"));
message.GetBool("bool6", true));
message.GetBool("bool7", true));
message.GetBool("bool8", true));
message.GetBool("bool9", true));
message.GetBool("empty_bool"));
CPPUNIT_ASSERT_EQUAL_MESSAGE("bool", true, subMessage.GetBool("bool"));
CPPUNIT_ASSERT_EQUAL_MESSAGE("bool", true, subMessage.GetBool("bool"));