00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 */ 00004 00005 #if !defined(AFX_FSLOCALFILE_H__1DDB29EB_F880_4374_BF2A_7C3A1A12F898__INCLUDED_) 00006 #define AFX_FSLOCALFILE_H__1DDB29EB_F880_4374_BF2A_7C3A1A12F898__INCLUDED_ 00007 00008 #if _MSC_VER > 1000 00009 #pragma once 00010 #endif 00011 00012 #include "fsInternetFile.h" 00013 #include "fsinet.h" 00014 #include "fsInternetSession.h" 00015 00016 class fsLocalFile : public fsInternetFile 00017 { 00018 public: 00019 fsInternetResult Write (LPBYTE pBuffer, DWORD dwSize, DWORD *pdwWritten); 00020 fsInternetResult OpenEx (LPCSTR pszFilePath, UINT64 uStartPos, UINT64 uUploadPartSize = _UI64_MAX, UINT64 uUploadTotalSize = _UI64_MAX); 00021 00022 virtual fsInternetResult QuerySize (LPCSTR pszFilePath); 00023 virtual void CloseHandle(); 00024 void Initialize (LPCSTR pszServer); 00025 fsInternetResult Read (LPBYTE pBuffer, DWORD dwSize, DWORD *pdwRead); 00026 fsInternetResult Open (LPCSTR pszFilePath, UINT64 uStartPos); 00027 fsLocalFile(); 00028 virtual ~fsLocalFile(); 00029 00030 protected: 00031 00032 fsString m_strServer; 00033 }; 00034 00035 #endif
1.5.6