diff options
author | lbsa71 | 2009-04-17 05:52:46 +0000 |
---|---|---|
committer | lbsa71 | 2009-04-17 05:52:46 +0000 |
commit | bbe1e196963fe8609a1070793b8439c293261d24 (patch) | |
tree | 32102a5e67d7e007d5efe473aef3d331f3697726 /OpenSim/Framework/InventoryConfig.cs | |
parent | * Added some debug info if MXP is enabled. (diff) | |
download | opensim-SC-bbe1e196963fe8609a1070793b8439c293261d24.zip opensim-SC-bbe1e196963fe8609a1070793b8439c293261d24.tar.gz opensim-SC-bbe1e196963fe8609a1070793b8439c293261d24.tar.bz2 opensim-SC-bbe1e196963fe8609a1070793b8439c293261d24.tar.xz |
* Some more work on refactoring configs;
* Moved the constants out into a separate DefaultConfig
* Pulled configMember up
* Some minor CCC
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/InventoryConfig.cs | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/OpenSim/Framework/InventoryConfig.cs b/OpenSim/Framework/InventoryConfig.cs index 8141290..aafb6de 100644 --- a/OpenSim/Framework/InventoryConfig.cs +++ b/OpenSim/Framework/InventoryConfig.cs | |||
@@ -34,13 +34,10 @@ namespace OpenSim.Framework | |||
34 | /// </summary> | 34 | /// </summary> |
35 | public class InventoryConfig:ConfigBase | 35 | public class InventoryConfig:ConfigBase |
36 | { | 36 | { |
37 | public static uint DefaultHttpPort = 8004; | ||
38 | |||
39 | private ConfigurationMember configMember; | ||
40 | public string DatabaseConnect = String.Empty; | 37 | public string DatabaseConnect = String.Empty; |
41 | public string DatabaseProvider = String.Empty; | 38 | public string DatabaseProvider = String.Empty; |
42 | public string DefaultStartupMsg = String.Empty; | 39 | public string DefaultStartupMsg = String.Empty; |
43 | public uint HttpPort = DefaultHttpPort; | 40 | public uint HttpPort = DefaultSettings.DefaultInventoryServerHttpPort; |
44 | public string InventoryServerURL = String.Empty; | 41 | public string InventoryServerURL = String.Empty; |
45 | public string UserServerURL = String.Empty; | 42 | public string UserServerURL = String.Empty; |
46 | public string AssetServerURL = String.Empty; | 43 | public string AssetServerURL = String.Empty; |
@@ -49,34 +46,34 @@ namespace OpenSim.Framework | |||
49 | 46 | ||
50 | public InventoryConfig(string description, string filename) | 47 | public InventoryConfig(string description, string filename) |
51 | { | 48 | { |
52 | configMember = | 49 | m_configMember = |
53 | new ConfigurationMember(filename, description, loadConfigurationOptions, handleIncomingConfiguration, true); | 50 | new ConfigurationMember(filename, description, loadConfigurationOptions, handleIncomingConfiguration, true); |
54 | configMember.performConfigurationRetrieve(); | 51 | m_configMember.performConfigurationRetrieve(); |
55 | } | 52 | } |
56 | 53 | ||
57 | public void loadConfigurationOptions() | 54 | public void loadConfigurationOptions() |
58 | { | 55 | { |
59 | configMember.addConfigurationOption("default_inventory_server", | 56 | m_configMember.addConfigurationOption("default_inventory_server", |
60 | ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, | 57 | ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, |
61 | "Default Inventory Server URI (this server's external name)", | 58 | "Default Inventory Server URI (this server's external name)", |
62 | "http://127.0.0.1:8004", false); | 59 | "http://127.0.0.1:8004", false); |
63 | configMember.addConfigurationOption("default_user_server", | 60 | m_configMember.addConfigurationOption("default_user_server", |
64 | ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, | 61 | ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, |
65 | "Default User Server URI", | 62 | "Default User Server URI", |
66 | "http://127.0.0.1:8002", false); | 63 | "http://127.0.0.1:8002", false); |
67 | configMember.addConfigurationOption("default_asset_server", | 64 | m_configMember.addConfigurationOption("default_asset_server", |
68 | ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, | 65 | ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, |
69 | "Default Asset Server URI", | 66 | "Default Asset Server URI", |
70 | "http://127.0.0.1:8003", false); | 67 | "http://127.0.0.1:8003", false); |
71 | configMember.addConfigurationOption("database_provider", ConfigurationOption.ConfigurationTypes.TYPE_STRING, | 68 | m_configMember.addConfigurationOption("database_provider", ConfigurationOption.ConfigurationTypes.TYPE_STRING, |
72 | "DLL for database provider", "OpenSim.Data.MySQL.dll", false); | 69 | "DLL for database provider", "OpenSim.Data.MySQL.dll", false); |
73 | configMember.addConfigurationOption("database_connect", ConfigurationOption.ConfigurationTypes.TYPE_STRING, | 70 | m_configMember.addConfigurationOption("database_connect", ConfigurationOption.ConfigurationTypes.TYPE_STRING, |
74 | "Database Connect String", "", false); | 71 | "Database Connect String", "", false); |
75 | configMember.addConfigurationOption("http_port", ConfigurationOption.ConfigurationTypes.TYPE_UINT32, | 72 | m_configMember.addConfigurationOption("http_port", ConfigurationOption.ConfigurationTypes.TYPE_UINT32, |
76 | "Http Listener port", DefaultHttpPort.ToString(), false); | 73 | "Http Listener port", DefaultSettings.DefaultInventoryServerHttpPort.ToString(), false); |
77 | configMember.addConfigurationOption("session_lookup", ConfigurationOption.ConfigurationTypes.TYPE_BOOLEAN, | 74 | m_configMember.addConfigurationOption("session_lookup", ConfigurationOption.ConfigurationTypes.TYPE_BOOLEAN, |
78 | "Enable session lookup security", "False", false); | 75 | "Enable session lookup security", "False", false); |
79 | configMember.addConfigurationOption("region_access", ConfigurationOption.ConfigurationTypes.TYPE_BOOLEAN, | 76 | m_configMember.addConfigurationOption("region_access", ConfigurationOption.ConfigurationTypes.TYPE_BOOLEAN, |
80 | "Allow direct region access to users inventories? (Keep True if you don't know what this is about)", "True", false); | 77 | "Allow direct region access to users inventories? (Keep True if you don't know what this is about)", "True", false); |
81 | } | 78 | } |
82 | 79 | ||