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_VMSDOWNLOADMGREX_H__A5D098FD_2C7B_4051_B405_8B1F25F3C3FA__INCLUDED_) 00007 #define AFX_VMSDOWNLOADMGREX_H__A5D098FD_2C7B_4051_B405_8B1F25F3C3FA__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 #include "vmsObject.h" 00014 #include "vmsObjectSmartPtr.h" 00015 00016 struct vmsSectionInfo 00017 { 00018 00019 UINT64 uDStart, uDEnd, uDCurrent; 00020 }; 00021 00022 class vmsDownloadMgrEx : public vmsObject 00023 { 00024 public: 00025 void Do_OpenFolder(); 00026 int get_ReservingDiskSpaceProgress(); 00027 BOOL IsReservingDiskSpace(); 00028 void GetSplittedSectionsList (std::vector <vmsSectionInfo> &v); 00029 00030 BOOL IsBittorrent(); 00031 00032 BOOL LoadState (LPBYTE pb, LPDWORD pdwSize, WORD wVer); 00033 BOOL SaveState (LPBYTE pb, DWORD *pdwSize); 00034 int GetConnectionCount(); 00035 fsInternetResult SetToRestartState(); 00036 BOOL IsDontConfirmLaunchWhenDone(); 00037 BOOL DeleteFile(); 00038 void UseDetailedLog (BOOL b); 00039 UINT GetTrafficLimit(); 00040 void LimitTraffic (UINT uLimit); 00041 void StopDownloading(); 00042 fsInternetResult StartDownloading(); 00043 BOOL IsHtmlSpiderDownload(); 00044 BOOL IsDescriptionFileShouldBeGenerated(); 00045 fsInternetResult RestartDownloading(); 00046 BOOL IsCantStart(); 00047 BOOL IsStoppedByUser(); 00048 BOOL MoveToFolder (LPCSTR pszPath); 00049 UINT GetSpeed(); 00050 UINT64 GetBytesLeft(); 00051 void StopSection(); 00052 void CreateOneMoreSection(); 00053 int GetDownloadingSectionCount(); 00054 void GetSectionInfo (int nIndex, vmsSectionInfo *sect, BOOL bNoCacheAccounting = FALSE); 00055 UINT64 GetSSFileSize(); 00056 BOOL IsDownloading(); 00057 UINT64 GetDownloadedBytesCount(); 00058 UINT64 GetLDFileSize(); 00059 int GetNumberOfSections(); 00060 fsString get_URL(BOOL bInclAuth = FALSE); 00061 void set_LaunchWhenDone (BOOL b); 00062 BOOL IsFileInitializedOnDisk(); 00063 BOOL IsRunning(); 00064 BOOL IsDone(); 00065 fsResumeSupportType IsResumeSupported(); 00066 BOOL IsLaunchWhenDone(); 00067 float GetPercentDone(); 00068 fsString get_OutputFilePathName(); 00069 class vmsBtDownloadManager* GetBtDownloadMgr(); 00070 class fsDownloadMgr* GetDownloadMgr(); 00071 00072 void Attach (vmsBtDownloadManager* pBtMgr); 00073 void Attach (fsDownloadMgr *pMgr); 00074 vmsDownloadMgrEx(); 00075 virtual ~vmsDownloadMgrEx(); 00076 00077 protected: 00078 vmsBtDownloadManager* m_pBtMgr; 00079 fsDownloadMgr* m_pMgr; 00080 }; 00081 00082 typedef vmsObjectSmartPtr <vmsDownloadMgrEx> vmsDownloadMgrSmartPtr; 00083 00084 #endif
1.5.6