// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: acquire-worker.h,v 1.5 1998/10/26 07:11:46 jgg Exp $
+// $Id: acquire-worker.h,v 1.9 1999/01/20 05:11:25 jgg Exp $
/* ######################################################################
Acquire Worker - Worker process manager
#define PKGLIB_ACQUIRE_WORKER_H
#include <apt-pkg/acquire.h>
-#include <apt-pkg/configuration.h>
#ifdef __GNUG__
#pragma interface "apt-pkg/acquire-worker.h"
// The access association
Queue *OwnerQ;
+ pkgAcquireStatus *Log;
MethodConfig *Config;
string Access;
-
+
// This is the subprocess IPC setup
pid_t Process;
int InFd;
// The message handlers
bool Capabilities(string Message);
bool SendConfiguration();
-
+ bool MediaChange(string Message);
+
bool MethodFailure();
+ void ItemDone();
public:
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();
};
-bool pkgInjectConfiguration(string &Message,Configuration &Cnf);
-
#endif