106 bool isCategory(
const std::string & category_r )
const;
108 bool isCategory( Categories category_r )
const;
109 #ifndef SWIG // Swig treats it as syntax error
113 template <
class TContainer,
typename =
typename TContainer::value_type>
116 for (
const std::string & el : categories_r )
142 bool isSeverity(
const std::string & severity_r )
const;
144 bool isSeverity( SeverityFlags severity_r )
const;
145 #ifndef SWIG // Swig treats it as syntax error
149 template <
class TContainer,
typename =
typename TContainer::value_type>
152 for (
const std::string & el : severities_r )
216 class ReferenceIterator;
269 Patch::ReferenceIterator
270 , sat::LookupAttr::iterator
272 , boost::forward_traversal_tag
284 std::string
id()
const;
288 std::string
href()
const;
292 std::string
title()
const;
297 std::string
type()
const;
314 #endif // ZYPP_PATCH_H
std::string asString(const Patch::Category &obj)
A Solvable object within the sat Pool.
SeverityFlag
Possible severity levels for (security) patches.
intrusive_ptr< const TRes > constPtrType
std::string type() const
Type of the reference.
ResTraits< Self > TraitsType
std::string href() const
Url or pointer where to find more information.
Date timestamp() const
Issue date time.
ZYPP_DECLARE_OPERATORS_FOR_FLAGS(DiskUsageCounter::MountPoint::HintFlags)
Category categoryEnum() const
This patch's category as enum of wellknown categories.
std::string category() const
Patch category (recommended, security,...)
Contents contents() const
The collection of packages associated with this patch.
Class representing a patch.
bool interactiveWhenIgnoring(InteractiveFlags flags_r=NoFlags) const
Is the patch still interactive when ignoring this flags?
bool isCategory(const std::string &category_r) const
Whether this patch's category matches category_r.
SeverityFlag severityFlag() const
Severity string mapped to an enum.
Store and operate on date (time_t).
Query class for Patch issue references like bugzilla and security issues the patch is supposed to fix...
DEFINE_PTR_TYPE(Application)
bool isSeverity(const std::string &severity_r) const
Whether this patch's severity matches severity_r.
std::string title() const
Title describing the issue.
sat::SolvableSet Contents
ReferenceIterator referencesBegin() const
Get an iterator to the beginning of the patch references.
Patch(const sat::Solvable &solvable_r)
Ctor.
ZYPP_DECLARE_FLAGS(Categories, Category)
TraitsType::constPtrType constPtr
Base for resolvable objects.
intrusive_ptr< TRes > PtrType
'Language[_Country]' codes.
InteractiveFlag
Flags defining if and why this patch is interactive.
std::string message(const Locale &lang_r=Locale()) const
Information or warning to be displayed to the user.
bool reloginSuggested() const
Does the patch needs the user to relogin to take effect? relogin is suggested then.
friend class boost::iterator_core_access
bool interactive() const
Is the patch installation interactive? (does it need user input?)
bool rebootSuggested() const
Does the system need to reboot to finish the update process?
std::string id() const
The id of the reference.
Solvable satSolvable() const
Return the corresponding sat::Solvable.
ReferenceIterator referencesEnd() const
Get an iterator to the end of the patch references.
std::string severity() const
Severity string as specified in metadata.
bool isSeverity(const TContainer &severities_r) const
bool restartSuggested() const
Does the patch affect the package manager itself? restart is suggested then.
InteractiveFlags interactiveFlags() const
Get the InteractiveFlags of this Patch.
bool isCategory(const TContainer &categories_r) const
Solvable set wrapper to allow adding additioanal convenience iterators.