1 #ifndef VSNET_DLOADITEM_H
2 #define VSNET_DLOADITEM_H
15 #include "boost/shared_ptr.hpp"
16 #include "boost/shared_array.hpp"
22 namespace VsnetDownload
146 inline bool ok()
const
196 virtual void childAppend(
unsigned char *buffer,
int bufsize ) = 0;
203 const std::string _filename;
220 File(
const std::string &destfile,
SOCKETALT sock,
const std::string &filename, std::string localbasepath,
231 std::string _destfile;
232 std::string _localbasepath;
263 inline bool ok()
const
270 return me()->
total();
285 typedef unsigned char uchar;
297 boost::shared_array< uchar >
getBuffer()
const;
308 inline bool ok()
const
315 return me()->
total();
328 boost::shared_array< uchar >_buf;
371 public:
FileSet( boost::shared_ptr< Manager >mgr,
SOCKETALT sock, std::list< std::string >filesnames, std::string localbasepath );
374 void update( std::string s,
bool v );
377 std::map< std::string, int >_files;
401 std::string _filename;