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

CFileExecutor Class Reference

#include <FileExecutor.h>

List of all members.

Static Public Member Functions

static BOOL Execute (LPCTSTR pszFile, BOOL bForce=FALSE)
static BOOL Enqueue (LPCTSTR pszFiles, BOOL bForce=FALSE)
static BOOL ShowBitziTicket (DWORD nFile)
static BOOL DisplayURL (LPCTSTR pszURL)

Static Protected Member Functions

static void GetFileComponents (LPCTSTR pszFile, CString &strPath, CString &strType)
static CMediaWnd * GetMediaWindow (BOOL bFocus)
static CLibraryWnd * GetLibraryWindow ()
static HDDEDATA CALLBACK DDECallback (UINT wType, UINT wFmt, HCONV hConv, HSZ hsz1, HSZ hsz2, HDDEDATA hData, DWORD dwData1, DWORD dwData2)


Member Function Documentation

HDDEDATA CALLBACK CFileExecutor::DDECallback (  UINT  wType,
UINT  wFmt,
HCONV  hConv,
HSZ  hsz1,
HSZ  hsz2,
HDDEDATA  hData,
DWORD  dwData1,
DWORD  dwData2
)  [static, protected]
 

Definition at line 274 of file FileExecutor.cpp.

References NULL.

Referenced by DisplayURL().

BOOL CFileExecutor::DisplayURL (  LPCTSTR  pszURL  )  [static]
 

Definition at line 235 of file FileExecutor.cpp.

References DDECallback(), and NULL.

Referenced by ShowBitziTicket().

BOOL CFileExecutor::Enqueue (  LPCTSTR  pszFiles,
BOOL  bForce = FALSE
)  [static]
 

Definition at line 138 of file FileExecutor.cpp.

References _tcsistr(), CSettings::sMediaPlayer::EnableEnqueue, CSettings::sMediaPlayer::FileTypes, GetFileComponents(), GetMediaWindow(), CSettings::MediaPlayer, NULL, CPlugins::OnEnqueueFile(), Plugins, and Settings.

Referenced by CDownloadsWnd::OnDownloadsEnqueue(), CLibraryFileView::OnLibraryEnqueue(), and CLibraryTreeView::OnLibraryFolderEnqueue().

BOOL CFileExecutor::Execute (  LPCTSTR  pszFile,
BOOL  bForce = FALSE
)  [static]
 

Definition at line 79 of file FileExecutor.cpp.

References _tcsistr(), CSettings::sMediaPlayer::EnablePlay, CSettings::sMediaPlayer::FileTypes, GetFileComponents(), GetLibraryWindow(), GetMediaWindow(), IDS_LIBRARY_CONFIRM_EXECUTE, CSettings::Library, CSkin::LoadString(), CSettings::MediaPlayer, NULL, CPlugins::OnExecuteFile(), Plugins, CSettings::sLibrary::SafeExecute, Settings, and Skin.

Referenced by CHomeDownloadsBox::ExecuteDownload(), CShareazaApp::InternalURI(), CDownloadMonitorDlg::OnDownloadLaunch(), CDownloadsWnd::OnDownloadsLaunch(), CHomeLibraryBox::OnLButtonUp(), CLibraryTreeView::OnLibraryExplore(), CLibraryFileView::OnLibraryLaunch(), CFilePreviewDlg::OnTimer(), and CUploadsWnd::OnUploadsLaunch().

void CFileExecutor::GetFileComponents (  LPCTSTR  pszFile,
CString &  strPath,
CString &  strType
)  [static, protected]
 

Definition at line 50 of file FileExecutor.cpp.

Referenced by Enqueue(), and Execute().

CLibraryWnd * CFileExecutor::GetLibraryWindow (   )  [static, protected]
 

Definition at line 68 of file FileExecutor.cpp.

References CShareazaApp::m_pSafeWnd, CMainWnd::m_pWindows, NULL, CWindowManager::Open(), and theApp.

Referenced by Execute().

CMediaWnd * CFileExecutor::GetMediaWindow (  BOOL  bFocus  )  [static, protected]
 

Definition at line 60 of file FileExecutor.cpp.

References CShareazaApp::m_pSafeWnd, CMainWnd::m_pWindows, NULL, CWindowManager::Open(), and theApp.

Referenced by Enqueue(), and Execute().

BOOL CFileExecutor::ShowBitziTicket (  DWORD  nFile  )  [static]
 

Definition at line 169 of file FileExecutor.cpp.

References CSettings::sLibrary::BitziOkay, CSettings::sLibrary::BitziWebSubmit, CSettings::sLibrary::BitziWebView, DisplayURL(), CLibraryFile::GetPath(), CLibraryFile::GetSize(), CTigerNode::HashToString(), CSHA::HashToString(), IDS_LIBRARY_BITZI_HASHED, IDS_LIBRARY_BITZI_MESSAGE, Library, CSettings::Library, CSkin::LoadString(), CLibrary::LookupFile(), CLibraryFile::m_bSHA1, CLibraryFile::m_bTiger, CLibrary::m_pSection, CLibraryFile::m_pSHA1, CLibraryFile::m_pTiger, CLibraryFile::m_sName, NULL, Replace(), CSettings::Save(), Settings, Skin, CSettings::SmartAgent(), and CConnection::URLEncode().

Referenced by CLibraryFileView::OnLibraryBitziWeb().


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