X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/02ceb810fe0de9b267a8b6a302505967afce6b5a..5404685b66b92f93da7ded5f8fe44fbabea38ba4:/apt-pkg/edsp/edsplistparser.h diff --git a/apt-pkg/edsp/edsplistparser.h b/apt-pkg/edsp/edsplistparser.h index 691ac83ed..84138d6a8 100644 --- a/apt-pkg/edsp/edsplistparser.h +++ b/apt-pkg/edsp/edsplistparser.h @@ -14,6 +14,7 @@ #include #include #include +#include #include @@ -23,12 +24,8 @@ #include #endif -class FileFd; -class edspListParserPrivate; - -class APT_HIDDEN edspListParser : public debListParser +class APT_HIDDEN edspLikeListParser : public debListParser { - edspListParserPrivate * const d; public: virtual bool NewVersion(pkgCache::VerIterator &Ver) APT_OVERRIDE; virtual std::vector AvailableDescriptionLanguages() APT_OVERRIDE; @@ -38,12 +35,30 @@ class APT_HIDDEN edspListParser : public debListParser bool LoadReleaseInfo(pkgCache::RlsFileIterator &FileI,FileFd &File, std::string const §ion); + edspLikeListParser(FileFd *File); + virtual ~edspLikeListParser(); +}; + +class APT_HIDDEN edspListParser : public edspLikeListParser +{ + FileFd extendedstates; + FileFd preferences; + +protected: + virtual bool ParseStatus(pkgCache::PkgIterator &Pkg,pkgCache::VerIterator &Ver) APT_OVERRIDE; + +public: edspListParser(FileFd *File); virtual ~edspListParser(); +}; - protected: +class APT_HIDDEN eippListParser : public edspLikeListParser +{ +protected: virtual bool ParseStatus(pkgCache::PkgIterator &Pkg,pkgCache::VerIterator &Ver) APT_OVERRIDE; +public: + eippListParser(FileFd *File); + virtual ~eippListParser(); }; - #endif