00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_VMSBTSUPPORT_H__0E2B5DB4_43BC_4761_ABB5_28573A27F8F0__INCLUDED_) 00007 #define AFX_VMSBTSUPPORT_H__0E2B5DB4_43BC_4761_ABB5_28573A27F8F0__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 #include "vmsDll.h" 00014 #include "Bittorrent\fdmbtsupp\vmsBtSession.h" 00015 00016 class vmsBtSupport 00017 { 00018 public: 00019 vmsBtFile* CreateTorrentFileObject(); 00020 00021 void Shutdown(); 00022 00023 BOOL LoadState(); 00024 BOOL SaveState(); 00025 00026 void ApplyDHTSettings(); 00027 void ApplyListenPortSettings(); 00028 void ApplyProxySettings(); 00029 00030 void ApplyRestrainAllDownloadsMode(); 00031 00032 BOOL is_Initialized(); 00033 00034 vmsBtSession* get_Session(); 00035 00036 BOOL Initialize(); 00037 00038 vmsBtSupport(); 00039 virtual ~vmsBtSupport(); 00040 00041 protected: 00042 bool LoadBtDll (vmsDLL& dll); 00043 CRITICAL_SECTION m_cs1; 00044 00045 static void GetFirefoxProxySettings(fsString &strIp, fsString &strUser, fsString &strPwd, int &nPort); 00046 static void GetIeProxySettings (fsString& strIp, fsString& strUser, fsString& strPwd, int& nPort); 00047 00048 LPBYTE m_pbDHTstate; 00049 DWORD m_dwDHTstateSize; 00050 00051 vmsDLL m_dllBt, m_dllBtFile; 00052 }; 00053 00054 #endif
1.5.6