zypp::detail::PatchImplIf Class Reference

Abstract Patch implementation interface. More...

#include <PatchImplIf.h>

Inheritance diagram for zypp::detail::PatchImplIf:
[legend]

List of all members.

Public Types

typedef Patch ResType
typedef std::list
< ResObject::Ptr
AtomList

Public Member Functions

virtual std::string id () const PURE_VIRTUAL
 Patch ID.
virtual Date timestamp () const PURE_VIRTUAL
 Patch time stamp.
virtual std::string category () const PURE_VIRTUAL
 Patch category (recommended, security,.
virtual bool reboot_needed () const PURE_VIRTUAL
 Does the system need to reboot to finish the update process?
virtual bool affects_pkg_manager () const PURE_VIRTUAL
 Does the patch affect the package manager itself?
virtual bool interactive () const PURE_VIRTUAL
 Is the patch installation interactive? (does it need user input?).
virtual AtomList all_atoms () const PURE_VIRTUAL
 The list of all atoms building the patch.

Private Attributes

scoped_ptr< AtomList_atomlist


Detailed Description

Abstract Patch implementation interface.

Definition at line 35 of file PatchImplIf.h.


Member Typedef Documentation

typedef Patch zypp::detail::PatchImplIf::ResType

Definition at line 38 of file PatchImplIf.h.

typedef std::list<ResObject::Ptr> zypp::detail::PatchImplIf::AtomList

Definition at line 41 of file PatchImplIf.h.


Member Function Documentation

std::string zypp::detail::PatchImplIf::id (  )  const [virtual]

Patch ID.

Reimplemented in zypp::detail::PatchImpl, zypp::repo::cached::PatchImpl, zypp::repo::memory::PatchImpl, and zypp::storage::XMLPatchImpl.

Definition at line 35 of file PatchImplIf.cc.

Date zypp::detail::PatchImplIf::timestamp (  )  const [virtual]

Patch time stamp.

Reimplemented in zypp::detail::PatchImpl, zypp::repo::cached::PatchImpl, zypp::repo::memory::PatchImpl, and zypp::storage::XMLPatchImpl.

Definition at line 38 of file PatchImplIf.cc.

std::string zypp::detail::PatchImplIf::category (  )  const [virtual]

Patch category (recommended, security,.

..)

Reimplemented in zypp::detail::PatchImpl, zypp::repo::cached::PatchImpl, zypp::repo::memory::PatchImpl, and zypp::storage::XMLPatchImpl.

Definition at line 41 of file PatchImplIf.cc.

bool zypp::detail::PatchImplIf::reboot_needed (  )  const [virtual]

Does the system need to reboot to finish the update process?

Reimplemented in zypp::detail::PatchImpl, zypp::repo::cached::PatchImpl, zypp::repo::memory::PatchImpl, and zypp::storage::XMLPatchImpl.

Definition at line 44 of file PatchImplIf.cc.

Referenced by interactive().

bool zypp::detail::PatchImplIf::affects_pkg_manager (  )  const [virtual]

Does the patch affect the package manager itself?

Reimplemented in zypp::detail::PatchImpl, zypp::repo::cached::PatchImpl, zypp::repo::memory::PatchImpl, and zypp::storage::XMLPatchImpl.

Definition at line 47 of file PatchImplIf.cc.

bool zypp::detail::PatchImplIf::interactive (  )  const [virtual]

Is the patch installation interactive? (does it need user input?).

Warning:
Computed here, usually no need to overload this.

Definition at line 50 of file PatchImplIf.cc.

References all_atoms(), zypp::TranslatedText::empty(), zypp::detail::ResObjectImplIf::licenseToConfirm(), and reboot_needed().

PatchImplIf::AtomList zypp::detail::PatchImplIf::all_atoms (  )  const [virtual]

The list of all atoms building the patch.

Warning:
Computed here, usually no need to overload this.

Reimplemented in zypp::storage::XMLPatchImpl.

Definition at line 71 of file PatchImplIf.cc.

References _atomlist, zypp::ResStore::begin(), zypp::ResStore::end(), for_, zypp::detail::ResObjectImplIf::hasBackRef(), zypp::hasMatches(), zypp::Dep::PROVIDES, zypp::detail::ResObjectImplIf::repository(), and zypp::Dep::REQUIRES.

Referenced by interactive().


Member Data Documentation

scoped_ptr<AtomList> zypp::detail::PatchImplIf::_atomlist [mutable, private]

Definition at line 65 of file PatchImplIf.h.

Referenced by all_atoms().


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 19:23:19 2007 for libzypp by  doxygen 1.5.3