]> cygwin.com Git - cygwin-apps/setup.git/commit - UserSettings.cc
Preliminary option handling revamp. Throughout, change load/save methods to
authorChristopher Faylor <me@cgf.cx>
Sun, 28 Jun 2009 03:50:43 +0000 (03:50 +0000)
committerChristopher Faylor <me@cgf.cx>
Sun, 28 Jun 2009 03:50:43 +0000 (03:50 +0000)
commitf26f525f7a2d2583ffcb9ea292b332dd07cf370b
tree3fb73c6da5dea9ff5053826d8d29ae618c3f1dca
parent9d0a3d8aa81afc9521bcfcb629030a0834081c7b
Preliminary option handling revamp.  Throughout, change load/save methods to
constructors/destructors which use new UserSettings methods.  Do not inherit
from UserSetting class.
* KeysSetting.cc (ExtraKeysSetting *ExtraKeysSetting::global): Define.
(ExtraKeysSetting::ExtraKeysSetting): Initialize some class members use new
UserSettings methods.
(ExtraKeysSetting::~ExtraKeysSetting): Use new UserSettings method.
* Makefile.am (setup_SOURCES): Eliminate UserSetting.h and UserSetting.cc.
* UserSettings.cc: Complete rewrite.  Implements new UserSettings class
methods.
* UserSettings.h: Complete rewrite.  Defines new UserSettings class methods.
* crypto.cc (ExtraKeys): Delete.
(add_key_from_sexpr): Use ExtraKeysSetting::instance rather than ExtraKeys.
(verify_ini_file_sig): Ditto.
* io_stream.h (io_stream): Define virtual << operators.
* localdir.cc (localDir): Delete.
* main.cc: Include headers which declar new dynamically invoked classes.
(main_display): New function.  Controls order of option setting and property
page setup.  Add new class invocations to force option setting initializtion.
(main): Invoke new UserSettings class constructor to populate new settings
class.  Call main_display() to do most of the setup work.  Call Settings.save
() to save all settings.
* net.cc (theSetting): Delete.
* site.cc (SiteSetting::save): Record whether we've saved the information
already.
(get_site_list): Just use value returned from new UserSettings method rather
than parsing a file.
(SiteSetting::getSavedSites): Ditto.
(write_cache_list): Use UserSettings operator to store mirror cache.
(save_cache_file): Ditto.
* source.cc (theSetting): Delete.
* win32.h: gcc-4 accommodation.
23 files changed:
.cvsignore
ChangeLog
ConnectionSetting.cc
ConnectionSetting.h
KeysSetting.cc
KeysSetting.h
Makefile.am
SourceSetting.cc
SourceSetting.h
UserSetting.cc [deleted file]
UserSetting.h [deleted file]
UserSettings.cc
UserSettings.h
crypto.cc
io_stream.h
localdir.cc
localdir.h
main.cc
net.cc
site.cc
site.h
source.cc
win32.h
This page took 0.036119 seconds and 5 git commands to generate.