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

CLibraryBuilderInternals Class Reference

#include <LibraryBuilderInternals.h>

List of all members.

Public Member Functions

 CLibraryBuilderInternals (CLibraryBuilder *pBuilder)
virtual ~CLibraryBuilderInternals ()
void LoadSettings ()
BOOL ExtractMetadata (CString &strPath, HANDLE hFile, SHA1 *pSHA1)

Static Public Attributes

static LPCTSTR pszID3Genre []

Protected Member Functions

BOOL SubmitMetadata (LPCTSTR pszSchemaURI, CXMLElement *pXML)
BOOL SubmitCorrupted ()
BOOL ReadID3v1 (HANDLE hFile, CXMLElement *pXML=NULL)
BOOL CopyID3v1Field (CXMLElement *pXML, LPCTSTR pszAttribute, LPCSTR pszValue, int nLength)
BOOL ReadID3v2 (HANDLE hFile)
BOOL CopyID3v2Field (CXMLElement *pXML, LPCTSTR pszAttribute, BYTE *pBuffer, DWORD nLength, BOOL bSkipLanguage=FALSE)
BOOL ReadMP3Frames (HANDLE hFile)
BOOL ScanMP3Frame (CXMLElement *pXML, HANDLE hFile, DWORD nIgnore)
BOOL ReadVersion (LPCTSTR pszPath)
BOOL CopyVersionField (CXMLElement *pXML, LPCTSTR pszAttribute, BYTE *pBuffer, LPCTSTR pszKey, BOOL bCommaToDot=FALSE)
CString GetVersionKey (BYTE *pBuffer, LPCTSTR pszKey)
BOOL ReadJPEG (HANDLE hFile)
BOOL ReadGIF (HANDLE hFile)
BOOL ReadPNG (HANDLE hFile)
BOOL ReadBMP (HANDLE hFile)
BOOL ReadASF (HANDLE hFile)
BOOL ReadAVI (HANDLE hFile)
BOOL ReadMPEG (HANDLE hFile)
BOOL ReadOGG (HANDLE hFile)
BYTE * ReadOGGPage (HANDLE hFile, DWORD &nBuffer, BYTE nFlags, DWORD nSequence, DWORD nMinSize=0)
BOOL ReadOGGString (BYTE *&pOGG, DWORD &nOGG, CString &str)
BOOL ReadAPE (HANDLE hFile)
BOOL ReadPDF (HANDLE hFile, LPCTSTR pszPath)
CString ReadLine (HANDLE hFile)
CString ReadLineReverse (HANDLE hFile)
BOOL ReadCollection (HANDLE hFile, SHA1 *pSHA1)
BOOL ReadCHM (HANDLE hFile, LPCTSTR pszPath)

Protected Attributes

CLibraryBuilderm_pBuilder
BOOL m_bEnableMP3
BOOL m_bEnableEXE
BOOL m_bEnableImage
BOOL m_bEnableASF
BOOL m_bEnableOGG
BOOL m_bEnableAPE
BOOL m_bEnableAVI
BOOL m_bEnablePDF
BOOL m_bEnableCHM
DWORD m_nSleep


Constructor & Destructor Documentation

CLibraryBuilderInternals::CLibraryBuilderInternals CLibraryBuilder pBuilder  ) 
 

Definition at line 46 of file LibraryBuilderInternals.cpp.

References m_pBuilder.

CLibraryBuilderInternals::~CLibraryBuilderInternals  )  [virtual]
 

Definition at line 51 of file LibraryBuilderInternals.cpp.


Member Function Documentation

BOOL CLibraryBuilderInternals::CopyID3v1Field CXMLElement pXML,
LPCTSTR  pszAttribute,
LPCSTR  pszValue,
int  nLength
[protected]
 

Definition at line 226 of file LibraryBuilderInternals.cpp.

References CXMLElement::AddAttribute(), and NULL.

Referenced by ReadID3v1().

BOOL CLibraryBuilderInternals::CopyID3v2Field CXMLElement pXML,
LPCTSTR  pszAttribute,
BYTE *  pBuffer,
DWORD  nLength,
BOOL  bSkipLanguage = FALSE
[protected]
 

Definition at line 467 of file LibraryBuilderInternals.cpp.

References CXMLElement::AddAttribute(), and NULL.

Referenced by ReadID3v2().

BOOL CLibraryBuilderInternals::CopyVersionField CXMLElement pXML,
LPCTSTR  pszAttribute,
BYTE *  pBuffer,
LPCTSTR  pszKey,
BOOL  bCommaToDot = FALSE
[protected]
 

