Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CUploadFile Class Reference

#include <UploadFile.h>

List of all members.

Public Member Functions

 CUploadFile (CUploadTransfer *pUpload, SHA1 *pSHA1, LPCTSTR pszName, LPCTSTR pszPath, QWORD nSize)
virtual ~CUploadFile ()
void Add (CUploadTransfer *pUpload)
BOOL Remove (CUploadTransfer *pUpload)
CUploadTransferGetActive () const
void AddFragment (QWORD nOffset, QWORD nLength)
void Remove ()
BOOL IsEmpty () const

Public Attributes

IN_ADDR m_pAddress
BOOL m_bSHA1
SHA1 m_pSHA1
CString m_sName
CString m_sPath
QWORD m_nSize
DWORD m_nRequests
FF::SimpleFragmentList m_oFragments
BOOL m_bSelected

Protected Attributes

CPtrList m_pTransfers


Constructor & Destructor Documentation

CUploadFile::CUploadFile CUploadTransfer pUpload,
SHA1 pSHA1,
LPCTSTR  pszName,
LPCTSTR  pszPath,
QWORD  nSize
 

Definition at line 39 of file UploadFile.cpp.

References m_bSelected, m_bSHA1, m_nRequests, m_nSize, m_pAddress, CConnection::m_pHost, m_pSHA1, m_pTransfers, m_sName, m_sPath, and NULL.

CUploadFile::~CUploadFile  )  [virtual]
 

Definition at line 56 of file UploadFile.cpp.


Member Function Documentation

void CUploadFile::Add CUploadTransfer pUpload  ) 
 

Definition at line 63 of file UploadFile.cpp.

References m_pTransfers, and NULL.

Referenced by CUploadFiles::GetFile().

void CUploadFile::AddFragment QWORD  nOffset,
QWORD  nLength
 

Definition at line 103 of file UploadFile.cpp.

References CStatistics::Current, detail::List< FragmentT, ContainerT >::empty(), detail::List< FragmentT, ContainerT >::insert(), m_oFragments, and Statistics.

Referenced by CUploadTransferED2K::CheckFinishedRequest(), CUploadTransferHTTP::OnCompleted(), CUploadTransferHTTP::OnDropped(), and CUploadTransferBT::ServeRequests().

CUploadTransfer * CUploadFile::GetActive  )  const
 

Definition at line 78 of file UploadFile.cpp.

References IsEmpty(), CUploadTransfer::m_nState, m_pTransfers, NULL, and upsNull.

Referenced by CUploadTipCtrl::DrawProgressBar(), CFragmentBar::DrawUpload(), CUploadsCtrl::GetFileIterator(), CUploadsCtrl::GetNextFile(), CUploadFiles::MoveToHead(), CUploadFiles::MoveToTail(), CUploadsWnd::OnBrowseLaunch(), CUploadTipCtrl::OnCalcSize(), CUploadsCtrl::OnKeyDown(), CUploadTipCtrl::OnPaint(), CUploadsWnd::OnSecurityBan(), CUploadTipCtrl::OnTimer(), CUploadsWnd::OnUploadsClear(), CUploadsWnd::OnUploadsDisconnect(), CRemote::PageUploads(), CUploadsCtrl::PaintFile(), and CUploadsWnd::Prepare().

BOOL CUploadFile::IsEmpty  )  const [inline]
 

Definition at line 64 of file UploadFile.h.

References m_pTransfers.

Referenced by GetActive(), and Remove().

void CUploadFile::Remove  ) 
 

Definition at line 91 of file UploadFile.cpp.

References m_pTransfers, and CUploadTransfer::Remove().

BOOL CUploadFile::Remove CUploadTransfer pUpload  ) 
 

Definition at line 68 of file UploadFile.cpp.

References IsEmpty(), m_pTransfers, and NULL.

Referenced by CUploadsWnd::OnUploadsClear(), CRemote::PageUploads(), and CUploadFiles::Remove().


Member Data Documentation

BOOL CUploadFile::m_bSelected
 

Definition at line 49 of file UploadFile.h.

Referenced by CUploadFile(), CUploadsCtrl::DeselectAll(), CUploadsCtrl::OnLButtonDblClk(), CUploadsCtrl::OnLButtonDown(), CUploadsCtrl::PaintFile(), CUploadsWnd::Prepare(), and CUploadsCtrl::SelectTo().

BOOL CUploadFile::m_bSHA1
 

Definition at line 40 of file UploadFile.h.

Referenced by CUploadFile().

DWORD CUploadFile::m_nRequests
 

Definition at line 46 of file UploadFile.h.

Referenced by CUploadFile(), and CUploadTransferHTTP::OpenFileSendHeaders().

QWORD CUploadFile::m_nSize
 

Definition at line 44 of file UploadFile.h.

Referenced by CUploadFile(), CFragmentBar::DrawUpload(), CRemote::PageUploads(), and CUploadsCtrl::PaintFile().

FF::SimpleFragmentList CUploadFile::m_oFragments
 

Definition at line 47 of file UploadFile.h.

Referenced by AddFragment(), and CFragmentBar::DrawUpload().

IN_ADDR CUploadFile::m_pAddress
 

Definition at line 39 of file UploadFile.h.

Referenced by CUploadFile(), and CUploadFiles::GetFile().

SHA1 CUploadFile::m_pSHA1
 

Definition at line 41 of file UploadFile.h.

Referenced by CUploadFile().

CPtrList CUploadFile::m_pTransfers [protected]
 

Definition at line 51 of file UploadFile.h.

Referenced by Add(), CUploadFile(), GetActive(), IsEmpty(), and Remove().

CString CUploadFile::m_sName
 

Definition at line 42 of file UploadFile.h.

Referenced by CUploadFile(), CUploadTipCtrl::OnCalcSize(), CUploadTipCtrl::OnPaint(), CRemote::PageUploads(), and CUploadsCtrl::PaintFile().

CString CUploadFile::m_sPath
 

Definition at line 43 of file UploadFile.h.

Referenced by CUploadFile(), CUploadFiles::GetFile(), and CUploadsWnd::OnUploadsLaunch().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:13 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2