]> git.saurik.com Git - apt.git/blame - apt-pkg/edsp/edsplistparser.h
merge patch from Daniel Hartwig to Show a error message if {,dist-}upgrade is used...
[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>
472ff00e 15
b9dadc24
DK
16#ifndef APT_8_CLEANER_HEADERS
17#include <apt-pkg/pkgcachegen.h>
18#include <apt-pkg/indexfile.h>
19#include <apt-pkg/tagfile.h>
20#endif
21
472ff00e 22class FileFd;
6d38011b
DK
23
24class edspListParser : public debListParser
25{
26 public:
27 virtual bool NewVersion(pkgCache::VerIterator &Ver);
8f3ba4e8
DK
28 virtual std::string Description();
29 virtual std::string DescriptionLanguage();
6d38011b
DK
30 virtual MD5SumValue Description_md5();
31 virtual unsigned short VersionHash();
32
33 bool LoadReleaseInfo(pkgCache::PkgFileIterator &FileI,FileFd &File,
8f3ba4e8 34 std::string section);
6d38011b 35
8f3ba4e8 36 edspListParser(FileFd *File, std::string const &Arch = "");
6d38011b
DK
37
38 protected:
39 virtual bool ParseStatus(pkgCache::PkgIterator &Pkg,pkgCache::VerIterator &Ver);
40
41};
42
43#endif