Definition at line 762 of file LibraryBuilderInternals.cpp.

References CXMLElement::AddAttribute(), and GetVersionKey().

Referenced by ReadVersion().

BOOL CLibraryBuilderInternals::ExtractMetadata CString &  strPath,
HANDLE  hFile,
SHA1 pSHA1
 

Definition at line 74 of file LibraryBuilderInternals.cpp.

References m_bEnableAPE, m_bEnableASF, m_bEnableAVI, m_bEnableCHM, m_bEnableEXE, m_bEnableImage, m_bEnableMP3, m_bEnableOGG, m_bEnablePDF, ReadAPE(), ReadASF(), ReadAVI(), ReadBMP(), ReadCHM(), ReadCollection(), ReadGIF(), ReadID3v1(), ReadID3v2(), ReadJPEG(), ReadMP3Frames(), ReadMPEG(), ReadOGG(), ReadPDF(), ReadPNG(), ReadVersion(), and SubmitCorrupted().

Referenced by CLibraryBuilder::OnRun().

CString CLibraryBuilderInternals::GetVersionKey BYTE *  pBuffer,
LPCTSTR  pszKey
[protected]
 

Definition at line 781 of file LibraryBuilderInternals.cpp.

References NULL.

Referenced by CopyVersionField().

void CLibraryBuilderInternals::LoadSettings  ) 
 

Definition at line 58 of file LibraryBuilderInternals.cpp.

References m_bEnableAPE, m_bEnableASF, m_bEnableAVI, m_bEnableCHM, m_bEnableEXE, m_bEnableImage, m_bEnableMP3, m_bEnableOGG, m_bEnablePDF, and theApp.

Referenced by CLibraryBuilder::StartThread().

BOOL CLibraryBuilderInternals::ReadAPE HANDLE  hFile  )  [protected]
 

Definition at line 1639 of file LibraryBuilderInternals.cpp.

References CXMLElement::AddAttribute(), NULL, ReadID3v1(), SubmitCorrupted(), SubmitMetadata(), and CSchema::uriAudio.

Referenced by ExtractMetadata().

BOOL CLibraryBuilderInternals::ReadASF HANDLE  hFile  )  [protected]
 

Definition at line 1110 of file LibraryBuilderInternals.cpp.

References CXMLElement::AddAttribute(), NULL, SubmitCorrupted(), SubmitMetadata(), CSchema::uriAudio, and CSchema::uriVideo.

Referenced by ExtractMetadata().

BOOL CLibraryBuilderInternals::ReadAVI HANDLE  hFile  )  [protected]
 

Definition at line 1781 of file LibraryBuilderInternals.cpp.

References CXMLElement::AddAttribute(), NULL, SubmitCorrupted(), SubmitMetadata(), and CSchema::uriVideo.

Referenced by ExtractMetadata().

BOOL CLibraryBuilderInternals::ReadBMP HANDLE  hFile  )  [protected]
 

Definition at line 1014 of file LibraryBuilderInternals.cpp.

References CXMLElement::AddAttribute(), NULL, SubmitCorrupted(), SubmitMetadata(), and CSchema::uriImage.

Referenced by ExtractMetadata().

BOOL CLibraryBuilderInternals::ReadCHM HANDLE  hFile,
LPCTSTR  pszPath
[protected]
 

Definition at line 2130 of file LibraryBuilderInternals.cpp.

References _tcsistr(), CXMLElement::AddAttribute(), IsCharacter(), NULL, SubmitCorrupted(), SubmitMetadata(), CSchema::uriBook, and CSchema::uriDocument.

Referenced by ExtractMetadata().

BOOL CLibraryBuilderInternals::ReadCollection HANDLE  hFile,
SHA1 pSHA1
[protected]
 

Definition at line 2111 of file LibraryBuilderInternals.cpp.

References CCollectionFile::Attach(), CCollectionFile::GetMetadata(), CCollectionFile::GetThisURI(), LibraryFolders, CLibraryFolders::MountCollection(), and SubmitMetadata().

Referenced by ExtractMetadata().

BOOL CLibraryBuilderInternals::ReadGIF HANDLE  hFile  )  [protected]
 

Definition at line 904 of file LibraryBuilderInternals.cpp.

References CXMLElement::AddAttribute(), NULL, SubmitCorrupted(), SubmitMetadata(), and CSchema::uriImage.

Referenced by ExtractMetadata().

BOOL CLibraryBuilderInternals::ReadID3v1 HANDLE  hFile,
CXMLElement pXML = NULL
[protected]
 

Definition at line 177 of file LibraryBuilderInternals.cpp.

