From c88edf1d276eb4e01b92835163bdd8574ded93db Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:51:10 +0000 Subject: Sync Author: jgg Date: 1998-10-24 04:57:55 GMT Sync --- apt-pkg/acquire-item.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'apt-pkg/acquire-item.h') diff --git a/apt-pkg/acquire-item.h b/apt-pkg/acquire-item.h index 8b2d6e908..352fc3e24 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.2 1998/10/22 04:56:39 jgg Exp $ +// $Id: acquire-item.h,v 1.3 1998/10/24 04:57:57 jgg Exp $ /* ###################################################################### Acquire Item - Item to acquire @@ -35,13 +35,19 @@ class pkgAcquire::Item public: + // State of the item + enum {StatIdle, StatFetching, StatDone, StatError} Status; + string ErrorText; + // Number of queues we are inserted into unsigned int QueueCounter; // File to write the fetch into string DestFile; - virtual void Failed() {}; + virtual void Failed(string Message); + virtual void Done(string Message,unsigned long Size,string Md5Hash); + virtual string Custom600Headers() {return string();}; Item(pkgAcquire *Owner); @@ -71,6 +77,8 @@ class pkgAcqIndexRel : public pkgAcquire::Item public: + virtual void Done(string Message,unsigned long Size,string Md5Hash); + virtual string Custom600Headers(); pkgAcqIndexRel(pkgAcquire *Owner,const pkgSourceList::Item *Location); -- cgit v1.2.3