]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-worker.h
Minor Acquire cleanup
[apt.git] / apt-pkg / acquire-worker.h
index d128ec8b27b4ab6246e6569bc9a7c321bf177d7c..95ba340ac76a881db07591032ac8a8d4f4f6194c 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: acquire-worker.h,v 1.3 1998/10/22 04:56:42 jgg Exp $
+// $Id: acquire-worker.h,v 1.7 1998/11/09 01:09:24 jgg Exp $
 /* ######################################################################
 
    Acquire Worker - Worker process manager
@@ -33,6 +33,7 @@ class pkgAcquire::Worker
    
    // The access association
    Queue *OwnerQ;
+   pkgAcquireStatus *Log;
    MethodConfig *Config;
    string Access;
       
@@ -62,18 +63,22 @@ class pkgAcquire::Worker
    bool SendConfiguration();
 
    bool MethodFailure();
+   void ItemDone();
    
    public:
    
+   // The curent method state
    pkgAcquire::Queue::QItem *CurrentItem;
-   
    string Status;
-   
+   unsigned long CurrentSize;
+   unsigned long TotalSize;
+      
    // Load the method and do the startup 
    bool QueueItem(pkgAcquire::Queue::QItem *Item);
-   bool Start();   
+   bool Start();
+   void Pulse();
    
-   Worker(Queue *OwnerQ,MethodConfig *Config);
+   Worker(Queue *OwnerQ,MethodConfig *Config,pkgAcquireStatus *Log);
    Worker(MethodConfig *Config);
    ~Worker();
 };