]>
git.saurik.com Git - apt.git/blob - methods/mirror.h
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 /* ######################################################################
6 MIRROR Aquire Method - This is the MIRROR aquire method for APT.
8 ##################################################################### */
23 class MirrorMethod
: public HttpMethod
26 string BaseUri
; // the original mirror://... url
27 string Mirror
; // the selected mirror uri (http://...)
34 bool GetMirrorFile(string uri
);
36 virtual void Fail(string Why
, bool Transient
= false);
37 virtual void URIStart(FetchResult
&Res
);
38 virtual void URIDone(FetchResult
&Res
,FetchResult
*Alt
= 0);
39 virtual bool Configuration(string Message
);
43 virtual bool Fetch(FetchItem
*Itm
);