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

CLibraryHistory Class Reference

#include <LibraryHistory.h>

List of all members.

Public Member Functions

 CLibraryHistory ()
virtual ~CLibraryHistory ()
POSITION GetIterator () const
CLibraryRecentGetNext (POSITION &pos) const
int GetCount () const
void Clear ()
BOOL Check (CLibraryRecent *pRecent, int nScope=0) const
CLibraryRecentGetByPath (LPCTSTR pszPath) const
CLibraryRecentAdd (LPCTSTR pszPath, const SHA1 *pSHA1, const MD4 *pED2K, LPCTSTR pszSources)
BOOL Submit (CLibraryFile *pFile)
void OnFileDelete (CLibraryFile *pFile)
void ClearTodays ()
int Prune ()
void Serialize (CArchive &ar, int nVersion)

Public Attributes

sTorrentDetails LastSeededTorrent
sTorrentDetails LastCompletedTorrent

Protected Attributes

CPtrList m_pList

Classes

struct  sTorrentDetails


Constructor & Destructor Documentation

CLibraryHistory::CLibraryHistory  ) 
 

Definition at line 41 of file LibraryHistory.cpp.

References LastCompletedTorrent, LastSeededTorrent, CLibraryHistory::sTorrentDetails::m_nDownloaded, CLibraryHistory::sTorrentDetails::m_nUploaded, CLibraryHistory::sTorrentDetails::m_pBTH, CLibraryHistory::sTorrentDetails::m_sName, CLibraryHistory::sTorrentDetails::m_sPath, and CLibraryHistory::sTorrentDetails::m_tLastSeeded.

CLibraryHistory::~CLibraryHistory  )  [virtual]
 

Definition at line 58 of file LibraryHistory.cpp.

References Clear().


Member Function Documentation

CLibraryRecent * CLibraryHistory::Add LPCTSTR  pszPath,
const SHA1 pSHA1,
const MD4 pED2K,
LPCTSTR  pszSources
 

Definition at line 124 of file LibraryHistory.cpp.

References GetByPath(), Library, m_pList, CLibrary::m_pSection, NULL, and Prune().

Referenced by CDownload::OnMoved().

BOOL CLibraryHistory::Check CLibraryRecent pRecent,
int  nScope = 0
const
 

Definition at line 93 of file LibraryHistory.cpp.

References CLibraryRecent::m_pFile, m_pList, and NULL.

Referenced by CLibraryHistoryPanel::Update(), and CHomeLibraryBox::Update().

void CLibraryHistory::Clear  ) 
 

Definition at line 84 of file LibraryHistory.cpp.

References GetIterator(), GetNext(), and m_pList.

Referenced by CLibrary::Clear(), CLibrarySettingsPage::OnRecentClear(), Serialize(), and ~CLibraryHistory().

void CLibraryHistory::ClearTodays  ) 
 

Definition at line 158 of file LibraryHistory.cpp.

References GetIterator(), and GetNext().

CLibraryRecent * CLibraryHistory::GetByPath LPCTSTR  pszPath  )  const
 

Definition at line 110 of file LibraryHistory.cpp.

References GetIterator(), GetNext(), CLibraryRecent::m_sPath, and NULL.

Referenced by Add(), and Submit().

int CLibraryHistory::GetCount  )  const
 

Definition at line 76 of file LibraryHistory.cpp.

References m_pList.

Referenced by Prune().

POSITION CLibraryHistory::GetIterator  )  const
 

Definition at line 66 of file LibraryHistory.cpp.

References m_pList.

Referenced by Clear(), ClearTodays(), GetByPath(), OnFileDelete(), Serialize(), CLibraryHistoryPanel::Update(), and CHomeLibraryBox::Update().

CLibraryRecent * CLibraryHistory::GetNext POSITION &  pos  )  const
 

Definition at line 71 of file LibraryHistory.cpp.

References m_pList.

Referenced by Clear(), ClearTodays(), GetByPath(), OnFileDelete(), Serialize(), CLibraryHistoryPanel::Update(), and CHomeLibraryBox::Update().

void CLibraryHistory::OnFileDelete CLibraryFile pFile  ) 
 

Definition at line 205 of file LibraryHistory.cpp.

References GetIterator(), GetNext(), CLibraryRecent::m_pFile, and m_pList.

Referenced by CLibrary::OnFileDelete().

int CLibraryHistory::Prune  ) 
 

Definition at line 169 of file LibraryHistory.cpp.

References GetCount(), CSettings::sLibrary::HistoryDays, CSettings::sLibrary::HistoryTotal, CSettings::Library, m_pList, CLibraryRecent::m_tAdded, and Settings.

Referenced by Add(), and Submit().

void CLibraryHistory::Serialize CArchive &  ar,
int  nVersion
 

Definition at line 224 of file LibraryHistory.cpp.

References Clear(), GetIterator(), GetNext(), LastSeededTorrent, CLibraryHistory::sTorrentDetails::m_pBTH, CLibraryRecent::m_pFile, m_pList, CLibraryHistory::sTorrentDetails::m_sName, CLibraryHistory::sTorrentDetails::m_sPath, CLibraryHistory::sTorrentDetails::m_tLastSeeded, NULL, and CLibraryRecent::Serialize().

Referenced by CLibrary::Serialize().

BOOL CLibraryHistory::Submit CLibraryFile pFile  ) 
 

Definition at line 143 of file LibraryHistory.cpp.

References GetByPath(), CLibraryFile::GetPath(), NULL, Prune(), and CLibraryRecent::RunVerify().

Referenced by CLibrary::AddFile().


Member Data Documentation

sTorrentDetails CLibraryHistory::LastCompletedTorrent
 

Definition at line 54 of file LibraryHistory.h.

Referenced by CLibraryHistory().

sTorrentDetails CLibraryHistory::LastSeededTorrent
 

Definition at line 53 of file LibraryHistory.h.

Referenced by CLibraryHistory(), CTorrentSeedDlg::OnSeed(), CMainWnd::OnToolsReseedTorrent(), Serialize(), and CHomeTorrentsBox::Update().

CPtrList CLibraryHistory::m_pList [protected]
 

Definition at line 40 of file LibraryHistory.h.

Referenced by Add(), Check(), Clear(), GetCount(), GetIterator(), GetNext(), OnFileDelete(), Prune(), and Serialize().


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