资 源 简 介
#pragma once
#include "downmanager.h"
namespace Downloader
{
class CDownloader :
public DownManager
{
public:
CDownloader(void);
~CDownloader(void);
virtual BOOL Init( LPCSTR szDownUrl, LPCSTR szSaveDir );
virtual void DownLoop();
virtual void UnInit();
void setFileDownlond( const std::string& filename, bool downdloaded );
protected:
virtual void initSM();
virtual void releaseSM();
void save_FlistClient();
protected:
/// 共享内存句柄
HANDLE m_SMHandle;
/// 共享内存指针
SM_Downloader* m_smDownloader;
};
extern CDownloader* g_pDownloader;
}