2 * Copyright (c) 2001, Robert Collins.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * A copy of the GNU General Public License can be found at
12 * Written by Robert Collins <rbtcollins@hotmail.com>
24 class SitePage
: public PropertyPage
34 virtual void OnInit ();
35 virtual void OnActivate ();
36 virtual long OnNext ();
37 virtual long OnBack ();
38 virtual long OnUnattended ();
40 virtual bool OnMessageCmd (int id
, HWND hwndctl
, UINT code
);
42 void PopulateListBox();
43 void CheckControlsAndDisableAccordingly () const;
46 void do_download_site_info (HINSTANCE h
, HWND owner
);
51 site_list_type () : url (), displayed_url (), key () {};
52 site_list_type (const std::string
& , const std::string
& ,
53 const std::string
& , const std::string
&, bool, bool);
54 ~site_list_type () {};
56 // provided by mirrors.lst but not used
57 std::string servername
;
60 // did this site come from mirrors.lst?
61 bool from_mirrors_lst
;
64 std::string displayed_url
;
67 bool operator == (const site_list_type
&) const;
68 bool operator != (const site_list_type
&) const;
69 bool operator < (const site_list_type
&) const;
70 bool operator <= (const site_list_type
&) const;
71 bool operator > (const site_list_type
&) const;
72 bool operator >= (const site_list_type
&) const;
75 typedef std::vector
<site_list_type
> SiteList
;
77 /* user chosen sites */
78 extern SiteList site_list
;
80 extern SiteList all_site_list
;
91 void registerSavedSite(char const *);
92 const char *lastMirrorKey();
95 #endif /* SETUP_SITE_H */