X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/c88edf1d276eb4e01b92835163bdd8574ded93db..7d8afa391c5cd04e797a2b41fe3b946631254995:/apt-pkg/acquire-worker.h diff --git a/apt-pkg/acquire-worker.h b/apt-pkg/acquire-worker.h index eb04485b9..aa59774d2 100644 --- a/apt-pkg/acquire-worker.h +++ b/apt-pkg/acquire-worker.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: acquire-worker.h,v 1.4 1998/10/24 04:57:59 jgg Exp $ +// $Id: acquire-worker.h,v 1.9 1999/01/20 05:11:25 jgg Exp $ /* ###################################################################### Acquire Worker - Worker process manager @@ -33,9 +33,10 @@ class pkgAcquire::Worker // The access association Queue *OwnerQ; + pkgAcquireStatus *Log; MethodConfig *Config; string Access; - + // This is the subprocess IPC setup pid_t Process; int InFd; @@ -60,8 +61,10 @@ class pkgAcquire::Worker // The message handlers bool Capabilities(string Message); bool SendConfiguration(); - + bool MediaChange(string Message); + bool MethodFailure(); + void ItemDone(); public: @@ -70,12 +73,13 @@ class pkgAcquire::Worker 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(); };