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_FSINTERNETFILES_H__0E0074EB_2AD0_438E_A57C_4EFA0D8855E7__INCLUDED_) 00007 #define AFX_FSINTERNETFILES_H__0E0074EB_2AD0_438E_A57C_4EFA0D8855E7__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 #include <windows.h> 00014 #include "../list.h" 00015 #include <fsString.h> 00016 #include "fsinet.h" 00017 #include "fsInternetSession.h" 00018 00019 struct fsFileInfo 00020 { 00021 fsString strName; 00022 UINT64 uSize; 00023 FILETIME date; 00024 BOOL bAvailable; 00025 BOOL bFolder; 00026 00027 fsFileInfo () 00028 { 00029 bFolder = FALSE; 00030 bAvailable = TRUE; 00031 } 00032 }; 00033 00034 class fsInternetFiles 00035 { 00036 public: 00037 00038 00039 00040 00041 virtual fsInternetResult GetList (LPCSTR pszPath) = NULL; 00042 00043 virtual void Abort () = NULL; 00044 00045 UINT GetFileCount(); 00046 00047 00048 LPCSTR GetCurrentPath(); 00049 00050 fsFileInfo* GetFileInfo (UINT uIndex); 00051 virtual LPCSTR GetLastError () = NULL; 00052 fsInternetFiles(); 00053 virtual ~fsInternetFiles(); 00054 00055 protected: 00056 fsString m_strPath; 00057 fs::list <fsFileInfo> m_vFiles; 00058 }; 00059 00060 #endif
1.5.6