diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:27 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:27 +0000 |
commit | 03e39e592311fd327ea516d31567557830634c86 (patch) | |
tree | 6fc4479836bf5df004ecc5b387854d95a54a7b05 /apt-pkg/acquire-item.h | |
parent | d7827acababa05db7e901d2dfeb27538ef6a6142 (diff) |
Archive acquire code
Author: jgg
Date: 1998-11-13 04:23:26 GMT
Archive acquire code
Diffstat (limited to 'apt-pkg/acquire-item.h')
-rw-r--r-- | apt-pkg/acquire-item.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/apt-pkg/acquire-item.h b/apt-pkg/acquire-item.h index da650a63f..2de1e409e 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.7 1998/11/11 06:54:14 jgg Exp $ +// $Id: acquire-item.h,v 1.8 1998/11/13 04:23:28 jgg Exp $ /* ###################################################################### Acquire Item - Item to acquire @@ -19,6 +19,7 @@ #include <apt-pkg/acquire.h> #include <apt-pkg/sourcelist.h> +#include <apt-pkg/pkgrecords.h> #ifdef __GNUG__ #pragma interface "apt-pkg/acquire-item.h" @@ -95,4 +96,23 @@ class pkgAcqIndexRel : public pkgAcquire::Item pkgAcqIndexRel(pkgAcquire *Owner,const pkgSourceList::Item *Location); }; +// Item class for archive files +class pkgAcqArchive : public pkgAcquire::Item +{ + protected: + + pkgCache::VerIterator Version; + pkgAcquire::ItemDesc Desc; + pkgSourceList *Sources; + pkgRecords *Recs; + string MD5; + + public: + + virtual void Done(string Message,unsigned long Size,string Md5Hash); + + pkgAcqArchive(pkgAcquire *Owner,pkgSourceList *Sources, + pkgRecords *Recs,pkgCache::VerIterator const &Version); +}; + #endif |