X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/8e0002ac420707b94a8a43dfedea7fc182dd5851..6c55f07a5fa3612a5d59c61a17da5fe640eadc8b:/apt-pkg/sourcelist.h diff --git a/apt-pkg/sourcelist.h b/apt-pkg/sourcelist.h index 4943dd32a..e17ad6a9a 100644 --- a/apt-pkg/sourcelist.h +++ b/apt-pkg/sourcelist.h @@ -1,6 +1,5 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: sourcelist.h,v 1.12.2.1 2003/12/24 23:09:17 mdz Exp $ /* ###################################################################### SourceList - Manage a list of sources @@ -54,13 +53,14 @@ class metaIndex; class pkgSourceList { + void * const d; public: - + // List of supported source list types class Type { public: - + // Global list of Items supported static Type **GlobalList; static unsigned long GlobalListLen; @@ -83,9 +83,9 @@ class pkgSourceList Type(); virtual ~Type() {}; }; - + typedef std::vector::const_iterator const_iterator; - + protected: std::vector SrcList; @@ -116,14 +116,9 @@ class pkgSourceList // query last-modified time time_t GetLastModifiedTime(); - // Add custom metaIndex (e.g. local files) - void Add(metaIndex *mi) { - SrcList.push_back(mi); - } - pkgSourceList(); - pkgSourceList(std::string File); - ~pkgSourceList(); + explicit pkgSourceList(std::string File); + virtual ~pkgSourceList(); }; #endif