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_FSLOCALFILE_H__1DDB29EB_F880_4374_BF2A_7C3A1A12F898__INCLUDED_) 00007 #define AFX_FSLOCALFILE_H__1DDB29EB_F880_4374_BF2A_7C3A1A12F898__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 #include "fsInternetFile.h" 00014 #include "fsinet.h" 00015 #include "fsInternetSession.h" 00016 00017 class fsLocalFile : public fsInternetFile 00018 { 00019 public: 00020 fsInternetResult Write (LPBYTE pBuffer, DWORD dwSize, DWORD *pdwWritten); 00021 fsInternetResult OpenEx (LPCSTR pszFilePath, UINT64 uStartPos, UINT64 uUploadPartSize = _UI64_MAX, UINT64 uUploadTotalSize = _UI64_MAX); 00022 00023 virtual fsInternetResult QuerySize (LPCSTR pszFilePath); 00024 virtual void CloseHandle(); 00025 void Initialize (LPCSTR pszServer); 00026 fsInternetResult Read (LPBYTE pBuffer, DWORD dwSize, DWORD *pdwRead); 00027 fsInternetResult Open (LPCSTR pszFilePath, UINT64 uStartPos); 00028 fsLocalFile(); 00029 virtual ~fsLocalFile(); 00030 00031 protected: 00032 00033 fsString m_strServer; 00034 }; 00035 00036 #endif
1.5.6