// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: acquire-item.h,v 1.19 1999/04/11 21:23:09 jgg Exp $
+// $Id: acquire-item.h,v 1.22 1999/10/17 20:58:36 jgg Exp $
/* ######################################################################
Acquire Item - Item to acquire
virtual void Start(string Message,unsigned long Size);
virtual string Custom600Headers() {return string();};
virtual string DescURI() = 0;
+ virtual void Finished() {};
// Inquire functions
virtual string MD5Sum() {return string();};
virtual void Done(string Message,unsigned long Size,string Md5Hash);
virtual string MD5Sum() {return MD5;};
virtual string DescURI() {return Desc.URI;};
+ virtual void Finished();
pkgAcqArchive(pkgAcquire *Owner,pkgSourceList *Sources,
pkgRecords *Recs,pkgCache::VerIterator const &Version,
class pkgAcqFile : public pkgAcquire::Item
{
pkgAcquire::ItemDesc Desc;
- string MD5;
+ string Md5Hash;
+ unsigned int Retries;
public:
// Specialized action members
+ virtual void Failed(string Message,pkgAcquire::MethodConfig *Cnf);
virtual void Done(string Message,unsigned long Size,string Md5Hash);
- virtual string MD5Sum() {return MD5;};
+ virtual string MD5Sum() {return Md5Hash;};
virtual string DescURI() {return Desc.URI;};
pkgAcqFile(pkgAcquire *Owner,string URI,string MD5,unsigned long Size,