- bool SetType(string S);
- bool SetURI(string S);
- string PackagesURI() const;
- string PackagesInfo() const;
- string SiteOnly(string URI) const;
- string ArchiveInfo(pkgCache::VerIterator Ver) const;
- string ArchiveURI(string File) const;
+ // Global list of Items supported
+ static Type **GlobalList;
+ static unsigned long GlobalListLen;
+ static Type *GetType(const char *Type);
+
+ const char *Name;
+ const char *Label;
+
+ bool FixupURI(string &URI) const;
+ virtual bool ParseLine(vector<metaIndex *> &List,
+ const char *Buffer,
+ unsigned long CurLine,string File) const;
+ virtual bool CreateItem(vector<metaIndex *> &List,string URI,
+ string Dist,string Section) const = 0;
+ Type();
+ virtual ~Type() {};