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

CEDPartImporter Class Reference

#include <EDPartImporter.h>

List of all members.

Public Member Functions

 CEDPartImporter ()
virtual ~CEDPartImporter ()
void AddFolder (LPCTSTR pszFolder)
void Start (CEdit *pCtrl)
void Stop ()
BOOL IsRunning ()
virtual BOOL InitInstance ()
virtual int Run ()

Protected Member Functions

void ImportFolder (LPCTSTR pszPath)
BOOL ImportFile (LPCTSTR pszPath, LPCTSTR pszFile)
BOOL CopyFile (LPCTSTR pszSource, LPCTSTR pszTarget)
void Message (UINT nMessageID,...)

Protected Attributes

CStringList m_pFolders
CEdit * m_pTextCtrl
int m_nCount


Constructor & Destructor Documentation

CEDPartImporter::CEDPartImporter  ) 
 

Definition at line 55 of file EDPartImporter.cpp.

References NULL.

CEDPartImporter::~CEDPartImporter  )  [virtual]
 

Definition at line 61 of file EDPartImporter.cpp.


Member Function Documentation

void CEDPartImporter::AddFolder LPCTSTR  pszFolder  ) 
 

Definition at line 73 of file EDPartImporter.cpp.

References m_pFolders, m_pTextCtrl, and NULL.

Referenced by CWizardNetworksPage::DoDonkeyImport(), and CDonkeySettingsPage::OnImportDownloads().

BOOL CEDPartImporter::CopyFile LPCTSTR  pszSource,
LPCTSTR  pszTarget
[protected]
 

Definition at line 376 of file EDPartImporter.cpp.

Referenced by ImportFile().

BOOL CEDPartImporter::ImportFile LPCTSTR  pszPath,
LPCTSTR  pszFile
[protected]
 

Definition at line 167 of file EDPartImporter.cpp.

References CDownloads::Add(), CEDTag::Check(), CopyFile(), CDownloads::dlPathIncomplete, CSettings::Downloads, Downloads, ED2K_FT_FILENAME, ED2K_FT_FILESIZE, ED2K_FT_STATUS, ED2K_TAG_INT, ED2K_TAG_STRING, CDownloads::FindByED2K(), CED2K::FromBytes(), CED2K::FromRoot(), CED2K::GetRoot(), CED2K::HashToString(), IDS_ED2K_EPI_ALREADY, IDS_ED2K_EPI_CANT_OPEN_PART, IDS_ED2K_EPI_COPY_FINISHED, IDS_ED2K_EPI_COPY_START, IDS_ED2K_EPI_DETECTED, IDS_ED2K_EPI_DISK_SPACE, IDS_ED2K_EPI_FILE_CREATED, IDS_ED2K_EPI_FILE_OLD, IDS_ED2K_EPI_FILE_START, CSettings::sDownloads::IncompletePath, detail::List< FragmentT, ContainerT >::insert(), CED2K::IsAvailable(), CDownloads::IsSpaceAvailable(), CDownloadBase::m_bED2K, CDownloadBase::m_nSize, CEDTag::m_nType, CEDTag::m_nValue, CFragmentedFile::m_oFList, CDownloadBase::m_pED2K, CDownloadWithFile::m_pFile, CTransfers::m_pSection, m_pTextCtrl, CEDTag::m_sKey, CDownloadBase::m_sLocalName, CDownloadBase::m_sRemoteName, CEDTag::m_sValue, Message(), NULL, CDownload::Pause(), CEDTag::Read(), CDownload::Save(), CDownloadWithTiger::SetHashset(), Settings, CSettings::SmartVolume(), detail::List< FragmentT, ContainerT >::sumLength(), detail::List< FragmentT, ContainerT >::swap(), CED2K::ToBytes(), and Transfers.

Referenced by ImportFolder().

void CEDPartImporter::ImportFolder LPCTSTR  pszPath  )  [protected]
 

Definition at line 126 of file EDPartImporter.cpp.

References IDS_ED2K_EPI_FILE_FAILED, IDS_ED2K_EPI_FOLDER, ImportFile(), m_nCount, m_pTextCtrl, Message(), and NULL.

Referenced by Run().

BOOL CEDPartImporter::InitInstance  )  [virtual]
 

Definition at line 65 of file EDPartImporter.cpp.

BOOL CEDPartImporter::IsRunning  ) 
 

Definition at line 93 of file EDPartImporter.cpp.

References NULL.

Referenced by CDonkeyImportDlg::OnTimer().

void CEDPartImporter::Message UINT  nMessageID,
  ...
[protected]
 

Definition at line 384 of file EDPartImporter.cpp.

References LoadString(), m_pTextCtrl, and NULL.

Referenced by ImportFile(), ImportFolder(), and Run().

int CEDPartImporter::Run  )  [virtual]
 

Definition at line 104 of file EDPartImporter.cpp.

References Downloads, CSettings::Downloads, IDS_ED2K_EPI_FINISHED, IDS_ED2K_EPI_START, ImportFolder(), CSettings::sDownloads::IncompletePath, m_nCount, m_pFolders, m_pTextCtrl, Message(), NULL, CDownloads::Save(), and Settings.

void CEDPartImporter::Start CEdit *  pCtrl  ) 
 

Definition at line 79 of file EDPartImporter.cpp.

References m_pTextCtrl, and NULL.

Referenced by CDonkeyImportDlg::OnImport().

void CEDPartImporter::Stop  ) 
 

Definition at line 86 of file EDPartImporter.cpp.

References m_pTextCtrl, and NULL.

Referenced by CDonkeyImportDlg::OnCancel().


Member Data Documentation

int CEDPartImporter::m_nCount [protected]
 

Definition at line 41 of file EDPartImporter.h.

Referenced by ImportFolder(), and Run().

CStringList CEDPartImporter::m_pFolders [protected]
 

Definition at line 39 of file EDPartImporter.h.

Referenced by AddFolder(), and Run().

CEdit* CEDPartImporter::m_pTextCtrl [protected]
 

Definition at line 40 of file EDPartImporter.h.

Referenced by AddFolder(), ImportFile(), ImportFolder(), Message(), Run(), Start(), and Stop().


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