#include <QueueItemUninstall.h>
Public Types | |
| enum | UninstallReason { CONFLICT, OBSOLETE, UNSATISFIED, BACKOUT, UPGRADE, DUPLICATE, EXPLICIT } |
Public Member Functions | |
| QueueItemUninstall (const ResPool &pool, PoolItem_Ref item, UninstallReason reason, bool soft=false) | |
| virtual | ~QueueItemUninstall () |
| virtual std::ostream & | dumpOn (std::ostream &str) const |
| Overload to realize std::ostream & operator<<. | |
| UninstallReason | reason (void) const |
| void | setCapability (const Capability &cap) |
| void | setExplicitlyRequested (void) |
| void | setRemoveOnly (void) |
| void | setUpgradedTo (PoolItem_Ref item) |
| void | setDueToConflict (void) |
| void | setDueToObsolete (const PoolItem_Ref item) |
| void | setUnlink (void) |
| PoolItem_Ref | deletedItem (void) const |
| virtual bool | process (const QueueItemList &mainQueue, ResolverContext_Ptr context, QueueItemList &qil) |
| virtual QueueItem_Ptr | copy (void) const |
| virtual int | cmp (QueueItem_constPtr item) const |
| virtual bool | isRedundant (ResolverContext_Ptr context) const |
| virtual bool | isSatisfied (ResolverContext_Ptr context) const |
Private Attributes | |
| PoolItem_Ref | _item |
| UninstallReason | _reason |
| bool | _soft |
| Capability | _cap_leading_to_uninstall |
| PoolItem_Ref | _upgraded_to |
| bool | _explicitly_requested |
| bool | _remove_only |
| bool | _due_to_conflict |
| bool | _due_to_obsolete |
| bool | _unlink |
| PoolItem_Ref | _obsoletes_item |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const QueueItemUninstall &obj) |
Definition at line 46 of file QueueItemUninstall.h.
Definition at line 49 of file QueueItemUninstall.h.
| zypp::solver::detail::QueueItemUninstall::QueueItemUninstall | ( | const ResPool & | pool, | |
| PoolItem_Ref | item, | |||
| UninstallReason | reason, | |||
| bool | soft = false | |||
| ) |
Definition at line 95 of file QueueItemUninstall.cc.
References _XDEBUG.
Referenced by copy(), zypp::solver::detail::UninstallItem::operator()(), and zypp::solver::detail::ProvidesItem::operator()().
| zypp::solver::detail::QueueItemUninstall::~QueueItemUninstall | ( | ) | [virtual] |
Definition at line 113 of file QueueItemUninstall.cc.
| std::ostream & zypp::solver::detail::QueueItemUninstall::dumpOn | ( | std::ostream & | str | ) | const [virtual] |
Overload to realize std::ostream & operator<<.
Reimplemented from zypp::solver::detail::QueueItem.
Definition at line 59 of file QueueItemUninstall.cc.
References _cap_leading_to_uninstall, _due_to_conflict, _due_to_obsolete, _explicitly_requested, _item, _obsoletes_item, _reason, _remove_only, _soft, _unlink, _upgraded_to, BACKOUT, CONFLICT, DUPLICATE, EXPLICIT, zypp::Capability::noCap, OBSOLETE, UNSATISFIED, and UPGRADE.
| UninstallReason zypp::solver::detail::QueueItemUninstall::reason | ( | void | ) | const [inline] |
| void zypp::solver::detail::QueueItemUninstall::setCapability | ( | const Capability & | cap | ) | [inline] |
| void zypp::solver::detail::QueueItemUninstall::setExplicitlyRequested | ( | void | ) | [inline] |
| void zypp::solver::detail::QueueItemUninstall::setRemoveOnly | ( | void | ) | [inline] |
| void zypp::solver::detail::QueueItemUninstall::setUpgradedTo | ( | PoolItem_Ref | item | ) | [inline] |
| void zypp::solver::detail::QueueItemUninstall::setDueToConflict | ( | void | ) | [inline] |
| void zypp::solver::detail::QueueItemUninstall::setDueToObsolete | ( | const PoolItem_Ref | item | ) | [inline] |
Definition at line 94 of file QueueItemUninstall.h.
References _due_to_obsolete, and _obsoletes_item.
| void zypp::solver::detail::QueueItemUninstall::setUnlink | ( | void | ) |
Definition at line 120 of file QueueItemUninstall.cc.
References _unlink, and zypp::solver::detail::QueueItem::setPriority().
| PoolItem_Ref zypp::solver::detail::QueueItemUninstall::deletedItem | ( | void | ) | const [inline] |
| bool zypp::solver::detail::QueueItemUninstall::process | ( | const QueueItemList & | mainQueue, | |
| ResolverContext_Ptr | context, | |||
| QueueItemList & | qil | |||
| ) | [virtual] |
Implements zypp::solver::detail::QueueItem.
Definition at line 317 of file QueueItemUninstall.cc.
References _cap_leading_to_uninstall, _due_to_conflict, _due_to_obsolete, _explicitly_requested, _item, _obsoletes_item, _remove_only, _soft, _unlink, _upgraded_to, _XDEBUG, zypp::ResPool::byCapabilityIndexEnd(), zypp::solver::detail::UnlinkCheck::cancel_unlink, zypp::functor::chain(), zypp::solver::detail::ResolverInfoMisc::CONFLICT, zypp::solver::detail::UnlinkCheck::context, zypp::Rel::EQ, zypp::Dep::FRESHENS, zypp::Capability::index(), zypp::invokeOnEach(), zypp::ResStatus::isLocked(), zypp::ResStatus::isToBeInstalled(), zypp::solver::detail::QueueItem::logInfo(), zypp::solver::detail::ResolverInfoMisc::OBSOLETE, zypp::CapFactory::parse(), zypp::solver::detail::QueueItem::pool(), zypp::Dep::PROVIDES, zypp::Dep::RECOMMENDS, zypp::Dep::REQUIRES, RESOLVER_INFO_PRIORITY_VERBOSE, zypp::solver::detail::RESOLVER_INFO_TYPE_UNINSTALL_INSTALLED, zypp::solver::detail::RESOLVER_INFO_TYPE_UNINSTALL_LOCKED, zypp::solver::detail::RESOLVER_INFO_TYPE_UNINSTALL_TO_BE_INSTALLED, zypp::PoolItem_Ref::status(), zypp::ResStatus::staysInstalled(), zypp::Dep::SUPPLEMENTS, and zypp::ResStatus::toBeUninstalled.
| QueueItem_Ptr zypp::solver::detail::QueueItemUninstall::copy | ( | void | ) | const [virtual] |
Implements zypp::solver::detail::QueueItem.
Definition at line 511 of file QueueItemUninstall.cc.
References _cap_leading_to_uninstall, _due_to_conflict, _due_to_obsolete, _explicitly_requested, _item, _obsoletes_item, _reason, _remove_only, _unlink, _upgraded_to, zypp::solver::detail::QueueItem::pool(), and QueueItemUninstall().
| int zypp::solver::detail::QueueItemUninstall::cmp | ( | QueueItem_constPtr | item | ) | const [virtual] |
Implements zypp::solver::detail::QueueItem.
Definition at line 499 of file QueueItemUninstall.cc.
References _item, zypp::solver::detail::QueueItem::compare(), and zypp::PoolItem_Ref::resolvable().
| virtual bool zypp::solver::detail::QueueItemUninstall::isRedundant | ( | ResolverContext_Ptr | context | ) | const [inline, virtual] |
| virtual bool zypp::solver::detail::QueueItemUninstall::isSatisfied | ( | ResolverContext_Ptr | context | ) | const [inline, virtual] |
| std::ostream& operator<< | ( | std::ostream & | str, | |
| const QueueItemUninstall & | obj | |||
| ) | [friend] |
Definition at line 83 of file QueueItemUninstall.h.
Definition at line 61 of file QueueItemUninstall.h.
Referenced by cmp(), copy(), deletedItem(), dumpOn(), and process().
bool zypp::solver::detail::QueueItemUninstall::_soft [private] |
Definition at line 64 of file QueueItemUninstall.h.
Referenced by copy(), dumpOn(), process(), and setCapability().
Definition at line 65 of file QueueItemUninstall.h.
Referenced by copy(), dumpOn(), process(), and setUpgradedTo().
Definition at line 67 of file QueueItemUninstall.h.
Referenced by copy(), dumpOn(), process(), and setExplicitlyRequested().
bool zypp::solver::detail::QueueItemUninstall::_remove_only [private] |
Definition at line 68 of file QueueItemUninstall.h.
Referenced by copy(), dumpOn(), process(), and setRemoveOnly().
bool zypp::solver::detail::QueueItemUninstall::_due_to_conflict [private] |
Definition at line 69 of file QueueItemUninstall.h.
Referenced by copy(), dumpOn(), process(), and setDueToConflict().
bool zypp::solver::detail::QueueItemUninstall::_due_to_obsolete [private] |
Definition at line 70 of file QueueItemUninstall.h.
Referenced by copy(), dumpOn(), process(), and setDueToObsolete().
bool zypp::solver::detail::QueueItemUninstall::_unlink [private] |
Definition at line 71 of file QueueItemUninstall.h.
Referenced by copy(), dumpOn(), process(), and setUnlink().
Definition at line 72 of file QueueItemUninstall.h.
Referenced by copy(), dumpOn(), process(), and setDueToObsolete().
1.5.3