diff options
author | Julian Andres Klode <jak@debian.org> | 2020-02-26 14:51:05 +0000 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2020-02-26 14:51:05 +0000 |
commit | a096b580694cb36f29cdbce8f1db797a08e36709 (patch) | |
tree | 8a1bf6106868761042c80e04fdeff1077779ac18 /apt-pkg/metaindex.h | |
parent | b31040e9c1441a2a7296ce3ff12f5052fc522366 (diff) | |
parent | da01dabb86396a1391f081fa54a806e2d7b62133 (diff) |
Merge branch 'pu/cleanups' into 'master'
Cleanup ABI - make stuff virtual, etc
See merge request apt-team/apt!106
Diffstat (limited to 'apt-pkg/metaindex.h')
-rw-r--r-- | apt-pkg/metaindex.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/apt-pkg/metaindex.h b/apt-pkg/metaindex.h index a44e5c21e..1c1cada0c 100644 --- a/apt-pkg/metaindex.h +++ b/apt-pkg/metaindex.h @@ -44,6 +44,11 @@ protected: // parsed from a file std::string Suite; std::string Codename; + std::string Origin; + std::string Label; + std::string Version; + signed short DefaultPin; + std::string ReleaseNotes; time_t Date; time_t ValidUntil; bool SupportsAcquireByHash; @@ -68,7 +73,7 @@ public: bool GetSupportsAcquireByHash() const; time_t GetValidUntil() const; time_t GetDate() const; - APT_HIDDEN time_t GetNotBefore() const; // FIXME make virtual + virtual time_t GetNotBefore() const = 0; std::string GetExpectedDist() const; bool CheckDist(std::string const &MaybeDist) const; @@ -102,16 +107,9 @@ public: char const * const Type); virtual ~metaIndex(); - // FIXME: make virtual on next abi break - bool IsArchitectureSupported(std::string const &arch) const; - bool IsArchitectureAllSupportedFor(IndexTarget const &target) const; - bool HasSupportForComponent(std::string const &component) const; - // FIXME: should be members of the class on abi break - APT_HIDDEN void SetOrigin(std::string const &origin); - APT_HIDDEN void SetLabel(std::string const &label); - APT_HIDDEN void SetVersion(std::string const &version); - APT_HIDDEN void SetDefaultPin(signed short const defaultpin); - APT_HIDDEN void SetReleaseNotes(std::string const ¬es); + virtual bool IsArchitectureSupported(std::string const &arch) const; + virtual bool IsArchitectureAllSupportedFor(IndexTarget const &target) const; + virtual bool HasSupportForComponent(std::string const &component) const; }; #endif |