124 bool repoToEnableFind(
const std::string & alias_r )
const;
127 void addRepoToEnable(
const std::string & alias_r );
129 void delRepoToEnable(
const std::string & alias_r );
131 void clearReposToEnable();
150 bool repoToDisableFind(
const std::string & alias_r )
const;
153 void addRepoToDisable(
const std::string & alias_r );
155 void delRepoToDisable(
const std::string & alias_r );
157 void clearReposToDisable();
209 std::ostream &
dumpAsXmlOn( std::ostream &
str,
const std::string & content =
"" )
const override;
std::ostream & operator<<(std::ostream &str, const zypp::sat::detail::CDataiterator *obj)
Store and operate on date (time_t).
Iterable< TIterator > makeIterable(TIterator &&begin_r, TIterator &&end_r)
convenient construction.
What is known about a repository.
void setProbedTtl(Date::Duration ttl_r) const
Lazy init sugested TTL.
ReposToEnable::size_type reposToEnableSize() const
repo::ServiceType type() const
Service type.
ReposToEnable::const_iterator reposToEnableBegin() const
Date::Duration ttl() const
Sugested TTL between two metadata auto-refreshs.
void setLrf(Date lrf_r)
Set date of last refresh.
void setType(const repo::ServiceType &type)
Set service type.
Iterable< ReposToEnable::const_iterator > reposToEnable() const
Date lrf() const
Date of last refresh (if known).
const RepoStates & repoStates() const
Access the remembered repository states.
ReposToDisable::const_iterator reposToDisableEnd() const
ServiceInfo()
Default ctor creates noService.
std::list< ServiceInfo > ServiceInfoList
ReposToEnable::const_iterator reposToEnableEnd() const
std::set< std::string > ReposToDisable
Container of repos.
Iterable< ReposToDisable::const_iterator > reposToDisable() const
std::map< std::string, RepoState > RepoStates
bool reposToEnableEmpty() const
Url url() const
The service url.
RWCOW_pointer< Impl > _pimpl
std::ostream & dumpAsIniOn(std::ostream &str) const override
Writes ServiceInfo to stream in ".service" format.
void setProbedType(const repo::ServiceType &t) const
Lazy init service type.
void setTtl(Date::Duration ttl_r)
Set sugested TTL.
Url rawUrl() const
The service raw url (no variables replaced)
shared_ptr< ServiceInfo > ServiceInfo_Ptr
std::set< std::string > ReposToEnable
Container of repos.
static const ServiceInfo noService ZYPP_API
Represents an empty service.
shared_ptr< const ServiceInfo > ServiceInfo_constPtr
void setUrl(const Url &url)
Set the service url (raw value)
ReposToDisable::const_iterator reposToDisableBegin() const
ReposToDisable::size_type reposToDisableSize() const
void setRepoStates(RepoStates newStates_r)
Remember a new set of repository states.
bool reposToDisableEmpty() const
Base class implementing common features of RepoInfo and ServiceInfo.
std::string alias() const
unique identifier for this source.
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
std::ostream & dumpAsXmlOn(std::ostream &str, const Repository &obj)
RW_pointer supporting 'copy on write' functionality.
bool operator==(const RepoState &rhs) const
RepoState(const RepoInfo &repo_r)
bool operator!=(const RepoState &rhs) const
Service type enumeration.