zypp::detail::PatchImpl Class Reference

Class representing a patch. More...

#include <PatchImpl.h>

Inheritance diagram for zypp::detail::PatchImpl:

zypp::detail::PatchImplIf zypp::detail::ResObjectImplIf zypp::base::ReferenceCounted NonCopyable List of all members.

Public Member Functions

 PatchImpl ()
 Default ctor.
 ~PatchImpl ()
 Dtor.
std::string id () const
 Patch ID.
Date timestamp () const
 Patch time stamp.
TranslatedText summary () const
 Patch summary.
TranslatedText description () const
 Patch description.
std::string category () const
 Patch category (recommended, security,.
bool reboot_needed () const
 Does the system need to reboot to finish the update process?
bool affects_pkg_manager () const
 Does the patch affect the package manager itself?
bool interactive () const
 Is the patch installation interactive? (does it need user input?).
AtomList all_atoms () const
 The list of all atoms building the patch.
AtomList not_installed_atoms () const
 The list of those atoms which have not been installed.
bool any_atom_selected () const
void mark_atoms_to_freshen (bool freshen)

Protected Attributes

std::string _patch_id
 Patch ID.
Date _timestamp
 Patch time stamp.
TranslatedText _summary
 Patch summary.
TranslatedText _description
 Patch description.
std::string _category
 Patch category (recommended, security,.
bool _reboot_needed
 Does the system need to reboot to finish the update process?
bool _affects_pkg_manager
 Does the patch affect the package manager itself?
AtomList _atoms
 The list of all atoms building the patch.

Detailed Description

Class representing a patch.

Todo:
Get rid of string based ResKind detection in e.g. PatchImpl::interactive.

Definition at line 32 of file PatchImpl.h.


Constructor & Destructor Documentation

zypp::detail::PatchImpl::PatchImpl  ) 
 

Default ctor.

Definition at line 34 of file PatchImpl.cc.

zypp::detail::PatchImpl::~PatchImpl  ) 
 

Dtor.

Definition at line 38 of file PatchImpl.cc.


Member Function Documentation

std::string zypp::detail::PatchImpl::id  )  const [virtual]
 

Patch ID.

Implements zypp::detail::PatchImplIf.

Definition at line 41 of file PatchImpl.cc.

References _patch_id.

Date zypp::detail::PatchImpl::timestamp  )  const [virtual]
 

Patch time stamp.

Implements zypp::detail::PatchImplIf.

Definition at line 45 of file PatchImpl.cc.

References _timestamp.

TranslatedText zypp::detail::PatchImpl::summary  )  const [virtual]
 

Patch summary.

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 50 of file PatchImpl.cc.

References _summary.

TranslatedText zypp::detail::PatchImpl::description  )  const [virtual]
 

Patch description.

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 55 of file PatchImpl.cc.

References _description.

std::string zypp::detail::PatchImpl::category  )  const [virtual]
 

Patch category (recommended, security,.

..)

Implements zypp::detail::PatchImplIf.

Definition at line 60 of file PatchImpl.cc.

References _category.

bool zypp::detail::PatchImpl::reboot_needed  )  const [virtual]
 

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

Implements zypp::detail::PatchImplIf.

Definition at line 65 of file PatchImpl.cc.

References _reboot_needed.

bool zypp::detail::PatchImpl::affects_pkg_manager  )  const [virtual]
 

Does the patch affect the package manager itself?

Implements zypp::detail::PatchImplIf.

Definition at line 70 of file PatchImpl.cc.

References _affects_pkg_manager.

bool zypp::detail::PatchImpl::interactive  )  const [virtual]
 

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

Implements zypp::detail::PatchImplIf.

Definition at line 75 of file PatchImpl.cc.

References _reboot_needed, DBG, and not_installed_atoms().

PatchImpl::AtomList zypp::detail::PatchImpl::all_atoms  )  const [virtual]
 

The list of all atoms building the patch.

Implements zypp::detail::PatchImplIf.

Definition at line 118 of file PatchImpl.cc.

References _atoms.

PatchImpl::AtomList zypp::detail::PatchImpl::not_installed_atoms  )  const [virtual]
 

The list of those atoms which have not been installed.

Implements zypp::detail::PatchImplIf.

Definition at line 122 of file PatchImpl.cc.

References _atoms.

Referenced by interactive().

bool zypp::detail::PatchImpl::any_atom_selected  )  const [virtual]
 

Implements zypp::detail::PatchImplIf.

Definition at line 138 of file PatchImpl.cc.

References _atoms.

void zypp::detail::PatchImpl::mark_atoms_to_freshen bool  freshen  )  [virtual]
 

Implements zypp::detail::PatchImplIf.

Definition at line 151 of file PatchImpl.cc.

References _atoms.


Member Data Documentation

std::string zypp::detail::PatchImpl::_patch_id [protected]
 

Patch ID.

Definition at line 68 of file PatchImpl.h.

Referenced by id().

Date zypp::detail::PatchImpl::_timestamp [protected]
 

Patch time stamp.

Definition at line 70 of file PatchImpl.h.

Referenced by timestamp().

TranslatedText zypp::detail::PatchImpl::_summary [protected]
 

Patch summary.

Definition at line 72 of file PatchImpl.h.

Referenced by summary().

TranslatedText zypp::detail::PatchImpl::_description [protected]
 

Patch description.

Definition at line 74 of file PatchImpl.h.

Referenced by description().

std::string zypp::detail::PatchImpl::_category [protected]
 

Patch category (recommended, security,.

..)

Definition at line 76 of file PatchImpl.h.

Referenced by category().

bool zypp::detail::PatchImpl::_reboot_needed [protected]
 

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

Definition at line 78 of file PatchImpl.h.

Referenced by interactive(), and reboot_needed().

bool zypp::detail::PatchImpl::_affects_pkg_manager [protected]
 

Does the patch affect the package manager itself?

Definition at line 80 of file PatchImpl.h.

Referenced by affects_pkg_manager().

AtomList zypp::detail::PatchImpl::_atoms [protected]
 

The list of all atoms building the patch.

Definition at line 82 of file PatchImpl.h.

Referenced by all_atoms(), any_atom_selected(), mark_atoms_to_freshen(), and not_installed_atoms().


The documentation for this class was generated from the following files:
Generated on Thu Jul 6 00:07:32 2006 for zypp by  doxygen 1.4.6