Lines Matching refs:rSettings

181 bool write_report( const hash_map< string, string >& rSettings )  in write_report()  argument
198 xml_encode(rSettings.find( "CONTACT" )->second).c_str(), in write_report()
199 xml_encode(rSettings.find( "EMAIL" )->second).c_str(), in write_report()
200 xml_encode(rSettings.find( "TITLE" )->second).c_str(), in write_report()
248 bool write_description( const hash_map< string, string >& rSettings ) in write_description()
257 fprintf( fp, "%s\n", rSettings.find( "DESCRIPTION" )->second.c_str() ); in write_description()
266 static void printSettings( const hash_map<string,string>& rSettings ) argument
269 … for( hash_map<string,string>::const_iterator it = rSettings.begin(); it != rSettings.end(); ++it )
492 bool send_crash_report( const hash_map< string, string >& rSettings ) in send_crash_report() argument
494 if ( 0 == strcasecmp( rSettings.find( "CONTACT" )->second.c_str(), "true" ) && in send_crash_report()
495 !trim_string(rSettings.find( "EMAIL" )->second).length() ) in send_crash_report()
502 const char *pProxyServer = rSettings.find( "SERVER" )->second.c_str(); in send_crash_report()
503 …unsigned short uProxyPort = (unsigned short)strtoul( rSettings.find( "PORT" )->second.c_str(), &en… in send_crash_report()
505 bool bUseProxy = !strcasecmp( "true", rSettings.find( "USEPROXY" )->second.c_str() ); in send_crash_report()
508 write_description( rSettings ); in send_crash_report()
509 write_report( rSettings ); in send_crash_report()
556 string crash_get_details( const hash_map< string, string >& rSettings ) in crash_get_details() argument
560 write_description( rSettings ); in crash_get_details()
561 write_report( rSettings ); in crash_get_details()
563 aRet.append( rSettings.find( "TITLE" )->second.c_str() ); in crash_get_details()
910 static bool write_settings( const hash_map< string, string >& rSettings )
923 fprintf( fp, "UseProxy=%s\n", rSettings.find( "USEPROXY" )->second.c_str() );
924 fprintf( fp, "ProxyServer=%s\n", rSettings.find( "SERVER" )->second.c_str() );
925 fprintf( fp, "ProxyPort=%s\n", rSettings.find( "PORT" )->second.c_str() );
926 fprintf( fp, "ReturnAddress=%s\n", rSettings.find( "EMAIL" )->second.c_str() );
927 fprintf( fp, "AllowContact=%s\n", rSettings.find( "CONTACT" )->second.c_str() );
935 static void read_settings( hash_map< string, string >& rSettings ) in read_settings() argument
942 rSettings[ "EMAIL" ] = get_profile_string( sRCFile.c_str(), "Options", "ReturnAddress" ); in read_settings()
943 rSettings[ "SERVER" ] = get_profile_string( sRCFile.c_str(), "Options", "ProxyServer" ); in read_settings()
944 rSettings[ "PORT" ] = get_profile_string( sRCFile.c_str(), "Options", "ProxyPort" ); in read_settings()
945 rSettings[ "USEPROXY" ] = get_profile_string( sRCFile.c_str(), "Options", "UseProxy" ); in read_settings()
946 rSettings[ "CONTACT" ] = get_profile_string( sRCFile.c_str(), "Options", "AllowContact" ); in read_settings()
947 rSettings[ "DESCRIPTION" ] = ""; in read_settings()
948 rSettings[ "TITLE" ] = ""; in read_settings()
951 static void read_settings_from_environment( hash_map< string, string >& rSettings ) in read_settings_from_environment() argument
958 rSettings[ "EMAIL" ] = strEnv; in read_settings_from_environment()
959 if ( !(rSettings.find( "CONTACT" )->second).length() ) in read_settings_from_environment()
960 rSettings[ "CONTACT" ] = "true"; in read_settings_from_environment()
962 else if ( !(rSettings.find( "CONTACT" )->second).length() ) in read_settings_from_environment()
963 rSettings[ "CONTACT" ] = "false"; in read_settings_from_environment()
968 rSettings[ "SERVER" ] = strEnv; in read_settings_from_environment()
972 rSettings[ "PORT" ] = strEnv; in read_settings_from_environment()
976 rSettings[ "USEPROXY" ] = 0 == strcasecmp( strEnv.c_str(), "MANUALPROXY" ) ? "true" : "false"; in read_settings_from_environment()
980 rSettings[ "DESCRIPTION" ] = read_from_file( strEnv ); in read_settings_from_environment()
984 rSettings[ "TITLE" ] = strEnv; in read_settings_from_environment()