|
libzypp 17.37.6
|
#include <zypp-media/ng/private/attachedmediainfo_p.h>
Public Member Functions | |
| AttachedMediaInfo (const std::string &id, ProvideQueue::Config::WorkerType workerType, const zypp::MirroredOrigin &originConfig, ProvideMediaSpec &spec) | |
| AttachedMediaInfo (const std::string &id, ProvideQueueWeakRef backingQueue, ProvideQueue::Config::WorkerType workerType, const zypp::MirroredOrigin &originConfig, const ProvideMediaSpec &mediaSpec, const std::optional< zypp::Pathname > &mnt={}) | |
| void | setName (std::string &&name) |
| const std::string & | name () const |
| zypp::Url | attachedUrl () const |
| bool | isSameMedium (const zypp::MirroredOrigin &origin, const ProvideMediaSpec &spec) |
| Public Member Functions inherited from zypp::base::ReferenceCounted | |
| ReferenceCounted () | |
| Default ctor. | |
| ReferenceCounted (const ReferenceCounted &rhs) | |
| Copy ctor. | |
| virtual | ~ReferenceCounted () |
| Dtor. | |
| ReferenceCounted & | operator= (const ReferenceCounted &) |
| Assignment. | |
| unsigned | refCount () const |
| Return reference counter value. | |
| void | ref () const |
| Add a reference. | |
| void | unref () const |
| Release a reference. | |
Static Public Member Functions | |
| static bool | isSameMedium (const zypp::MirroredOrigin &originA, const ProvideMediaSpec &specA, const zypp::MirroredOrigin &originB, const ProvideMediaSpec &specB) |
| Static Public Member Functions inherited from zypp::base::ReferenceCounted | |
| static void | add_ref (const ReferenceCounted *ptr_r) |
| Called by zypp::intrusive_ptr to add a reference. | |
| static void | release (const ReferenceCounted *ptr_r) |
| Called by zypp::intrusive_ptr to add a reference. | |
Public Attributes | |
| std::string | _name |
| ProvideQueueWeakRef | _backingQueue |
| ProvideQueue::Config::WorkerType | _workerType |
| zypp::MirroredOrigin | _originConfig |
| ProvideMediaSpec | _spec |
| std::optional< zypp::Pathname > | _localMountPoint |
| std::optional< std::chrono::steady_clock::time_point > | _idleSince |
| Set if the medium is idle. | |
Protected Member Functions | |
| void | unref_to (unsigned int refCnt) const override |
| void | ref_to (unsigned refCnt) const override |
| Trigger derived classes after refCount was increased. | |
| Protected Member Functions inherited from zypp::base::ReferenceCounted | |
| virtual std::ostream & | dumpOn (std::ostream &str) const |
| Overload to realize std::ostream & operator<<. | |
| virtual void | unref_to (unsigned) const |
| Trigger derived classes after refCount was decreased. | |
Additional Inherited Members | |
| Related Symbols inherited from zypp::base::ReferenceCounted | |
| void | intrusive_ptr_add_ref (const ReferenceCounted *ptr_r) |
| intrusive_ptr hook to add_ref. | |
| void | intrusive_ptr_release (const ReferenceCounted *ptr_r) |
| intrusive_ptr hook to release. | |
| std::ostream & | operator<< (std::ostream &str, const ReferenceCounted &obj) |
| Stream output. | |
Definition at line 31 of file attachedmediainfo_p.h.
| zyppng::AttachedMediaInfo::AttachedMediaInfo | ( | const std::string & | id, |
| ProvideQueue::Config::WorkerType | workerType, | ||
| const zypp::MirroredOrigin & | originConfig, | ||
| ProvideMediaSpec & | spec ) |
Definition at line 17 of file attachedmediainfo.cc.
| zyppng::AttachedMediaInfo::AttachedMediaInfo | ( | const std::string & | id, |
| ProvideQueueWeakRef | backingQueue, | ||
| ProvideQueue::Config::WorkerType | workerType, | ||
| const zypp::MirroredOrigin & | originConfig, | ||
| const ProvideMediaSpec & | mediaSpec, | ||
| const std::optional< zypp::Pathname > & | mnt = {} ) |
Definition at line 21 of file attachedmediainfo.cc.
|
overrideprotected |
Definition at line 51 of file attachedmediainfo.cc.
|
overrideprotectedvirtual |
Trigger derived classes after refCount was increased.
Reimplemented from zypp::base::ReferenceCounted.
Definition at line 57 of file attachedmediainfo.cc.
| void zyppng::AttachedMediaInfo::setName | ( | std::string && | name | ) |
Definition at line 33 of file attachedmediainfo.cc.
| const std::string & zyppng::AttachedMediaInfo::name | ( | ) | const |
Definition at line 38 of file attachedmediainfo.cc.
| zypp::Url zyppng::AttachedMediaInfo::attachedUrl | ( | ) | const |
Definition at line 43 of file attachedmediainfo.cc.
| bool zyppng::AttachedMediaInfo::isSameMedium | ( | const zypp::MirroredOrigin & | origin, |
| const ProvideMediaSpec & | spec ) |
Returns true if other requests the same medium as this instance
Definition at line 61 of file attachedmediainfo.cc.
|
static |
Definition at line 65 of file attachedmediainfo.cc.
| std::string zyppng::AttachedMediaInfo::_name |
Definition at line 53 of file attachedmediainfo_p.h.
| ProvideQueueWeakRef zyppng::AttachedMediaInfo::_backingQueue |
Definition at line 54 of file attachedmediainfo_p.h.
| ProvideQueue::Config::WorkerType zyppng::AttachedMediaInfo::_workerType |
Definition at line 55 of file attachedmediainfo_p.h.
| zypp::MirroredOrigin zyppng::AttachedMediaInfo::_originConfig |
Definition at line 56 of file attachedmediainfo_p.h.
| ProvideMediaSpec zyppng::AttachedMediaInfo::_spec |
Definition at line 57 of file attachedmediainfo_p.h.
| std::optional<zypp::Pathname> zyppng::AttachedMediaInfo::_localMountPoint |
Definition at line 58 of file attachedmediainfo_p.h.
|
mutable |
Set if the medium is idle.
Definition at line 59 of file attachedmediainfo_p.h.