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