acquire-worker.h 795 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // -*- mode: cpp; mode: fold -*-
  2. // Description /*{{{*/
  3. // $Id: acquire-worker.h,v 1.1 1998/10/15 06:59:59 jgg Exp $
  4. /* ######################################################################
  5. Acquire Worker - Worker process manager
  6. ##################################################################### */
  7. /*}}}*/
  8. #ifndef PKGLIB_ACQUIRE_WORKER_H
  9. #define PKGLIB_ACQUIRE_WORKER_H
  10. #include <apt-pkg/acquire.h>
  11. #ifdef __GNUG__
  12. #pragma interface "apt-pkg/acquire-worker.h"
  13. #endif
  14. // Interfacing to the method process
  15. class pkgAcquire::Worker
  16. {
  17. protected:
  18. Queue *OwnerQ;
  19. MethodConfig *Config;
  20. Worker *Next;
  21. friend Queue;
  22. public:
  23. bool Create();
  24. Worker(Queue *OwnerQ);
  25. Worker(MethodConfig *Config);
  26. ~Worker();
  27. };
  28. #endif