]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/indexfile.h
detect and error out on conflicting Trusted settings
[apt.git] / apt-pkg / indexfile.h
index 042e5c2f715882f61f6a7168048025b9dca22a85..7eeccdbd357cdc5eb0232295f8a17959ee45e875 100644 (file)
@@ -1,6 +1,5 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: indexfile.h,v 1.6.2.1 2003/12/24 23:09:17 mdz Exp $
 /* ######################################################################
 
    Index File - Abstraction for an index of archive/source file.
@@ -90,6 +89,7 @@ class IndexTarget                                                     /*{{{*/
 
 class pkgIndexFile
 {
+   void * const d;
    protected:
    bool Trusted;
 
@@ -144,12 +144,13 @@ class pkgIndexFile
 
    bool IsTrusted() const { return Trusted; };
 
-   pkgIndexFile(bool Trusted);
-   virtual ~pkgIndexFile() {};
+   explicit pkgIndexFile(bool Trusted);
+   virtual ~pkgIndexFile();
 };
 
 class pkgIndexTargetFile : public pkgIndexFile
 {
+   void * const d;
 protected:
    IndexTarget const Target;
 
@@ -162,6 +163,7 @@ public:
    virtual unsigned long Size() const;
 
    pkgIndexTargetFile(IndexTarget const &Target, bool const Trusted);
+   virtual ~pkgIndexTargetFile();
 };
 
 #endif