]>
git.saurik.com Git - apt.git/blob - apt-pkg/acquire-method.h
74489913fa775325a931d2936ddc1393e0e0b513
1 // -*- mode: cpp; mode: fold -*-
3 // $Id: acquire-method.h,v 1.1 1998/10/30 07:53:35 jgg Exp $
4 /* ######################################################################
6 Acquire Method - Method helper class + functions
8 These functions are designed to be used within the method task to
9 ease communication with APT.
11 ##################################################################### */
13 #ifndef PKGLIB_ACQUIRE_METHOD_H
14 #define PKGLIB_ACQUIRE_METHOD_H
16 #include <apt-pkg/configuration.h>
20 #pragma interface "apt-pkg/acquire-method.h"
31 vector
<string
> Messages
;
43 // Handlers for messages
44 virtual bool Configuration(string Message
);
45 virtual bool Fetch(string Message
,URI Get
) {return true;};
49 void Fail(string Why
);
50 // void Log(const char *Format,...);
51 void URIStart(FetchResult
&Res
,unsigned long Resume
= 0);
52 void URIDone(FetchResult
&Res
,FetchResult
*Alt
= 0);
56 enum CnfFlags
{SingleInstance
= (1<<0), PreScan
= (1<<1),
57 Pipeline
= (1<<2), SendConfig
= (1<<3)};
61 pkgAcqMethod(const char *Ver
,unsigned long Flags
= 0);
62 virtual ~pkgAcqMethod() {};