コード例 #1
0
ファイル: idp.cpp プロジェクト: Mirovinger/WPN-XM
bool idpDownloadFiles()
{
	downloader.setUI(NULL);
	downloader.setUserAgent(userAgent);
	downloader.setInternetOptions(internetOptions);
	return downloader.downloadFiles();
}
コード例 #2
0
ファイル: idp.cpp プロジェクト: Mirovinger/WPN-XM
void idpStartDownload()
{
	ui.lockButtons();
	downloader.setUI(&ui);
	downloader.setUserAgent(userAgent);
	downloader.setInternetOptions(internetOptions);
	downloader.setFinishedCallback(&downloadFinished);
	downloader.startDownload();
}
コード例 #3
0
ファイル: idp.cpp プロジェクト: Mirovinger/WPN-XM
bool idpDownloadFile(_TCHAR *url, _TCHAR *filename)
{
	Downloader d;
	d.setUserAgent(userAgent);
	d.setInternetOptions(internetOptions);
	d.setMirrorList(&downloader);
	d.addFile(url, filename);
	return d.downloadFiles();
}
コード例 #4
0
ファイル: idp.cpp プロジェクト: Mirovinger/WPN-XM
bool idpGetFileSize(_TCHAR *url, DWORDLONG *size)
{
	Downloader d;
	d.setUserAgent(userAgent);
	d.setInternetOptions(internetOptions);
	d.setMirrorList(&downloader);
	d.addFile(url, _T(""));
	*size = d.getFileSizes();

	return *size != FILE_SIZE_UNKNOWN;
}