Limiting the range of Settings in SettingsManager

Technical discussion about the NMDC and <a href="http://dcpp.net/ADC.html">ADC</A> protocol. The NMDC protocol is documented in the <a href="http://dcpp.net/wiki/">Wiki</a>, so feel free to refer to it.

Moderator: Moderators

Locked
GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Limiting the range of Settings in SettingsManager

Post by GargoyleMT » 2003-01-12 16:55

I'm looking over a lot of the mods that people have made to DC++. On quite a few of the settings added to the settings manager, the programmers want to impose reasonable limits. Like the minimum slots = 1 in the standard source.

The Settings pages should obviously check for good values as the user inputs them. But then a lot of values are checked again in set(...). Should there be a way to set and verify the allowable range on the ints managed by the SettingsManager, instead of this freeform addition to set()?

Well, this is really a half-thought, but I'd like to hear responses.

arnetheduck
The Creator Himself
Posts: 296
Joined: 2003-01-02 17:15

Post by arnetheduck » 2003-01-13 11:22

Sounds reasonable...as long as get is fast I'm happy...I'm definately not going to spend time on it though =)...

Locked