00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 */ 00004 00005 #pragma once 00006 #include "vmsbtfile.h" 00007 00008 class vmsBtFileImpl : 00009 public vmsBtFile 00010 { 00011 public: 00012 virtual BOOL LoadFromFile (LPCSTR pszTorrentFile); 00013 virtual BOOL LoadFromBuffer (LPBYTE pbTorrent, DWORD dwTorrentSize); 00014 00015 int get_FileCount (); 00016 void get_FileName (int nIndex, LPSTR pszRes); 00017 UINT64 get_FileSize (int nIndex); 00018 UINT64 get_TotalFilesSize (); 00019 void get_TorrentName (LPSTR pszRes); 00020 BOOL get_TorrentBuffer (LPBYTE pbRes, DWORD dwSize, DWORD *pdwTorrentSize); 00021 void get_InfoHash (LPSTR pszRes); 00022 void get_TrackerUrl (LPSTR pszRes, int nIndex); 00023 int get_TrackerCount (); 00024 void get_TorrentComment (LPSTR pszRes); 00025 int get_PieceCount (); 00026 int get_PieceSize (); 00027 00028 virtual void Release (); 00029 void AddRef (); 00030 00031 vmsBtFileImpl(void); 00032 public: 00033 virtual ~vmsBtFileImpl(void); 00034 00035 public: 00036 torrent_info *m_torrent; 00037 00038 protected: 00039 long m_cRefs; 00040 };
1.5.6