X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=zypp%2Fparser%2FRepoindexFileReader.h;h=500b29f656e51eedec59d6528e388673f2b1da5f;hb=42b5d038414cf4a4a050e816b471f890b24e8032;hp=c720f584812af9b1eafe8c6d9ec1da8d970c6e1b;hpb=b61a0ff7e76a542a874714e4ee7753db48f9f8aa;p=platform%2Fupstream%2Flibzypp.git diff --git a/zypp/parser/RepoindexFileReader.h b/zypp/parser/RepoindexFileReader.h index c720f58..500b29f 100644 --- a/zypp/parser/RepoindexFileReader.h +++ b/zypp/parser/RepoindexFileReader.h @@ -17,6 +17,7 @@ #include "zypp/base/Function.h" #include "zypp/base/InputStream.h" #include "zypp/Pathname.h" +#include "zypp/Date.h" namespace zypp { @@ -48,9 +49,7 @@ namespace zypp * First parameter is a \ref RepoInfo object with the resource * FIXME return value is ignored */ - typedef function< bool( - const RepoInfo & )> - ProcessResource; + typedef function< bool( const RepoInfo & )> ProcessResource; /** * CTOR. Creates also \ref xml::Reader and starts reading. @@ -79,6 +78,9 @@ namespace zypp */ ~RepoindexFileReader(); + /** Metadata TTL (repoindex.xml:xpath:/repoindex@ttl or 0). */ + Date::Duration ttl() const; + private: class Impl; RW_pointer > _pimpl;