]> git.saurik.com Git - apt.git/blame - apt-pkg/edsp.h
disable automatical installation of dependencies in MarkInstall if we
[apt.git] / apt-pkg / edsp.h
CommitLineData
6d38011b
DK
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
3/* ######################################################################
4 Set of methods to help writing and reading everything needed for EDSP
5 ##################################################################### */
6 /*}}}*/
c3b85126
DK
7#ifndef PKGLIB_EDSP_H
8#define PKGLIB_EDSP_H
6d38011b
DK
9
10#include <apt-pkg/depcache.h>
11
29099cb6
DK
12#include <string>
13
c3b85126 14class EDSP /*{{{*/
6d38011b 15{
6d5bd614 16 bool static ReadLine(int const input, std::string &line);
40795fca 17 bool static StringToBool(char const *answer, bool const defValue);
6d5bd614 18
6d38011b 19public:
93794bc9 20 bool static WriteRequest(pkgDepCache &Cache, FILE* output,
40795fca
DK
21 bool const upgrade = false,
22 bool const distUpgrade = false,
23 bool const autoRemove = false);
29099cb6 24 bool static WriteScenario(pkgDepCache &Cache, FILE* output);
2029276f 25 bool static ReadResponse(int const input, pkgDepCache &Cache);
29099cb6
DK
26
27 // ReadScenario is provided by the listparser infrastructure
6d5bd614 28 bool static ReadRequest(int const input, std::list<std::string> &install,
40795fca
DK
29 std::list<std::string> &remove, bool &upgrade,
30 bool &distUpgrade, bool &autoRemove);
29099cb6
DK
31 bool static ApplyRequest(std::list<std::string> const &install,
32 std::list<std::string> const &remove,
33 pkgDepCache &Cache);
e3674d91 34 bool static WriteSolution(pkgDepCache &Cache, FILE* output);
29099cb6
DK
35 bool static WriteError(std::string const &message, FILE* output);
36
6d38011b
DK
37};
38 /*}}}*/
39#endif