/** Returns true if Vidalia is set to run on system boot. */ bool VidaliaSettings::runVidaliaOnBoot() { #if defined(Q_WS_WIN) if (!win32_registry_get_key_value(STARTUP_REG_KEY, VIDALIA_REG_KEY).isEmpty()) { return true; } else { return false; } #else /* Platforms other than windows aren't supported yet */ return false; #endif }
/** Returns true if RetroShare is set to run on system boot. */ bool RshareSettings::runRetroshareOnBoot(bool &minimized) { minimized = false; #if defined(Q_WS_WIN) QString value = win32_registry_get_key_value(STARTUP_REG_KEY, RETROSHARE_REG_KEY); if (!value.isEmpty()) { /* Simple check for "-m" */ minimized = value.contains(" -m"); return true; } return false; #else /* Platforms other than windows aren't supported yet */ return false; #endif }