]>
git.saurik.com Git - apt.git/blob - apt-pkg/acquire.cc
1 // -*- mode: cpp; mode: fold -*-
3 // $Id: acquire.cc,v 1.1 1998/10/15 06:59:59 jgg Exp $
4 /* ######################################################################
6 Acquire - File Acquiration
8 ##################################################################### */
10 // Include Files /*{{{*/
12 #pragma implementation "apt-pkg/acquire.h"
14 #include <apt-pkg/acquire.h>
15 #include <apt-pkg/acquire-item.h>
16 #include <apt-pkg/acquire-worker.h>
19 // Acquire::pkgAcquire - Constructor /*{{{*/
20 // ---------------------------------------------------------------------
22 pkgAcquire::pkgAcquire()
28 // Acquire::~pkgAcquire - Destructor /*{{{*/
29 // ---------------------------------------------------------------------
31 pkgAcquire::~pkgAcquire()
33 while (Items
.size() != 0)
37 // Acquire::Add - Add a new item /*{{{*/
38 // ---------------------------------------------------------------------
40 void pkgAcquire::Add(Item
*Itm
)
45 // Acquire::Remove - Remove a item /*{{{*/
46 // ---------------------------------------------------------------------
48 void pkgAcquire::Remove(Item
*Itm
)
50 for (vector
<Item
*>::iterator I
= Items
.begin(); I
< Items
.end(); I
++)
57 // Acquire::Enqueue - Queue an URI for fetching /*{{{*/
58 // ---------------------------------------------------------------------
60 void pkgAcquire::Enqueue(Item
*Item
,string URI
)
62 cout
<< "Fetching " << URI
<< endl
;
63 cout
<< " to " << Item
->ToFile() << endl
;