mirror.h 836 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // -*- mode: cpp; mode: fold -*-
  2. // Description /*{{{*/// $Id: http.h,v 1.12 2002/04/18 05:09:38 jgg Exp $
  3. // $Id: http.h,v 1.12 2002/04/18 05:09:38 jgg Exp $
  4. /* ######################################################################
  5. MIRROR Aquire Method - This is the MIRROR aquire method for APT.
  6. ##################################################################### */
  7. /*}}}*/
  8. #ifndef APT_MIRROR_H
  9. #define APT_MIRROR_H
  10. #include <iostream>
  11. using std::cout;
  12. using std::cerr;
  13. using std::endl;
  14. #include "http.h"
  15. class MirrorMethod : public pkgAcqMethod
  16. {
  17. FetchResult Res;
  18. string Mirror;
  19. string BaseUri;
  20. string MirrorFile;
  21. bool HasMirrorFile;
  22. protected:
  23. bool GetMirrorFile(string uri);
  24. bool SelectMirror();
  25. public:
  26. MirrorMethod();
  27. virtual bool Fetch(FetchItem *Itm);
  28. };
  29. #endif