DownloadEngine.h
资源名称:GGBT.rar [点击查看]
上传用户:lds876
上传日期:2013-05-25
资源大小:567k
文件大小:1k
源码类别:
P2P编程
开发平台:
Visual C++
- // DownloadEngine.h: interface for the CDownloadEngine class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_DOWNLOADENGINE_H__1E116FF5_5A44_41C3_9FB7_93CA43256695__INCLUDED_)
- #define AFX_DOWNLOADENGINE_H__1E116FF5_5A44_41C3_9FB7_93CA43256695__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CFileDBItem;
- class CCategoryBarWnd;
- class CSetupRegister;
- class CDownloadEngine
- {
- class CEngineItem
- {
- public:
- CEngineItem(CFileDBItem* pFileDBItem, HTREEITEM hTreeItem)
- {
- m_hTreeItem = hTreeItem;
- m_pFileDBItem= pFileDBItem;
- }
- HTREEITEM m_hTreeItem;
- CFileDBItem* m_pFileDBItem;
- };
- public:
- CDownloadEngine();
- virtual ~CDownloadEngine();
- bool Create(CSetupRegister* pSetupRegister, CCategoryBarWnd* pCategoryBarWnd);
- bool StartDownload(CFileDBItem* pFileDBItem, HTREEITEM hCursorItem);
- void StopDownload(CFileDBItem* pFileDBItem);
- void StopDownloadArray(const vector<CFileDBItem*>& vpFileDBItems);
- void ExcuteDownload(long lParam);
- private:
- CSetupRegister* m_pSetupRegister;
- vector<CEngineItem> m_vTostartDownloads;
- CCategoryBarWnd* m_pCategoryBarWnd;
- CFileDBItem* m_pCurrentCheckingItem;
- };
- #endif // !defined(AFX_DOWNLOADENGINE_H__1E116FF5_5A44_41C3_9FB7_93CA43256695__INCLUDED_)