References CXMLElement::AddAttribute(), CopyID3v1Field(), ID3_GENRES, ID3V1_TAG, NULL, pszID3Genre, ScanMP3Frame(), SubmitMetadata(), and CSchema::uriAudio.

Referenced by ExtractMetadata(), and ReadAPE().

BOOL CLibraryBuilderInternals::ReadID3v2 HANDLE  hFile  )  [protected]
 

Definition at line 247 of file LibraryBuilderInternals.cpp.

References _tcsistr(), CXMLElement::AddAttribute(), CopyID3v2Field(), CXMLElement::GetAttributeValue(), ID3_DESYNC_SIZE, ID3_GENRES, ID3V2_EXTENDEDHEADER, ID3V2_KNOWNFRAME, ID3V2_KNOWNMASK, ID3V2_TAG, ID3V2_UNSYNCHRONISED, ID3V2_EXTENDED_HEADER_2::nSize, ID3V2_EXTENDED_HEADER_1::nSize, NULL, pszID3Genre, Replace(), ScanMP3Frame(), SubmitMetadata(), SWAP_LONG, and CSchema::uriAudio.

Referenced by ExtractMetadata().

BOOL CLibraryBuilderInternals::ReadJPEG HANDLE  hFile  )  [protected]
 

Definition at line 809 of file LibraryBuilderInternals.cpp.

References CXMLElement::AddAttribute(), CBuffer::EnsureBuffer(), CBuffer::m_nLength, CBuffer::m_pBuffer, NULL, CBuffer::ReadString(), SubmitCorrupted(), SubmitMetadata(), and CSchema::uriImage.

Referenced by ExtractMetadata().

CString CLibraryBuilderInternals::ReadLine HANDLE  hFile  )  [protected]
 

Definition at line 2069 of file LibraryBuilderInternals.cpp.

References NULL.

Referenced by ReadPDF().

CString CLibraryBuilderInternals::ReadLineReverse HANDLE  hFile  )  [protected]
 

Definition at line 2088 of file LibraryBuilderInternals.cpp.

References NULL.

Referenced by ReadPDF().

BOOL CLibraryBuilderInternals::ReadMP3Frames HANDLE  hFile  )  [protected]
 

Definition at line 568 of file LibraryBuilderInternals.cpp.

References NULL, ScanMP3Frame(), SubmitMetadata(), and CSchema::uriAudio.

Referenced by ExtractMetadata().

BOOL CLibraryBuilderInternals::ReadMPEG HANDLE  hFile  )  [protected]
 

Definition at line 1346 of file LibraryBuilderInternals.cpp.

References CXMLElement::AddAttribute(), NULL, SubmitMetadata(), and CSchema::uriVideo.

Referenced by ExtractMetadata().

BOOL CLibraryBuilderInternals::ReadOGG HANDLE  hFile  )  [protected]
 

Definition at line 1396 of file LibraryBuilderInternals.cpp.

References CXMLElement::AddAttribute(), CLibraryBuilder::m_bThread, m_nSleep, m_pBuilder, NULL, ReadOGGPage(), ReadOGGString(), SubmitCorrupted(), SubmitMetadata(), and CSchema::uriAudio.

Referenced by ExtractMetadata().

BYTE * CLibraryBuilderInternals::ReadOGGPage HANDLE  hFile,
DWORD &  nBuffer,
BYTE  nFlags,
DWORD  nSequence,
DWORD  nMinSize = 0
[protected]
 

Definition at line 1557 of file LibraryBuilderInternals.cpp.

References NULL.

Referenced by ReadOGG().

BOOL CLibraryBuilderInternals::ReadOGGString BYTE *&  pOGG,
DWORD &  nOGG,
CString &  str
[protected]
 

Definition at line 1619 of file LibraryBuilderInternals.cpp.

Referenced by ReadOGG().

BOOL CLibraryBuilderInternals::ReadPDF HANDLE  hFile,
LPCTSTR  pszPath
[protected]
 

Definition at line 1850 of file LibraryBuilderInternals.cpp.

References _tcsistr(), CXMLElement::AddAttribute(), NULL, ReadLine(), ReadLineReverse(), SubmitMetadata(), CSchema::uriBook, and CSchema::uriDocument.

Referenced by ExtractMetadata().

BOOL CLibraryBuilderInternals::ReadPNG HANDLE  hFile  )  [protected]
 

Definition at line 938 of file LibraryBuilderInternals.cpp.

References CXMLElement::AddAttribute(), NULL, SubmitCorrupted(), SubmitMetadata(), SWAP_LONG, and CSchema::uriImage.

Referenced by ExtractMetadata().

