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

CDownloadGroups Class Reference

#include <DownloadGroups.h>

List of all members.

Public Member Functions

 CDownloadGroups ()
virtual ~CDownloadGroups ()
CDownloadGroupGetSuperGroup ()
CDownloadGroupAdd (LPCTSTR pszName=NULL)
void Remove (CDownloadGroup *pGroup)
void Link (CDownload *pDownload)
void Unlink (CDownload *pDownload, BOOL bAndSuper=TRUE)
void CreateDefault ()
CString GetCompletedPath (CDownload *pDownload)
void Clear ()
BOOL Load ()
BOOL Save (BOOL bForce=TRUE)
POSITION GetIterator () const
CDownloadGroupGetNext (POSITION &pos) const
int GetCount () const
BOOL Check (CDownloadGroup *pGroup) const
int GetGroupCookie () const
void IncBaseCookie ()

Public Attributes

CCriticalSection m_pSection

Protected Member Functions

void Serialize (CArchive &ar)

Protected Attributes

CPtrList m_pList
CDownloadGroupm_pSuper
int m_nBaseCookie
int m_nSaveCookie
int m_nGroupCookie

Friends

class CDownloadGroup


Constructor & Destructor Documentation

CDownloadGroups::CDownloadGroups  ) 
 

Definition at line 43 of file DownloadGroups.cpp.

References m_nBaseCookie, m_nGroupCookie, m_nSaveCookie, m_pSuper, and NULL.

CDownloadGroups::~CDownloadGroups  )  [virtual]
 

Definition at line 51 of file DownloadGroups.cpp.

References Clear().


Member Function Documentation

CDownloadGroup * CDownloadGroups::Add LPCTSTR  pszName = NULL  ) 
 

Definition at line 71 of file DownloadGroups.cpp.

References CDownloadGroup, m_nBaseCookie, m_nGroupCookie, m_pList, m_pSection, CDownloadGroup::m_sName, and NULL.

Referenced by CreateDefault(), GetSuperGroup(), CDownloadTabBar::OnDownloadGroupNew(), and Serialize().

BOOL CDownloadGroups::Check CDownloadGroup pGroup  )  const [inline]
 

Definition at line 81 of file DownloadGroups.h.

References m_pList, and NULL.

Referenced by CDownloadTabBar::DropObjects(), CDownloadTabBar::GetSelectedDownloads(), CDownloadTabBar::OnDownloadGroupNew(), CDownloadGroupDlg::OnInitDialog(), CDownloadGroupDlg::OnOK(), and CDownloadTabBar::UpdateStates().

void CDownloadGroups::Clear  ) 
 

Definition at line 187 of file DownloadGroups.cpp.

References GetIterator(), GetNext(), m_nBaseCookie, m_nGroupCookie, m_pList, m_pSection, m_pSuper, and NULL.

Referenced by Serialize(), and ~CDownloadGroups().

void CDownloadGroups::CreateDefault  ) 
 

Definition at line 136 of file DownloadGroups.cpp.

References Add(), CDownloadGroup::AddFilter(), GetSuperGroup(), m_pSection, CDownloadGroup::SetSchema(), CSchema::uriMusicAlbum, CSchema::uriROM, and CSchema::uriVideo.

Referenced by CDownloads::Load().

CString CDownloadGroups::GetCompletedPath CDownload pDownload  ) 
 

Definition at line 167 of file DownloadGroups.cpp.

References CSettings::sDownloads::CompletePath, CDownloadGroup::Contains(), CSettings::Downloads, GetIterator(), GetNext(), m_pSection, m_pSuper, CDownloadGroup::m_sFolder, and Settings.

Referenced by CDownloadTask::CDownloadTask(), and CDownloadsWnd::OnDownloadsLaunch().

int CDownloadGroups::GetCount  )  const [inline]
 

Definition at line 76 of file DownloadGroups.h.

References m_pList.

Referenced by Serialize().

int CDownloadGroups::GetGroupCookie  )  const [inline]
 

Definition at line 86 of file DownloadGroups.h.

References m_nGroupCookie.

Referenced by CDownloadTabBar::Update(), and CDownloadTabBar::UpdateGroups().

POSITION CDownloadGroups::GetIterator  )  const [inline]
 

Definition at line 66 of file DownloadGroups.h.

References m_pList.

Referenced by Clear(), GetCompletedPath(), Link(), CRemote::PageDownloads(), Serialize(), Unlink(), and CDownloadTabBar::UpdateGroups().

CDownloadGroup* CDownloadGroups::GetNext POSITION &  pos  )  const [inline]
 

Definition at line 71 of file DownloadGroups.h.

References m_pList.

Referenced by Clear(), GetCompletedPath(), Link(), CRemote::PageDownloads(), Serialize(), Unlink(), and CDownloadTabBar::UpdateGroups().

CDownloadGroup * CDownloadGroups::GetSuperGroup  ) 
 

