|
libzypp
14.29.1
|
#include <ServiceInfo.h>

Classes | |
| struct | Impl |
| struct | RepoState |
Public Member Functions | |
| ServiceInfo () | |
| Default ctor creates noService. More... | |
| ServiceInfo (const std::string &alias) | |
| Creates ServiceInfo with specified alias. More... | |
| ServiceInfo (const std::string &alias, const Url &url) | |
| ServiceInfo with alias and its URL. More... | |
| virtual | ~ServiceInfo () |
| Url | url () const |
| Gets url to service. More... | |
| void | setUrl (const Url &url) |
| Sets url for this service. More... | |
| repo::ServiceType | type () const |
| void | setType (const repo::ServiceType &type) |
| Set service type. More... | |
| void | setProbedType (const repo::ServiceType &t) const |
| virtual std::ostream & | dumpAsIniOn (std::ostream &str) const |
| Writes ServiceInfo to stream in ".service" format. More... | |
| virtual std::ostream & | dumpAsXmlOn (std::ostream &str, const std::string &content="") const |
| Write an XML representation of this ServiceInfo object. More... | |
| ZYPP_DEPRECATED std::ostream & | dumpAsXMLOn (std::ostream &str, const std::string &content="") const |
Public Member Functions inherited from zypp::repo::RepoInfoBase | |
| RepoInfoBase () | |
| RepoInfoBase (const std::string &alias) | |
| virtual | ~RepoInfoBase () |
| std::string | alias () const |
| unique identifier for this source. More... | |
| std::string | escaped_alias () const |
| Same as alias(), just escaped in a way to be a valid file name. More... | |
| std::string | name () const |
| Repository short label. More... | |
| std::string | label () const |
| Label for use in messages for the user interface. More... | |
| std::string | asUserString () const |
| User string: label (alias or name) More... | |
| bool | enabled () const |
| If enabled is false, then this repository must be ignored as if does not exists, except when checking for duplicate alias. More... | |
| bool | autorefresh () const |
| If true, the repostory must be refreshed before creating resolvables from it. More... | |
| Pathname | filepath () const |
| File where this repo was read from. More... | |
| void | setAlias (const std::string &alias) |
| set the repository alias More... | |
| void | setName (const std::string &name) |
| set the repository name More... | |
| void | setEnabled (bool enabled) |
| enable or disable the repository More... | |
| void | setAutorefresh (bool autorefresh) |
| enable or disable autorefresh More... | |
| void | setFilepath (const Pathname &filename) |
| set the path to the .repo file More... | |
| virtual std::ostream & | dumpOn (std::ostream &str) const |
| Write a human-readable representation of this RepoInfoBase object into the str stream. More... | |
| ZYPP_DEPRECATED std::ostream & | dumpAsXMLOn (std::ostream &str, const std::string &content="") const |
Static Public Attributes | |
| static const ServiceInfo | noService |
| Represents an empty service. More... | |
Private Attributes | |
| RWCOW_pointer< Impl > | _pimpl |
Related Functions | |
(Note that these are not member functions.) | |
| typedef shared_ptr< ServiceInfo > | ServiceInfo_Ptr |
| typedef shared_ptr< const ServiceInfo > | ServiceInfo_constPtr |
| typedef std::list< ServiceInfo > | ServiceInfoList |
| std::ostream & | operator<< (std::ostream &str, const ServiceInfo &obj) |
Related Functions inherited from zypp::repo::RepoInfoBase | |
| typedef shared_ptr< RepoInfoBase > | RepoInfoBase_Ptr |
| typedef shared_ptr< const RepoInfoBase > | RepoInfoBase_constPtr |
| bool | operator== (const RepoInfoBase &lhs, const RepoInfoBase &rhs) |
| bool | operator!= (const RepoInfoBase &lhs, const RepoInfoBase &rhs) |
| std::ostream & | operator<< (std::ostream &str, const RepoInfoBase &obj) |
Set of repos (repository aliases) to enable on next refresh. | |
Per default new repositories are created in disabled state. But repositories mentioned here will be created in enabled state on the next refresh. Afterwards they get removed from the list. | |
| typedef std::set< std::string > | ReposToEnable |
| Container of repos. More... | |
| bool | reposToEnableEmpty () const |
| ReposToEnable::size_type | reposToEnableSize () const |
| ReposToEnable::const_iterator | reposToEnableBegin () const |
| ReposToEnable::const_iterator | reposToEnableEnd () const |
| bool | repoToEnableFind (const std::string &alias_r) const |
Whether alias_r is mentioned in ReposToEnable. More... | |
| void | addRepoToEnable (const std::string &alias_r) |
Add alias_r to the set of ReposToEnable. More... | |
| void | delRepoToEnable (const std::string &alias_r) |
Remove alias_r from the set of ReposToEnable. More... | |
| void | clearReposToEnable () |
| Clear the set of ReposToEnable. More... | |
Set of repos (repository aliases) to disable on next refresh. | |
Repositories mentioned here will be disabled on the next refresh, in case they still exist. Afterwards they get removed from the list. | |
| typedef std::set< std::string > | ReposToDisable |
| Container of repos. More... | |
| bool | reposToDisableEmpty () const |
| ReposToDisable::size_type | reposToDisableSize () const |
| ReposToDisable::const_iterator | reposToDisableBegin () const |
| ReposToDisable::const_iterator | reposToDisableEnd () const |
| bool | repoToDisableFind (const std::string &alias_r) const |
Whether alias_r is mentioned in ReposToDisable. More... | |
| void | addRepoToDisable (const std::string &alias_r) |
Add alias_r to the set of ReposToDisable. More... | |
| void | delRepoToDisable (const std::string &alias_r) |
Remove alias_r from the set of ReposToDisable. More... | |
| void | clearReposToDisable () |
| Clear the set of ReposToDisable. More... | |
The original repo state as defined by the repoindex.xml upon last refresh. | |
This state is remembered to detect any user modifications applied to the repos. It may not be available for all repos or in plugin services. In this case all changes requested by a service refresh are applied unconditionally. | |
| typedef std::map< std::string, RepoState > | RepoStates |
| const RepoStates & | repoStates () const |
| Access the remembered repository states. More... | |
| void | setRepoStates (RepoStates newStates_r) |
| Remember a new set of repository states. More... | |
Definition at line 33 of file ServiceInfo.h.
| typedef std::set<std::string> zypp::ServiceInfo::ReposToEnable |
Container of repos.
Definition at line 99 of file ServiceInfo.h.
| typedef std::set<std::string> zypp::ServiceInfo::ReposToDisable |
Container of repos.
Definition at line 123 of file ServiceInfo.h.
| typedef std::map<std::string,RepoState> zypp::ServiceInfo::RepoStates |
Definition at line 165 of file ServiceInfo.h.
| zypp::ServiceInfo::ServiceInfo | ( | ) |
Default ctor creates noService.
Definition at line 86 of file ServiceInfo.cc.
| zypp::ServiceInfo::ServiceInfo | ( | const std::string & | alias | ) |
Creates ServiceInfo with specified alias.
| alias | unique short name of service |
Definition at line 88 of file ServiceInfo.cc.
| zypp::ServiceInfo::ServiceInfo | ( | const std::string & | alias, |
| const Url & | url | ||
| ) |
ServiceInfo with alias and its URL.
| alias | unique shortname of service |
| url | url to service |
Definition at line 92 of file ServiceInfo.cc.
|
virtual |
Definition at line 96 of file ServiceInfo.cc.
| Url zypp::ServiceInfo::url | ( | ) | const |
| void zypp::ServiceInfo::setUrl | ( | const Url & | url | ) |
Sets url for this service.
| url | url to this service |
Definition at line 100 of file ServiceInfo.cc.
| repo::ServiceType zypp::ServiceInfo::type | ( | ) | const |
Definition at line 102 of file ServiceInfo.cc.
| void zypp::ServiceInfo::setType | ( | const repo::ServiceType & | type | ) |
| void zypp::ServiceInfo::setProbedType | ( | const repo::ServiceType & | t | ) | const |
Definition at line 107 of file ServiceInfo.cc.
| bool zypp::ServiceInfo::reposToEnableEmpty | ( | ) | const |
Definition at line 110 of file ServiceInfo.cc.
| ServiceInfo::ReposToEnable::size_type zypp::ServiceInfo::reposToEnableSize | ( | ) | const |
Definition at line 113 of file ServiceInfo.cc.
| ServiceInfo::ReposToEnable::const_iterator zypp::ServiceInfo::reposToEnableBegin | ( | ) | const |
Definition at line 116 of file ServiceInfo.cc.
| ServiceInfo::ReposToEnable::const_iterator zypp::ServiceInfo::reposToEnableEnd | ( | ) | const |
Definition at line 119 of file ServiceInfo.cc.
| bool zypp::ServiceInfo::repoToEnableFind | ( | const std::string & | alias_r | ) | const |
Whether alias_r is mentioned in ReposToEnable.
Definition at line 122 of file ServiceInfo.cc.
| void zypp::ServiceInfo::addRepoToEnable | ( | const std::string & | alias_r | ) |
Add alias_r to the set of ReposToEnable.
Definition at line 125 of file ServiceInfo.cc.
| void zypp::ServiceInfo::delRepoToEnable | ( | const std::string & | alias_r | ) |
Remove alias_r from the set of ReposToEnable.
Definition at line 131 of file ServiceInfo.cc.
| void zypp::ServiceInfo::clearReposToEnable | ( | ) |
Clear the set of ReposToEnable.
Definition at line 134 of file ServiceInfo.cc.
| bool zypp::ServiceInfo::reposToDisableEmpty | ( | ) | const |
Definition at line 138 of file ServiceInfo.cc.
| ServiceInfo::ReposToDisable::size_type zypp::ServiceInfo::reposToDisableSize | ( | ) | const |
Definition at line 141 of file ServiceInfo.cc.
| ServiceInfo::ReposToDisable::const_iterator zypp::ServiceInfo::reposToDisableBegin | ( | ) | const |
Definition at line 144 of file ServiceInfo.cc.
| ServiceInfo::ReposToDisable::const_iterator zypp::ServiceInfo::reposToDisableEnd | ( | ) | const |
Definition at line 147 of file ServiceInfo.cc.
| bool zypp::ServiceInfo::repoToDisableFind | ( | const std::string & | alias_r | ) | const |
Whether alias_r is mentioned in ReposToDisable.
Definition at line 150 of file ServiceInfo.cc.
| void zypp::ServiceInfo::addRepoToDisable | ( | const std::string & | alias_r | ) |
Add alias_r to the set of ReposToDisable.
Definition at line 153 of file ServiceInfo.cc.
| void zypp::ServiceInfo::delRepoToDisable | ( | const std::string & | alias_r | ) |
Remove alias_r from the set of ReposToDisable.
Definition at line 159 of file ServiceInfo.cc.
| void zypp::ServiceInfo::clearReposToDisable | ( | ) |
Clear the set of ReposToDisable.
Definition at line 162 of file ServiceInfo.cc.
| const ServiceInfo::RepoStates & zypp::ServiceInfo::repoStates | ( | ) | const |
Access the remembered repository states.
Definition at line 165 of file ServiceInfo.cc.
| void zypp::ServiceInfo::setRepoStates | ( | RepoStates | newStates_r | ) |
Remember a new set of repository states.
Definition at line 168 of file ServiceInfo.cc.
|
virtual |
Writes ServiceInfo to stream in ".service" format.
| str | stream where serialized version service is written |
Reimplemented from zypp::repo::RepoInfoBase.
Definition at line 179 of file ServiceInfo.cc.
|
virtual |
Write an XML representation of this ServiceInfo object.
| str | |
| content | if not empty, produces <service ...>content</service> otherwise <service .../> |
Reimplemented from zypp::repo::RepoInfoBase.
Definition at line 210 of file ServiceInfo.cc.
|
inline |
Definition at line 192 of file ServiceInfo.h.
|
related |
Definition at line 202 of file ServiceInfo.h.
|
related |
Definition at line 204 of file ServiceInfo.h.
|
related |
Definition at line 206 of file ServiceInfo.h.
|
related |
Stream output
Definition at line 230 of file ServiceInfo.cc.
|
static |
Represents an empty service.
Definition at line 58 of file ServiceInfo.h.
|
private |
Definition at line 194 of file ServiceInfo.h.