From 0a8a80e58374771acc225fe1e08ed8e0fe0016cc Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:51:09 +0000 Subject: Sync Author: jgg Date: 1998-10-22 04:56:38 GMT Sync --- apt-pkg/acquire-item.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'apt-pkg/acquire-item.h') diff --git a/apt-pkg/acquire-item.h b/apt-pkg/acquire-item.h index 6ab8859e4..8b2d6e908 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.1 1998/10/15 06:59:59 jgg Exp $ +// $Id: acquire-item.h,v 1.2 1998/10/22 04:56:39 jgg Exp $ /* ###################################################################### Acquire Item - Item to acquire @@ -30,16 +30,20 @@ class pkgAcquire::Item protected: pkgAcquire *Owner; - inline void QueueURI(string URI) {Owner->Enqueue(this,URI);}; + inline void QueueURI(string URI,string Description) + {Owner->Enqueue(this,URI,Description);}; public: + // Number of queues we are inserted into unsigned int QueueCounter; - string Description; - virtual string ToFile() = 0; - virtual void Failed() {}; + // File to write the fetch into + string DestFile; + virtual void Failed() {}; + virtual string Custom600Headers() {return string();}; + Item(pkgAcquire *Owner); virtual ~Item(); }; @@ -53,7 +57,7 @@ class pkgAcqIndex : public pkgAcquire::Item public: - virtual string ToFile(); + virtual string Custom600Headers(); pkgAcqIndex(pkgAcquire *Owner,const pkgSourceList::Item *Location); }; @@ -67,10 +71,9 @@ class pkgAcqIndexRel : public pkgAcquire::Item public: - virtual string ToFile(); - + virtual string Custom600Headers(); + pkgAcqIndexRel(pkgAcquire *Owner,const pkgSourceList::Item *Location); }; - #endif -- cgit v1.2.3-70-g09d2