X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/36375005d9e971d2fdfc62224671f009ce7adaf9..10bb1f5f242d8a475b0c4395d71214353355f304:/apt-pkg/acquire-item.h diff --git a/apt-pkg/acquire-item.h b/apt-pkg/acquire-item.h index 205537eae..fd74280b8 100644 --- a/apt-pkg/acquire-item.h +++ b/apt-pkg/acquire-item.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: acquire-item.h,v 1.18 1999/04/07 05:30:17 jgg Exp $ +// $Id: acquire-item.h,v 1.22 1999/10/17 20:58:36 jgg Exp $ /* ###################################################################### Acquire Item - Item to acquire @@ -66,6 +66,7 @@ class pkgAcquire::Item 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();}; @@ -138,6 +139,7 @@ class pkgAcqArchive : public pkgAcquire::Item 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, @@ -148,12 +150,15 @@ class pkgAcqArchive : public pkgAcquire::Item 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 Md5Hash;}; virtual string DescURI() {return Desc.URI;}; pkgAcqFile(pkgAcquire *Owner,string URI,string MD5,unsigned long Size,