]>
git.saurik.com Git - apt-legacy.git/blob - apt-pkg/deb/debmetaindex.h
2 #ifndef PKGLIB_DEBMETAINDEX_H
3 #define PKGLIB_DEBMETAINDEX_H
6 #pragma interface "apt-pkg/debmetaindex.h"
9 #include <apt-pkg/metaindex.h>
10 #include <apt-pkg/sourcelist.h>
12 class debReleaseIndex
: public metaIndex
{
18 debSectionEntry (string Section
, bool IsSrc
);
24 vector
<const debSectionEntry
*> SectionEntries
;
28 debReleaseIndex(string URI
, string Dist
);
30 virtual string
ArchiveURI(string File
) const {return URI
+ File
;};
31 virtual bool GetIndexes(pkgAcquire
*Owner
, bool GetAll
=false) const;
32 vector
<struct IndexTarget
*>* ComputeIndexTargets() const;
33 string
Info(const char *Type
, const string Section
) const;
34 string
MetaIndexInfo(const char *Type
) const;
35 string
MetaIndexFile(const char *Types
) const;
36 string
MetaIndexURI(const char *Type
) const;
37 string
IndexURI(const char *Type
, const string Section
) const;
38 string
IndexURISuffix(const char *Type
, const string Section
) const;
39 string
SourceIndexURI(const char *Type
, const string Section
) const;
40 string
SourceIndexURISuffix(const char *Type
, const string Section
) const;
41 virtual vector
<pkgIndexFile
*> *GetIndexFiles();
43 virtual bool IsTrusted() const;
45 void PushSectionEntry(const debSectionEntry
*Entry
);