1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/Patch.cc
14 #include "zypp/base/Logger.h"
15 #include "zypp/Patch.h"
16 #include "zypp/detail/PatchImpl.h"
20 ///////////////////////////////////////////////////////////////////
22 { /////////////////////////////////////////////////////////////////
24 ///////////////////////////////////////////////////////////////////
26 // METHOD NAME : Patch::Patch
29 Patch::Patch( detail::PatchImplPtr impl_r )
36 ///////////////////////////////////////////////////////////////////
38 // METHOD NAME : Patch::~Patch
44 ///////////////////////////////////////////////////////////////////
46 // METHOD NAME : Patch::interactive
47 // Check whether patch can be applied only interactivly
49 bool Patch::interactive ()
51 return _pimpl->interactive ();
54 ///////////////////////////////////////////////////////////////////
56 // METHOD NAME : Patch::category
57 // Get the category of the patch
59 std::string Patch::category ()
61 return _pimpl->_category;
64 ///////////////////////////////////////////////////////////////////
66 // METHOD NAME : Patch::summary
67 // Get the patch summary
69 std::string Patch::summary ()
71 return _pimpl->_summary["en"];
74 ///////////////////////////////////////////////////////////////////
76 // METHOD NAME : Patch::description
77 // Get the patch description
79 std::string Patch::description ()
81 return _pimpl->_description["en"];
84 void Patch::mark_atoms_to_freshen (bool freshen)
86 _pimpl->mark_atoms_to_freshen (freshen);
88 ///////////////////////////////////////////////////////////////////
90 // METHOD NAME : Patch::any_atom_selected
91 // Check whether there is at least one atom of the solution selected
93 bool Patch::any_atom_selected ()
95 return _pimpl->any_atom_selected ();
98 ///////////////////////////////////////////////////////////////////
100 // METHOD NAME : Patch::select
101 // Mark all atoms to be updated (set them as freshen) and mark
102 // the patch itself as selected for being installed/updated
104 // FIXME to be changed to inherit Resolvable's method
105 void Patch::select ()
106 // : Resolvable::select ()
108 mark_atoms_to_freshen (true); // FIXME
111 /////////////////////////////////////////////////////////////////
113 ///////////////////////////////////////////////////////////////////