// -*- 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 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;
-
+
protected:
std::vector<metaIndex *> SrcList;
// 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