Go to the documentation of this file.
107 bool isCategory(
const std::string & category_r )
const;
109 bool isCategory( Categories category_r )
const;
114 template <
class TContainer,
typename =
typename TContainer::value_type>
117 for (
const std::string & el : categories_r )
143 bool isSeverity(
const std::string & severity_r )
const;
145 bool isSeverity( SeverityFlags severity_r )
const;
150 template <
class TContainer,
typename =
typename TContainer::value_type>
153 for (
const std::string & el : severities_r )
217 class ReferenceIterator;
270 Patch::ReferenceIterator
271 , sat::LookupAttr::iterator
273 , boost::forward_traversal_tag
285 std::string
id()
const;
289 std::string
href()
const;
293 std::string
title()
const;
298 std::string
type()
const;
315 #endif // ZYPP_PATCH_H
std::string message(const Locale &lang_r=Locale()) const
Information or warning to be displayed to the user.
bool isCategory(const std::string &category_r) const
Whether this patch's category matches category_r.
bool rebootSuggested() const
Does the system need to reboot to finish the update process?
Date timestamp() const
Issue date time.
Patch(const sat::Solvable &solvable_r)
Ctor.
ZYPP_DECLARE_FLAGS(InteractiveFlags, InteractiveFlag)
friend class boost::iterator_core_access
ZYPP_DECLARE_FLAGS(Categories, Category)
intrusive_ptr< const TRes > constPtrType
Solvable set wrapper to allow adding additional convenience iterators.
DEFINE_PTR_TYPE(Application)
A Solvable object within the sat Pool.
std::string href() const
Url or pointer where to find more information.
std::string id() const
The id of the reference.
Solvable satSolvable() const
Return the corresponding sat::Solvable.
InteractiveFlag
Flags defining if and why this patch is interactive.
@ CAT_OTHER
unknown value specified
bool restartSuggested() const
Does the patch affect the package manager itself? restart is suggested then.
TraitsType::constPtrType constPtr
Query class for Patch issue references like bugzilla and security issues the patch is supposed to fix...
Contents contents() const
The collection of packages associated with this patch.
bool reloginSuggested() const
Does the patch needs the user to relogin to take effect? relogin is suggested then.
SeverityFlag
Possible severity levels for (security) patches.
std::string type() const
Type of the reference.
bool isCategory(const TContainer &categories_r) const
bool isSeverity(const TContainer &severities_r) const
std::string category() const
Patch category (recommended, security,...)
bool isSeverity(const std::string &severity_r) const
Whether this patch's severity matches severity_r.
bool interactiveWhenIgnoring(InteractiveFlags flags_r=NoFlags) const
Is the patch still interactive when ignoring this flags?
ZYPP_DECLARE_OPERATORS_FOR_FLAGS(DiskUsageCounter::MountPoint::HintFlags)
intrusive_ptr< TRes > PtrType
@ SEV_IMPORTANT
Important.
Easy-to use interface to the ZYPP dependency resolver.
Category categoryEnum() const
This patch's category as enum of wellknown categories.
std::string title() const
Title describing the issue.
ReferenceIterator referencesBegin() const
Get an iterator to the beginning of the patch references.
std::string asString(const DefaultIntegral< Tp, TInitial > &obj)
@ SEV_OTHER
unknown value specified
Store and operate on date (time_t).
@ SEV_NONE
no value specified
sat::SolvableSet Contents
ResTraits< Self > TraitsType
ReferenceIterator referencesEnd() const
Get an iterator to the end of the patch references.
std::string severity() const
Severity string as specified in metadata.
ZYPP_DECLARE_FLAGS(SeverityFlags, SeverityFlag)
'Language[_Country]' codes.
InteractiveFlags interactiveFlags() const
Get the InteractiveFlags of this Patch.
Base for resolvable objects.
SeverityFlag severityFlag() const
Severity string mapped to an enum.
Class representing a patch.
bool interactive() const
Is the patch installation interactive? (does it need user input?)