Definition at line 59 of file DownloadGroups.cpp.

References Add(), m_pSection, m_pSuper, and NULL.

Referenced by CreateDefault(), Link(), CDownloadGroupDlg::OnInitDialog(), CDownloadTabBar::OnUpdateDownloadGroupRemove(), Serialize(), and CDownloadTabBar::TabItem::TabItem().

void CDownloadGroups::IncBaseCookie  )  [inline]
 

Definition at line 91 of file DownloadGroups.h.

References m_nBaseCookie.

Referenced by CDownloads::Move(), and CDownloads::Reorder().

void CDownloadGroups::Link CDownload pDownload  ) 
 

Definition at line 106 of file DownloadGroups.cpp.

References GetIterator(), GetNext(), GetSuperGroup(), CDownloadGroup::Link(), and m_pSection.

Referenced by CDownloads::Add(), CDownload::CDownload(), and CDownload::Serialize().

BOOL CDownloadGroups::Load  ) 
 

Definition at line 202 of file DownloadGroups.cpp.

References CSettings::General, m_nBaseCookie, m_nSaveCookie, m_pSection, Serialize(), Settings, and CSettings::sGeneral::UserPath.

Referenced by CDownloads::Load().

void CDownloadGroups::Remove CDownloadGroup pGroup  ) 
 

Definition at line 88 of file DownloadGroups.cpp.

References m_nBaseCookie, m_nGroupCookie, m_pList, m_pSection, and m_pSuper.

Referenced by CDownloadTabBar::OnDownloadGroupNew(), and CDownloadTabBar::OnDownloadGroupRemove().

BOOL CDownloadGroups::Save BOOL  bForce = TRUE  ) 
 

Definition at line 226 of file DownloadGroups.cpp.

References CSettings::General, m_nBaseCookie, m_nSaveCookie, m_pSection, Serialize(), Settings, and CSettings::sGeneral::UserPath.

Referenced by CShareazaApp::ExitInstance(), and CDownloads::OnRun().

void CDownloadGroups::Serialize CArchive &  ar  )  [protected]
 

Definition at line 268 of file DownloadGroups.cpp.

References CDownloadGroup::Add(), Add(), Clear(), Downloads, CDownloads::FindBySID(), GetCount(), CDownloads::GetCount(), GetIterator(), CDownloads::GetIterator(), GetNext(), CDownloads::GetNext(), GetSuperGroup(), GROUPS_SER_VERSION, m_pSuper, NULL, CDownloads::Reorder(), and CDownloadGroup::Serialize().

Referenced by Load(), and Save().

void CDownloadGroups::Unlink CDownload pDownload,
BOOL  bAndSuper = TRUE
 

Definition at line 122 of file DownloadGroups.cpp.

References GetIterator(), GetNext(), m_pSection, m_pSuper, and CDownloadGroup::Remove().

Referenced by CDownloadTabBar::DropObjects(), and CDownload::~CDownload().


Friends And Related Function Documentation

friend class CDownloadGroup [friend]
 

Definition at line 96 of file DownloadGroups.h.

Referenced by Add().


Member Data Documentation

int CDownloadGroups::m_nBaseCookie [protected]
 

Definition at line 44 of file DownloadGroups.h.

Referenced by Add(), CDownloadGroup::Add(), CDownloadGroups(), Clear(), IncBaseCookie(), Load(), Remove(), CDownloadGroup::Remove(), and Save().

int CDownloadGroups::m_nGroupCookie [protected]
 

Definition at line 46 of file DownloadGroups.h.

Referenced by Add(), CDownloadGroups(), Clear(), GetGroupCookie(), and Remove().

int CDownloadGroups::m_nSaveCookie [protected]
 

Definition at line 45 of file DownloadGroups.h.

Referenced by CDownloadGroups(), Load(), and Save().

CPtrList CDownloadGroups::m_pList [protected]
 

Definition at line 42 of file DownloadGroups.h.

Referenced by Add(), Check(), Clear(), GetCount(), GetIterator(), GetNext(), and Remove().

CCriticalSection CDownloadGroups::m_pSection
 

Definition at line 40 of file DownloadGroups.h.

Referenced by Add(), Clear(), CreateDefault(), CDownloadTabBar::DropObjects(), GetCompletedPath(), CDownloadTabBar::GetSelectedDownloads(), GetSuperGroup(), Link(), Load(), CDownloadGroupDlg::OnInitDialog(), CDownloadGroupDlg::OnOK(), CRemote::PageDownloads(), Remove(), Save(), Unlink(), and CDownloadTabBar::Update().

CDownloadGroup* CDownloadGroups::m_pSuper [protected]
 

Definition at line 43 of file DownloadGroups.h.

Referenced by CDownloadGroups(), Clear(), GetCompletedPath(), GetSuperGroup(), Remove(), Serialize(), and Unlink().


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