]> git.saurik.com Git - apt.git/blame - apt-pkg/edsp/edsplistparser.h
Add missing includes and external definitions
[apt.git] / apt-pkg / edsp / edsplistparser.h
CommitLineData
6d38011b
DK
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
3/* ######################################################################
4
5 EDSP Package List Parser - This implements the abstract parser
6 interface for the APT specific intermediate format which is passed
7 to external resolvers
8
9 ##################################################################### */
10 /*}}}*/
11#ifndef PKGLIB_EDSPLISTPARSER_H
12#define PKGLIB_EDSPLISTPARSER_H
13
14#include <apt-pkg/deblistparser.h>
453b82a3
DK
15#include <apt-pkg/md5.h>
16#include <apt-pkg/pkgcache.h>
d59671c9 17#include <apt-pkg/fileutl.h>
453b82a3
DK
18
19#include <string>
472ff00e 20
b9dadc24
DK
21#ifndef APT_8_CLEANER_HEADERS
22#include <apt-pkg/pkgcachegen.h>
23#include <apt-pkg/indexfile.h>
24#include <apt-pkg/tagfile.h>
25#endif
26
d59671c9 27class APT_HIDDEN edspLikeListParser : public debListParser
6d38011b
DK
28{
29 public:
3b302846 30 virtual bool NewVersion(pkgCache::VerIterator &Ver) APT_OVERRIDE;
02ceb810 31 virtual std::vector<std::string> AvailableDescriptionLanguages() APT_OVERRIDE;
3b302846
DK
32 virtual MD5SumValue Description_md5() APT_OVERRIDE;
33 virtual unsigned short VersionHash() APT_OVERRIDE;
6d38011b 34
b07aeb1a
DK
35 bool LoadReleaseInfo(pkgCache::RlsFileIterator &FileI,FileFd &File,
36 std::string const &section);
6d38011b 37
d59671c9
DK
38 edspLikeListParser(FileFd *File);
39 virtual ~edspLikeListParser();
40};
6d38011b 41
d59671c9
DK
42class APT_HIDDEN edspListParser : public edspLikeListParser
43{
44 FileFd extendedstates;
45 FileFd preferences;
46
47protected:
3b302846 48 virtual bool ParseStatus(pkgCache::PkgIterator &Pkg,pkgCache::VerIterator &Ver) APT_OVERRIDE;
6d38011b 49
d59671c9
DK
50public:
51 edspListParser(FileFd *File);
52 virtual ~edspListParser();
6d38011b 53};
f74d99c6
DK
54
55class APT_HIDDEN eippListParser : public edspLikeListParser
56{
57protected:
58 virtual bool ParseStatus(pkgCache::PkgIterator &Pkg,pkgCache::VerIterator &Ver) APT_OVERRIDE;
59
60public:
61 eippListParser(FileFd *File);
62 virtual ~eippListParser();
63};
6d38011b 64#endif