Changeset 3009
- Timestamp:
- 07/05/06 05:02:04 (3 years ago)
- Files:
-
- hydranode/hncore/ed2k/downloadlist.cpp (modified) (1 diff)
- hydranode/hncore/partdata.cpp (modified) (2 diffs)
- hydranode/hncore/partdata.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
hydranode/hncore/ed2k/downloadlist.cpp
r2845 r3009 372 372 SharedFile *sf = new SharedFile(pd, md); 373 373 FilesList::instance().push(sf); 374 pd->setComplete(Range64(0, pd->getSize() - 1)); 375 pd->rehashCompleted(); 374 376 375 377 logMsg( hydranode/hncore/partdata.cpp
r2900 r3009 463 463 464 464 PartData::PartData( 465 const boost::filesystem::path &path, MetaData *md 466 ) : Object(0), m_size(md->getSize()), m_loc(path), m_chunks(new ChunkMap), 467 m_toFlush(), m_md(md), m_pendingHashes(), m_sourceCnt(), m_fullSourceCnt(), 468 m_paused(), m_stopped(), m_autoPaused() { 465 const boost::filesystem::path &path, MetaData *md, 466 RangeList64 completed, RangeList64 verified 467 ) : Object(0), m_size(md->getSize()), m_loc(path), m_complete(completed), 468 m_verified(verified), m_chunks(new ChunkMap), m_toFlush(), m_md(md), 469 m_pendingHashes(), m_sourceCnt(), m_fullSourceCnt(), m_paused(), m_stopped(), 470 m_autoPaused() { 469 471 initSignals(); 470 472 … … 481 483 482 484 setDestination(boost::filesystem::path(incDir) / md->getName()); 483 m_complete.merge(0, getSize() - 1);484 485 save(); 485 rehashCompleted();486 486 getEventTable().postEvent(this, PD_ADDED); 487 487 } hydranode/hncore/partdata.h
r2792 r3009 159 159 * imported via FilesList::import() signal. 160 160 * 161 * @param loc Location of actual file data 162 * @param md Reference MetaData for this file 163 */ 164 PartData(const boost::filesystem::path &loc, MetaData *md); 161 * @param loc Location of actual file data 162 * @param md Reference MetaData for this file 163 * @param completed Completed ranges (optional) 164 * @param verified Verified ranges (optional) 165 */ 166 PartData( 167 const boost::filesystem::path &loc, MetaData *md, 168 RangeList64 completed = RangeList64(), 169 RangeList64 verified = RangeList64() 170 ); 165 171 166 172 /**
