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

CPlugins Class Reference

#include <Plugins.h>

List of all members.

Public Member Functions

 CPlugins ()
virtual ~CPlugins ()
void Enumerate ()
void Clear ()
BOOL LookupCLSID (LPCTSTR pszGroup, LPCTSTR pszKey, CLSID &pCLSID, BOOL bEnableDefault=TRUE)
BOOL LookupEnable (REFCLSID pCLSID, BOOL bDefault)
void OnSkinChanged ()
void RegisterCommands ()
UINT GetCommandID ()
BOOL OnUpdate (CChildWnd *pActiveWnd, CCmdUI *pCmdUI)
BOOL OnCommand (CChildWnd *pActiveWnd, UINT nCommandID)
BOOL OnExecuteFile (LPCTSTR pszFile)
BOOL OnEnqueueFile (LPCTSTR pszFile)
POSITION GetIterator () const
CPluginGetNext (POSITION &pos) const
int GetCount () const

Public Attributes

CPtrList m_pList
UINT m_nCommandID


Constructor & Destructor Documentation

CPlugins::CPlugins  ) 
 

Definition at line 42 of file Plugins.cpp.

References ID_PLUGIN_FIRST, and m_nCommandID.

CPlugins::~CPlugins  )  [virtual]
 

Definition at line 47 of file Plugins.cpp.

References Clear().


Member Function Documentation

void CPlugins::Clear  ) 
 

Definition at line 100 of file Plugins.cpp.

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

Referenced by CMainWnd::OnClose(), and ~CPlugins().

void CPlugins::Enumerate  ) 
 

Definition at line 55 of file Plugins.cpp.

References GUIDX::Decode(), GetIterator(), GetNext(), m_pList, NULL, and CPlugin::StartIfEnabled().

Referenced by CPluginsSettingsPage::EnumerateGenericPlugins(), and CMainWnd::OnCreate().

UINT CPlugins::GetCommandID  ) 
 

Definition at line 177 of file Plugins.cpp.

References m_nCommandID.

int CPlugins::GetCount  )  const [inline]
 

Definition at line 70 of file Plugins.h.

References m_pList.

POSITION CPlugins::GetIterator  )  const [inline]
 

Definition at line 60 of file Plugins.h.

References m_pList.

Referenced by Clear(), Enumerate(), CPluginsSettingsPage::EnumerateGenericPlugins(), OnCommand(), OnEnqueueFile(), OnExecuteFile(), OnSkinChanged(), OnUpdate(), and RegisterCommands().

CPlugin* CPlugins::GetNext POSITION &  pos  )  const [inline]
 

Definition at line 65 of file Plugins.h.

References m_pList.

Referenced by Clear(), Enumerate(), CPluginsSettingsPage::EnumerateGenericPlugins(), OnCommand(), OnEnqueueFile(), OnExecuteFile(), OnSkinChanged(), OnUpdate(), and RegisterCommands().

BOOL CPlugins::LookupCLSID LPCTSTR  pszGroup,
LPCTSTR  pszKey,
CLSID pCLSID,
BOOL  bEnableDefault = TRUE
 

Definition at line 113 of file Plugins.cpp.

References GUIDX::Decode(), LookupEnable(), and NULL.

Referenced by CDownloadWithExtras::CanPreview(), CLibraryBuilderPlugins::LoadPlugin(), CFilePreviewDlg::LoadPlugin(), CImageServices::LoadService(), CDownloadMonitorDlg::OnDownloadLaunch(), and CMediaFrame::Prepare().

BOOL CPlugins::LookupEnable REFCLSID  pCLSID,
BOOL  bDefault
 

Definition at line 143 of file Plugins.cpp.

References GUIDX::Encode(), and theApp.

Referenced by CPluginsSettingsPage::AddMiscPlugin(), CMediaVisDlg::Enumerate(), LookupCLSID(), CMediaVisDlg::OnSetup(), CMediaFrame::PrepareVis(), and CPlugin::StartIfEnabled().

BOOL CPlugins::OnCommand CChildWnd pActiveWnd,
UINT  nCommandID
 

Definition at line 237 of file Plugins.cpp.

References GetIterator(), GetNext(), CPlugin::m_pCommand, CPluginWnd::m_pOwner, and NULL.

Referenced by CMainWnd::OnCommand().

BOOL CPlugins::OnEnqueueFile LPCTSTR  pszFile  ) 
 

Definition at line 284 of file Plugins.cpp.

References GetIterator(), GetNext(), and CPlugin::m_pExecute.

Referenced by CFileExecutor::Enqueue().

BOOL CPlugins::OnExecuteFile LPCTSTR  pszFile  ) 
 

Definition at line 265 of file Plugins.cpp.

References GetIterator(), GetNext(), and CPlugin::m_pExecute.

Referenced by CFileExecutor::Execute().

void CPlugins::OnSkinChanged  ) 
 

Definition at line 152 of file Plugins.cpp.

References GetIterator(), GetNext(), CPlugin::m_pCommand, and CPlugin::m_pPlugin.

Referenced by CSkin::Finalise().

BOOL CPlugins::OnUpdate CChildWnd pActiveWnd,
CCmdUI *  pCmdUI
 

Definition at line 185 of file Plugins.cpp.

References CCoolBarItem::FromCmdUI(), GetIterator(), GetNext(), CPlugin::m_pCommand, CPluginWnd::m_pOwner, NULL, CCoolBarItem::Show(), Shareaza::TSTRUE, and Shareaza::TSUNKNOWN.

Referenced by CMainWnd::OnUpdatePluginRange().

void CPlugins::RegisterCommands  ) 
 

Definition at line 166 of file Plugins.cpp.

References GetIterator(), GetNext(), ID_PLUGIN_FIRST, m_nCommandID, and CPlugin::m_pCommand.

Referenced by CSkin::CreateDefault().


Member Data Documentation

UINT CPlugins::m_nCommandID
 

Definition at line 41 of file Plugins.h.

Referenced by CPlugins(), GetCommandID(), and RegisterCommands().

CPtrList CPlugins::m_pList
 

Definition at line 40 of file Plugins.h.

Referenced by Clear(), Enumerate(), GetCount(), GetIterator(), and GetNext().


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