BOOL CLibraryBuilderInternals::ReadVersion LPCTSTR  pszPath  )  [protected]
 

Definition at line 724 of file LibraryBuilderInternals.cpp.

References CXMLElement::AddAttribute(), CopyVersionField(), NULL, SubmitMetadata(), and CSchema::uriApplication.

Referenced by ExtractMetadata().

BOOL CLibraryBuilderInternals::ScanMP3Frame CXMLElement pXML,
HANDLE  hFile,
DWORD  nIgnore
[protected]
 

Definition at line 585 of file LibraryBuilderInternals.cpp.

References CXMLElement::AddAttribute(), CLibraryBuilder::m_bPriority, CLibraryBuilder::m_bThread, m_nSleep, m_pBuilder, NULL, and SWAP_LONG.

Referenced by ReadID3v1(), ReadID3v2(), and ReadMP3Frames().

BOOL CLibraryBuilderInternals::SubmitCorrupted  )  [protected]
 

Definition at line 169 of file LibraryBuilderInternals.cpp.

References m_pBuilder, and CLibraryBuilder::SubmitCorrupted().

Referenced by ExtractMetadata(), ReadAPE(), ReadASF(), ReadAVI(), ReadBMP(), ReadCHM(), ReadGIF(), ReadJPEG(), ReadOGG(), and ReadPNG().

BOOL CLibraryBuilderInternals::SubmitMetadata LPCTSTR  pszSchemaURI,
CXMLElement pXML
[protected]
 

Definition at line 162 of file LibraryBuilderInternals.cpp.

References m_pBuilder, and CLibraryBuilder::SubmitMetadata().

Referenced by ReadAPE(), ReadASF(), ReadAVI(), ReadBMP(), ReadCHM(), ReadCollection(), ReadGIF(), ReadID3v1(), ReadID3v2(), ReadJPEG(), ReadMP3Frames(), ReadMPEG(), ReadOGG(), ReadPDF(), ReadPNG(), and ReadVersion().


Member Data Documentation

BOOL CLibraryBuilderInternals::m_bEnableAPE [protected]
 

Definition at line 46 of file LibraryBuilderInternals.h.

Referenced by ExtractMetadata(), and LoadSettings().

BOOL CLibraryBuilderInternals::m_bEnableASF [protected]
 

Definition at line 44 of file LibraryBuilderInternals.h.

Referenced by ExtractMetadata(), and LoadSettings().

BOOL CLibraryBuilderInternals::m_bEnableAVI [protected]
 

Definition at line 47 of file LibraryBuilderInternals.h.

Referenced by ExtractMetadata(), and LoadSettings().

BOOL CLibraryBuilderInternals::m_bEnableCHM [protected]
 

Definition at line 49 of file LibraryBuilderInternals.h.

Referenced by ExtractMetadata(), and LoadSettings().

BOOL CLibraryBuilderInternals::m_bEnableEXE [protected]
 

Definition at line 42 of file LibraryBuilderInternals.h.

Referenced by ExtractMetadata(), and LoadSettings().

BOOL CLibraryBuilderInternals::m_bEnableImage [protected]
 

Definition at line 43 of file LibraryBuilderInternals.h.

Referenced by ExtractMetadata(), and LoadSettings().

BOOL CLibraryBuilderInternals::m_bEnableMP3 [protected]
 

Definition at line 41 of file LibraryBuilderInternals.h.

Referenced by ExtractMetadata(), and LoadSettings().

BOOL CLibraryBuilderInternals::m_bEnableOGG [protected]
 

Definition at line 45 of file LibraryBuilderInternals.h.

Referenced by ExtractMetadata(), and LoadSettings().

BOOL CLibraryBuilderInternals::m_bEnablePDF [protected]
 

Definition at line 48 of file LibraryBuilderInternals.h.

Referenced by ExtractMetadata(), and LoadSettings().

DWORD CLibraryBuilderInternals::m_nSleep [protected]
 

Definition at line 51 of file LibraryBuilderInternals.h.

Referenced by ReadOGG(), and ScanMP3Frame().

CLibraryBuilder* CLibraryBuilderInternals::m_pBuilder [protected]
 

Definition at line 39 of file LibraryBuilderInternals.h.

Referenced by CLibraryBuilderInternals(), ReadOGG(), ScanMP3Frame(), SubmitCorrupted(), and SubmitMetadata().

LPCTSTR CLibraryBuilderInternals::pszID3Genre[] [static]
 

Definition at line 53 of file LibraryBuilderInternals.h.

Referenced by CDownloadWithFile::AppendMetadataID3v1(), ReadID3v1(), and ReadID3v2().


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