⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 downloadbase.h

📁 p2p软件
💻 H
字号:
//
// DownloadBase.h
//
// Copyright (c) Shareaza Development Team, 2002-2004.
// This file is part of SHAREAZA (www.shareaza.com)
//
// Shareaza is free software; you can redistribute it
// and/or modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2 of
// the License, or (at your option) any later version.
//
// Shareaza is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Shareaza; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
//

#if !defined(AFX_DOWNLOADBASE_H__71956CAE_7D13_4809_837B_5F17DE46856E__INCLUDED_)
#define AFX_DOWNLOADBASE_H__71956CAE_7D13_4809_837B_5F17DE46856E__INCLUDED_

#pragma once

class CDownloadTask;


class CDownloadBase  
{
// Construction
public:
	CDownloadBase();
	virtual ~CDownloadBase();
	
// Attributes
public:
	int			m_nCookie;
public:
	CString		m_sRemoteName;
	CString		m_sLocalName;
	QWORD		m_nSize;
public:
	BOOL		m_bSHA1;
	SHA1		m_pSHA1;
	BOOL		m_bTiger;
	TIGEROOT	m_pTiger;
	BOOL		m_bMD5;
	MD5			m_pMD5;
	BOOL		m_bED2K;
	MD4			m_pED2K;
	BOOL		m_bBTH;
	SHA1		m_pBTH;
protected:
	CDownloadTask*	m_pTask;
	
// Operations
public:
	virtual void	Pause() = 0;
	virtual void	Resume() = 0;
	virtual void	Remove(BOOL bDelete = FALSE) = 0;
	virtual void	Boost() = 0;
	virtual BOOL	IsPaused() const = 0;
	virtual BOOL	IsMoving() const = 0;
	virtual BOOL	IsCompleted() const = 0;
	virtual BOOL	IsTasking() { return m_pTask != NULL; }
public:
	void			SetModified();
protected:
	void			GenerateLocalName();
	virtual void	Serialize(CArchive& ar, int nVersion);
	
};

#endif // !defined(AFX_DOWNLOADBASE_H__71956CAE_7D13_4809_837B_5F17DE46856E__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -