]>
Commit | Line | Data |
---|---|---|
5f6b130d MV |
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 | ||
6 | MIRROR Aquire Method - This is the MIRROR aquire method for APT. | |
7 | ||
8 | ##################################################################### */ | |
9 | /*}}}*/ | |
10 | ||
11 | #ifndef APT_MIRROR_H | |
12 | #define APT_MIRROR_H | |
13 | ||
14 | ||
15 | #include <iostream> | |
16 | ||
17 | using std::cout; | |
18 | using std::cerr; | |
19 | using std::endl; | |
20 | ||
21 | #include "http.h" | |
22 | ||
23 | class MirrorMethod : public pkgAcqMethod | |
24 | { | |
25 | FetchResult Res; | |
26 | string Mirror; | |
27 | string BaseUri; | |
28 | string MirrorFile; | |
29 | bool HasMirrorFile; | |
30 | ||
31 | protected: | |
32 | bool GetMirrorFile(string uri); | |
33 | bool SelectMirror(); | |
34 | public: | |
35 | MirrorMethod(); | |
36 | virtual bool Fetch(FetchItem *Itm); | |
37 | }; | |
38 | ||
39 | ||
40 | #endif |