12 #ifndef ZYPP_SERVICE_H 13 #define ZYPP_SERVICE_H 72 void setUrl(
const Url& url );
104 void setLrf(
Date lrf_r );
116 bool reposToEnableEmpty()
const;
118 ReposToEnable::const_iterator reposToEnableBegin()
const;
119 ReposToEnable::const_iterator reposToEnableEnd()
const;
121 {
return makeIterable( reposToEnableBegin(), reposToEnableEnd() ); }
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();
142 bool reposToDisableEmpty()
const;
144 ReposToDisable::const_iterator reposToDisableBegin()
const;
145 ReposToDisable::const_iterator reposToDisableEnd()
const;
147 {
return makeIterable( reposToDisableBegin(), reposToDisableEnd() ); }
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();
174 : enabled( false ), autorefresh( true ), priority(
RepoInfo::defaultPriority() )
177 : enabled( repo_r.enabled() ), autorefresh( repo_r.autorefresh() ), priority( repo_r.priority() )
200 std::ostream & dumpAsIniOn( std::ostream &
str )
const override;
209 std::ostream &
dumpAsXmlOn( std::ostream &
str,
const std::string & content =
"" )
const override;
232 #endif // ZYPP_SAT_REPOSITORY_H
bool operator==(const RepoState &rhs) const
Iterable< ReposToDisable::const_iterator > reposToDisable() const
shared_ptr< ServiceInfo > ServiceInfo_Ptr
std::list< ServiceInfo > ServiceInfoList
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
What is known about a repository.
bool operator==(const SetRelation::Enum &lhs, const SetCompare &rhs)
RWCOW_pointer< Impl > _pimpl
Store and operate on date (time_t).
std::ostream & dumpAsXmlOn(std::ostream &str, const Repository &obj)
std::set< std::string > ReposToEnable
Container of repos.
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Service type enumeration.
Iterable< ReposToEnable::const_iterator > reposToEnable() const
shared_ptr< const ServiceInfo > ServiceInfo_constPtr
std::set< std::string > ReposToDisable
Container of repos.
zypp::ServiceInfo ServiceInfo
RepoState(const RepoInfo &repo_r)
std::map< std::string, RepoState > RepoStates
Base class implementing common features of RepoInfo and ServiceInfo.
Easy-to use interface to the ZYPP dependency resolver.
bool operator!=(const RepoState &rhs) const
static const ServiceInfo noService ZYPP_API
Represents an empty service.