summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-worker.h
blob: f01c935ae3221bb6e0111bd7ff6c70f735797479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// -*- mode: cpp; mode: fold -*-
// Description								/*{{{*/
// $Id: acquire-worker.h,v 1.1 1998/10/15 06:59:59 jgg Exp $
/* ######################################################################

   Acquire Worker - Worker process manager
   
   ##################################################################### */
									/*}}}*/
#ifndef PKGLIB_ACQUIRE_WORKER_H
#define PKGLIB_ACQUIRE_WORKER_H

#include <apt-pkg/acquire.h>

#ifdef __GNUG__
#pragma interface "apt-pkg/acquire-worker.h"
#endif 

// Interfacing to the method process
class pkgAcquire::Worker
{
   protected:
   
   Queue *OwnerQ;
   MethodConfig *Config;   
   Worker *Next;
   
   friend Queue;
   
   public:
   
   bool Create();
   
   Worker(Queue *OwnerQ);
   Worker(MethodConfig *Config);
   ~Worker();
};

#endif