]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/deblistparser.h
disable timestamps in the footer of docs by doxygen
[apt.git] / apt-pkg / deb / deblistparser.h
index 286244cc97291f54e12324fceb9b3d611ae9c53f..3b6963211649d503454bab13a1b6c6e1a5f3f2de 100644 (file)
@@ -15,6 +15,7 @@
 #include <apt-pkg/tagfile.h>
 #include <apt-pkg/md5.h>
 #include <apt-pkg/pkgcache.h>
+#include <apt-pkg/macros.h>
 
 #include <string>
 #include <vector>
@@ -102,7 +103,18 @@ class debListParser : public pkgCacheGenerator::ListParser
    virtual ~debListParser() {};
 
    private:
-   unsigned char ParseMultiArch(bool const showErrors);
+   APT_HIDDEN unsigned char ParseMultiArch(bool const showErrors);
+};
+
+class debTranslationsParser : public debListParser
+{
+ public:
+   // a translation can never be a real package
+   virtual std::string Architecture() { return ""; }
+   virtual std::string Version() { return ""; }
+
+   debTranslationsParser(FileFd *File, std::string const &Arch = "")
+      : debListParser(File, Arch) {};
 };
 
 #endif