summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.h
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:51:09 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:51:09 +0000
commit0a8a80e58374771acc225fe1e08ed8e0fe0016cc (patch)
treeafa40f2a73b369e2ba930e47c961992170a669b7 /apt-pkg/acquire-item.h
parent93641593cafac296b9072288d8ef9e1a526d745b (diff)
Sync
Author: jgg Date: 1998-10-22 04:56:38 GMT Sync
Diffstat (limited to 'apt-pkg/acquire-item.h')
-rw-r--r--apt-pkg/acquire-item.h21
1 files changed, 12 insertions, 9 deletions
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