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

CImageServices Class Reference

#include <ImageServices.h>

Inheritance diagram for CImageServices:

CComObject List of all members.

Public Member Functions

 CImageServices ()
virtual ~CImageServices ()
void Cleanup ()

Static Public Member Functions

static BOOL LoadBitmap (CBitmap *pBitmap, UINT nResourceID, LPCTSTR pszType)

Protected Member Functions

BOOL LoadFromMemory (CImageFile *pFile, LPCTSTR pszType, LPCVOID pData, DWORD nLength, BOOL bScanOnly=FALSE, BOOL bPartialOk=FALSE)
BOOL LoadFromFile (CImageFile *pFile, LPCTSTR pszType, HANDLE hFile, DWORD nLength, BOOL bScanOnly=FALSE, BOOL bPartialOk=FALSE)
BOOL PostLoad (CImageFile *pFile, IMAGESERVICEDATA *pParams, SAFEARRAY *pArray, BOOL bSuccess)
BOOL SaveToMemory (CImageFile *pFile, LPCTSTR pszType, int nQuality, LPBYTE *ppBuffer, DWORD *pnLength)
BOOL SaveToFile (CImageFile *pFile, LPCTSTR pszType, int nQuality, HANDLE hFile, DWORD *pnLength=NULL)
SAFEARRAY * ImageToArray (CImageFile *pFile)
IImageServicePluginGetService (LPCTSTR pszFile, CLSID **ppCLSID=NULL)
IImageServicePluginLoadService (LPCTSTR pszType, CLSID *pCLSID=NULL)

Protected Attributes

CMapStringToPtr m_pService
CMapStringToPtr m_pCLSID
BOOL m_bCOM

Friends

class CImageFile

Constructor & Destructor Documentation

CImageServices::CImageServices  ) 
 

Definition at line 44 of file ImageServices.cpp.

CImageServices::~CImageServices  )  [virtual]
 

Definition at line 49 of file ImageServices.cpp.

References Cleanup().


Member Function Documentation

void CImageServices::Cleanup  ) 
 

Definition at line 397 of file ImageServices.cpp.

References m_bCOM, m_pCLSID, m_pService, and NULL.

Referenced by CUploadTransferHTTP::RequestPreview(), and ~CImageServices().

IImageServicePlugin * CImageServices::GetService LPCTSTR  pszFile,
CLSID **  ppCLSID = NULL
[protected]
 

Definition at line 315 of file ImageServices.cpp.

References LoadService(), m_pCLSID, m_pService, and NULL.

Referenced by LoadFromFile(), LoadFromMemory(), SaveToFile(), and SaveToMemory().

SAFEARRAY * CImageServices::ImageToArray CImageFile pFile  )  [protected]
 

Definition at line 286 of file ImageServices.cpp.

References CImageFile::m_nComponents, CImageFile::m_nHeight, CImageFile::m_nWidth, CImageFile::m_pImage, and NULL.

Referenced by SaveToFile(), and SaveToMemory().

BOOL CImageServices::LoadBitmap CBitmap *  pBitmap,
UINT  nResourceID,
LPCTSTR  pszType
[static]
 

Definition at line 430 of file ImageServices.cpp.

References CImageFile::CreateBitmap(), CImageFile::EnsureRGB(), CImageFile::LoadFromResource(), and NULL.

Referenced by CSplashDlg::OnInitDialog(), CMediaFrame::OnPaint(), and CRichElement::PrePaintBitmap().

BOOL CImageServices::LoadFromFile CImageFile pFile,
LPCTSTR  pszType,
HANDLE  hFile,
DWORD  nLength,
BOOL  bScanOnly = FALSE,
BOOL  bPartialOk = FALSE
[protected]
 

Definition at line 98 of file ImageServices.cpp.

References GetService(), Shareaza::IMAGESERVICE_PARTIAL_IN, Shareaza::IMAGESERVICE_SCANONLY, LoadFromMemory(), NULL, and PostLoad().

Referenced by CImageFile::LoadFromFile().

BOOL CImageServices::LoadFromMemory CImageFile pFile,
LPCTSTR  pszType,
LPCVOID  pData,
DWORD  nLength,
BOOL  bScanOnly = FALSE,
BOOL  bPartialOk = FALSE
[protected]
 

Definition at line 57 of file ImageServices.cpp.

References GetService(), Shareaza::IMAGESERVICE_PARTIAL_IN, Shareaza::IMAGESERVICE_SCANONLY, NULL, and PostLoad().

Referenced by LoadFromFile(), CImageFile::LoadFromMemory(), and CImageFile::LoadFromResource().

IImageServicePlugin * CImageServices::LoadService LPCTSTR  pszType,
CLSID pCLSID = NULL
[protected]
 

Definition at line 354 of file ImageServices.cpp.

References CBitmapImageService::Create(), CPlugins::LookupCLSID(), m_bCOM, NULL, and Plugins.

Referenced by GetService().

BOOL CImageServices::PostLoad CImageFile pFile,
IMAGESERVICEDATA pParams,
SAFEARRAY *  pArray,
BOOL  bSuccess
[protected]
 

Definition at line 155 of file ImageServices.cpp.

References CImageFile::Clear(), CImageFile::m_bLoaded, CImageFile::m_bScanned, CImageFile::m_nComponents, CImageFile::m_nHeight, CImageFile::m_nWidth, CImageFile::m_pImage, __MIDL___MIDL_itf_Shareaza_0125_0001::nComponents, __MIDL___MIDL_itf_Shareaza_0125_0001::nHeight, NULL, and __MIDL___MIDL_itf_Shareaza_0125_0001::nWidth.

Referenced by LoadFromFile(), and LoadFromMemory().

BOOL CImageServices::SaveToFile CImageFile pFile,
LPCTSTR  pszType,
int  nQuality,
HANDLE  hFile,
DWORD *  pnLength = NULL
[protected]
 

Definition at line 246 of file ImageServices.cpp.

References GetService(), ImageToArray(), and NULL.

Referenced by CImageFile::SaveToFile().

BOOL CImageServices::SaveToMemory CImageFile pFile,
LPCTSTR  pszType,
int  nQuality,
LPBYTE *  ppBuffer,
DWORD *  pnLength
[protected]
 

Definition at line 202 of file ImageServices.cpp.

References GetService(), ImageToArray(), and NULL.

Referenced by CImageFile::SaveToMemory().


Friends And Related Function Documentation

friend class CImageFile [friend]
 

Definition at line 61 of file ImageServices.h.


Member Data Documentation

BOOL CImageServices::m_bCOM [protected]
 

Definition at line 59 of file ImageServices.h.

Referenced by Cleanup(), and LoadService().

CMapStringToPtr CImageServices::m_pCLSID [protected]
 

Reimplemented from CComObject.

Definition at line 58 of file ImageServices.h.

Referenced by Cleanup(), and GetService().

CMapStringToPtr CImageServices::m_pService [protected]
 

Definition at line 57 of file ImageServices.h.

Referenced by Cleanup(), and GetService().


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