- bool SetType(string S);
- bool SetURI(string S);
- string PackagesURI() const;
- string PackagesInfo() const;
- string ReleaseURI() const;
- string ReleaseInfo() 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 const &CurLine,string const &File) const;
+ virtual bool CreateItem(vector<metaIndex *> &List,string const &URI,
+ string const &Dist,string const &Section,
+ std::map<string, string> const &Options) const = 0;
+ Type();
+ virtual ~Type() {};