Beispiel #1
0
void CDCSettingsPage::OnDiscoveryGo()
{
	// Load hublist.xml.bz2 from web various ways

	//if ( PathFileExists( Settings.General.DataPath + L"hublist.xml.bz2" ) &&
	//	MsgBox( L"Load local file?", MB_ICONQUESTION | MB_YESNO ) == IDYES ) )
	//{
	//	theApp.OpenImport( Settings.General.DataPath + L"hublist.xml.bz2" );
	//	return;
	//}

	CUpdateServersDlg dlg;
	dlg.m_sURL = Settings.DC.HubListURL;
	if ( dlg.DoModal() != IDOK &&
		MsgBox( IDS_DOWNLOAD_DC_HUBLIST, MB_ICONQUESTION | MB_YESNO ) == IDYES )
	{
		CEnvyURL pURL;
	//	pURL.Parse( Settings.DC.HubListURL );
		pURL.m_sURL = Settings.DC.HubListURL;
		pURL.m_sName = L"hublist.xml.bz2";
		pURL.m_nAction = CEnvyURL::uriDownload;
		Downloads.Add( pURL );
	}
}
void CDonkeySettingsPage::OnDiscoveryGo()
{
	CUpdateServersDlg dlg;
	//dlg.m_sURL = Settings.eDonkey.ServerListURL;
	dlg.DoModal();
}