00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_VMSSIMPLEFILEDOWNLOADER_H__539BE448_3975_4D2A_858C_84EFAD3E3300__INCLUDED_) 00007 #define AFX_VMSSIMPLEFILEDOWNLOADER_H__539BE448_3975_4D2A_858C_84EFAD3E3300__INCLUDED_ 00008 00009 #include "fsDownloadMgr.h" 00010 #if _MSC_VER > 1000 00011 #pragma once 00012 #endif 00013 00014 class vmsSimpleFileDownloader 00015 { 00016 public: 00017 fsInternetResult Download (LPCSTR pszUrl, LPCSTR pszFileName); 00018 00019 void Stop(); 00020 00021 fsInternetResult GetLastError(); 00022 bool IsRunning(); 00023 00024 vmsSimpleFileDownloader(); 00025 virtual ~vmsSimpleFileDownloader(); 00026 00027 protected: 00028 void CreateDownloader(); 00029 static DWORD _DownloadMgrEvents(fsDownloadMgr* pMgr, fsDownloaderEvent ev, UINT uInfo, LPVOID lp); 00030 static void _DownloadMgrDescEvents(fsDownloadMgr* , fsDownloadMgr_EventDescType , LPCSTR pszDesc, LPVOID lp); 00031 fsDownloadMgr *m_dldr; 00032 }; 00033 00034 #endif
1.5.6