// -*- 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
class pkgIndexFile;
class metaIndex;
-class pkgSource
-{
- protected:
-
- std::vector<metaIndex *> SrcList;
-
-};
-
-class pkgSourceList : public pkgSource
+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;
Type();
virtual ~Type() {};
};
-
+
typedef std::vector<metaIndex *>::const_iterator const_iterator;
-
- public:
+
+ protected:
+
+ std::vector<metaIndex *> SrcList;
int ParseFileDeb822(std::string File);
bool ParseFileOldStyle(std::string File);
+ public:
+
bool ReadMainList();
bool Read(std::string File);
time_t GetLastModifiedTime();
pkgSourceList();
- pkgSourceList(std::string File);
- ~pkgSourceList();
+ explicit pkgSourceList(std::string File);
+ virtual ~pkgSourceList();
};
#endif