]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/sourcelist.h
make all d-pointer * const pointers
[apt.git] / apt-pkg / sourcelist.h
index 4943dd32acb93f50ca075f3de6fd184b745a22b9..e17ad6a9a67ccba035c15061e138afcfd244e0bf 100644 (file)
@@ -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<metaIndex *>::const_iterator const_iterator;
-   
+
    protected:
 
    std::vector<metaIndex *> 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