/** Settings for iTunes */ public class iTunesSettings extends LimeProps { private iTunesSettings() {} /** Whether or not player should be enabled. */ public static BooleanSetting ITUNES_SUPPORT_ENABLED = FACTORY.createBooleanSetting("ITUNES_SUPPORT_ENABLED", true); /** The name of the Playlist where songs shall be imported */ public static StringSetting ITUNES_PLAYLIST = FACTORY.createStringSetting("ITUNES_PLAYLIST", "LimeWire"); /** Supported file types */ public static StringArraySetting ITUNES_SUPPORTED_FILE_TYPES = FACTORY.createStringArraySetting( "ITUNES_SUPPORTED_FILE_TYPES", new String[] { ".mp3", ".aif", ".aiff", ".wav", ".mp2", ".mp4", ".aac", ".mid", ".m4a", ".m4p", ".ogg" }); }
/** Settings for filters */ public class FilterSettings extends LimeProps { private FilterSettings() {} public static final BooleanSetting USE_NETWORK_FILTER = FACTORY.createBooleanSetting("USE_NETWORK_FILTER", true); /** * Sets whether or not search results including "adult content" are banned in What's New queries. */ public static final BooleanSetting FILTER_WHATS_NEW_ADULT = FACTORY.createBooleanSetting("FILTER_WHATS_NEW_ADULT", true); /** Sets whether or not search results including "adult content" are banned. */ public static final BooleanSetting FILTER_ADULT = FACTORY.createBooleanSetting("FILTER_ADULT", false); /** Sets whether or not known spam and malware URNs are banned. */ public static final BooleanSetting FILTER_URNS = FACTORY.createBooleanSetting("FILTER_URNS", true); /** An array of URNs that should not be displayed (local setting). */ public static final StringArraySetting FILTERED_URNS_LOCAL = FACTORY.createStringArraySetting("FILTERED_URNS_LOCAL", new String[0]); /** An array of URNs that should not be displayed (remote setting). */ public static final StringArraySetting FILTERED_URNS_REMOTE = FACTORY.createRemoteStringArraySetting( "FILTERED_URNS_REMOTE", new String[0], "FilterSettings.filteredUrnsRemote"); /** Sets whether or not results with filtered URNs are considered spam. */ public static final BooleanSetting FILTERED_URNS_ARE_SPAM = FACTORY.createRemoteBooleanSetting( "FILTERED_URNS_ARE_SPAM", true, "FilterSettings.filteredUrnsAreSpam"); /** Sets whether or not duplicate search results are banned. */ public static final BooleanSetting FILTER_DUPLICATES = FACTORY.createBooleanSetting("FILTER_DUPLICATES", true); /** Sets whether or not greedy queries a filtered. */ public static final BooleanSetting FILTER_GREEDY_QUERIES = FACTORY.createBooleanSetting("FILTER_GREEDY_QUERIES", true); /** Sets whether or not anomalous queries are filtered. */ public static final BooleanSetting FILTER_ANOMALOUS_QUERIES = FACTORY.createRemoteBooleanSetting( "FILTER_ANOMALOUS_QUERIES", true, "FilterSettings.filterAnomalousQueries"); /** An array of ip addresses that the user has banned. */ @InspectablePrimitive("blacklisted hosts") public static final StringArraySetting BLACK_LISTED_IP_ADDRESSES = FACTORY.createStringArraySetting("BLACK_LISTED_IP_ADDRESSES", new String[0]); /** An array of ip addresses that the user has allowed. (Array of String!) */ public static final StringArraySetting WHITE_LISTED_IP_ADDRESSES = FACTORY.createStringArraySetting("WHITE_LISTED_IP_ADDRESSES", new String[0]); /** An array of words that the user has banned from appearing in search results. */ public static final StringArraySetting BANNED_WORDS = FACTORY.createStringArraySetting("BANNED_WORDS", new String[0]); /** An array of extensions that the user has banned from appearing in search results. */ public static final StringArraySetting BANNED_EXTENSIONS = FACTORY.createStringArraySetting( "BANNED_EXTENSIONS", new String[] {".vbs", ".asf", ".asx", ".wm", ".wma", ".wmv", ".htm", ".html"}); /** Whether to filter queries containing hashes. TODO: naming convention for SIMPP keys? */ public static final BooleanSetting FILTER_HASH_QUERIES = FACTORY.createRemoteBooleanSetting("FILTER_HASH_QUERIES", false, "filter_hash"); public static final IntSetting MIN_MATCHING_WORDS = FACTORY.createRemoteIntSetting( "MIN_MATCHING_WORDS", 0, "FilterSettings.minMatchingWords", 0, 30); /** An array of ip addresses that LimeWire will respond to. */ public static final StringArraySetting CRAWLER_IP_ADDRESSES = FACTORY.createRemoteStringArraySetting( "CRAWLER_IPS", new String[] {"*.*.*.*"}, "FilterSettings.crawlerIps"); /** An array of ip addresses that LimeWire will respond to with inspection responses. */ public static final StringArraySetting INSPECTOR_IP_ADDRESSES = FACTORY.createRemoteStringArraySetting( "INSPECTOR_IPS", new String[0], "FilterSettings.inspectorIps"); /** An array of hostile ip addresses. */ public static final StringArraySetting HOSTILE_IPS = FACTORY.createRemoteStringArraySetting( "HOSTILE_IPS", new String[0], "FilterSettings.hostileIps"); /** How many alts to allow per response. */ public static final IntSetting MAX_ALTS_PER_RESPONSE = FACTORY.createRemoteIntSetting( "MAX_ALTS_PER_RESPONSE", 50, "FilterSettings.maxAltsPerResponse", 10, 100); /** How many responses to allow per QueryReply message. */ public static final IntSetting MAX_RESPONSES_PER_REPLY = FACTORY.createRemoteIntSetting( "MAX_RESPONSES_PER_REPLY", 10, "FilterSettings.maxResponsesPerReply", 10, 256); /** * Base32-encoded, deflated, bencoded description of dangerous file types. See * DangerousFileTypeEncoder. */ public static final StringSetting DANGEROUS_FILE_TYPES = FACTORY.createRemoteStringSetting( "DANGEROUS_FILE_TYPES", "PCOEWMNUJLG4SMNWJIWE4M5SFLHTKBXCIQIFDFU2NJUJLG3DNBTGLIFWVG2C73N44CZJWDFLDCJM5ZNEUYBABWCDCMGA", "FilterSettings.DangerousFileTypes"); }