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

CThumbCache Class Reference

#include <ThumbCache.h>

List of all members.

Public Member Functions

 CThumbCache ()
virtual ~CThumbCache ()
BOOL Load (LPCTSTR pszPath, CSize *pszThumb, DWORD nIndex, CImageFile *pImage)
BOOL Store (LPCTSTR pszPath, CSize *pszThumb, DWORD nIndex, CImageFile *pImage)
void Close ()

Static Public Member Functions

static BOOL Purge (LPCTSTR pszPath)

Protected Member Functions

BOOL Prepare (LPCTSTR pszPath, CSize *pszThumb, BOOL bCreate)
BOOL GetFileTime (LPCTSTR pszPath, FILETIME *pTime)

Protected Attributes

CCriticalSection m_pSection
CString m_sPath
CFile m_pFile
BOOL m_bOpen
CSize m_szThumb
DWORD m_nOffset
THUMB_INDEXm_pIndex
DWORD m_nIndex
DWORD m_nBuffer


Constructor & Destructor Documentation

CThumbCache::CThumbCache  ) 
 

Definition at line 41 of file ThumbCache.cpp.

References m_bOpen, m_nBuffer, m_nIndex, m_nOffset, m_pIndex, and NULL.

CThumbCache::~CThumbCache  )  [virtual]
 

Definition at line 50 of file ThumbCache.cpp.

References Close().


Member Function Documentation

void CThumbCache::Close  ) 
 

Definition at line 147 of file ThumbCache.cpp.

References m_bOpen, m_nBuffer, m_nIndex, m_pFile, m_pIndex, m_pSection, m_sPath, and NULL.

Referenced by Prepare(), and ~CThumbCache().

BOOL CThumbCache::GetFileTime LPCTSTR  pszPath,
FILETIME *  pTime
[protected]
 

Definition at line 322 of file ThumbCache.cpp.

References Library, and NULL.

Referenced by Load(), and Store().

BOOL CThumbCache::Load LPCTSTR  pszPath,
CSize *  pszThumb,
DWORD  nIndex,
CImageFile pImage
 

Definition at line 167 of file ThumbCache.cpp.

References GetFileTime(), m_nIndex, m_pFile, m_pIndex, m_pSection, THUMB_INDEX::nIndex, THUMB_INDEX::nOffset, Prepare(), THUMB_INDEX::pTime, and CImageFile::Serialize().

Referenced by CLibraryTipCtrl::OnRun(), CLibraryThumbView::OnRun(), CLibraryMetaPanel::OnRun(), and CUploadTransferHTTP::RequestPreview().

BOOL CThumbCache::Prepare LPCTSTR  pszPath,
CSize *  pszThumb,
BOOL  bCreate
[protected]
 

Definition at line 58 of file ThumbCache.cpp.

References Close(), CSettings::Library, m_bOpen, m_nBuffer, m_nIndex, m_nOffset, m_pFile, m_pIndex, m_sPath, m_szThumb, Settings, THUMB_SIGNATURE, and CSettings::sLibrary::ThumbSize.

Referenced by Load(), and Store().

BOOL CThumbCache::Purge LPCTSTR  pszPath  )  [static]
 

Definition at line 304 of file ThumbCache.cpp.

BOOL CThumbCache::Store LPCTSTR  pszPath,
CSize *  pszThumb,
DWORD  nIndex,
CImageFile pImage
 

Definition at line 206 of file ThumbCache.cpp.

References GetFileTime(), CImageFile::GetSerialSize(), Library, CLibrary::LookupFile(), m_nBuffer, m_nIndex, m_nOffset, m_pFile, m_pIndex, m_pSection, THUMB_INDEX::nIndex, THUMB_INDEX::nLength, THUMB_INDEX::nOffset, NULL, Prepare(), THUMB_INDEX::pTime, and CImageFile::Serialize().

Referenced by CLibraryTipCtrl::OnRun(), CLibraryThumbView::OnRun(), CLibraryMetaPanel::OnRun(), and CUploadTransferHTTP::RequestPreview().


Member Data Documentation

BOOL CThumbCache::m_bOpen [protected]
 

Definition at line 51 of file ThumbCache.h.

Referenced by Close(), CThumbCache(), and Prepare().

DWORD CThumbCache::m_nBuffer [protected]
 

Definition at line 57 of file ThumbCache.h.

Referenced by Close(), CThumbCache(), Prepare(), and Store().

DWORD CThumbCache::m_nIndex [protected]
 

Definition at line 56 of file ThumbCache.h.

Referenced by Close(), CThumbCache(), Load(), Prepare(), and Store().

DWORD CThumbCache::m_nOffset [protected]
 

Definition at line 54 of file ThumbCache.h.

Referenced by CThumbCache(), Prepare(), and Store().

CFile CThumbCache::m_pFile [protected]
 

Definition at line 50 of file ThumbCache.h.

Referenced by Close(), Load(), Prepare(), and Store().

THUMB_INDEX* CThumbCache::m_pIndex [protected]
 

Definition at line 55 of file ThumbCache.h.

Referenced by Close(), CThumbCache(), Load(), Prepare(), and Store().

CCriticalSection CThumbCache::m_pSection [protected]
 

Definition at line 47 of file ThumbCache.h.

Referenced by Close(), Load(), and Store().

CString CThumbCache::m_sPath [protected]
 

Definition at line 49 of file ThumbCache.h.

Referenced by Close(), and Prepare().

CSize CThumbCache::m_szThumb [protected]
 

Definition at line 52 of file ThumbCache.h.

Referenced by Prepare().


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