15#include <zypp/base/Flags.h>
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;
Store and operate on date (time_t).
'Language[_Country]' codes.
Query class for Patch issue references like bugzilla and security issues the patch is supposed to fix...
std::string title() const
Title describing the issue.
friend class boost::iterator_core_access
std::string id() const
The id of the reference.
std::string href() const
Url or pointer where to find more information.
std::string type() const
Type of the reference.
Class representing a patch.
ResTraits< Self > TraitsType
ZYPP_DECLARE_FLAGS(SeverityFlags, SeverityFlag)
Category categoryEnum() const
This patch's category as enum of wellknown categories.
bool isSeverity(const std::string &severity_r) const
Whether this patch's severity matches severity_r.
TraitsType::constPtrType constPtr
bool interactive() const
Is the patch installation interactive? (does it need user input?)
InteractiveFlag
Flags defining if and why this patch is interactive.
SeverityFlag
Possible severity levels for (security) patches.
@ SEV_NONE
no value specified
@ SEV_IMPORTANT
Important.
@ SEV_OTHER
unknown value specified
InteractiveFlags interactiveFlags() const
Get the InteractiveFlags of this Patch.
std::string severity() const
Severity string as specified in metadata.
std::string category() const
Patch category (recommended, security,...)
bool isCategory(const TContainer &categories_r) const
bool rebootSuggested() const
Does the system need to reboot to finish the update process?
bool reloginSuggested() const
Does the patch needs the user to relogin to take effect? relogin is suggested then.
ReferenceIterator referencesBegin() const
Get an iterator to the beginning of the patch references.
bool isCategory(const std::string &category_r) const
Whether this patch's category matches category_r.
Contents contents() const
The collection of packages associated with this patch.
@ CAT_OTHER
unknown value specified
bool isSeverity(const TContainer &severities_r) const
ZYPP_DECLARE_FLAGS(InteractiveFlags, InteractiveFlag)
std::string message(const Locale &lang_r=Locale()) const
Information or warning to be displayed to the user.
Date timestamp() const
Issue date time.
SeverityFlag severityFlag() const
Severity string mapped to an enum.
bool restartSuggested() const
Does the patch affect the package manager itself? restart is suggested then.
sat::SolvableSet Contents
ZYPP_DECLARE_FLAGS(Categories, Category)
bool interactiveWhenIgnoring(InteractiveFlags flags_r=NoFlags) const
Is the patch still interactive when ignoring this flags?
ReferenceIterator referencesEnd() const
Get an iterator to the end of the patch references.
Base for resolvable objects.
Solvable set wrapper to allow adding additional convenience iterators.
A Solvable object within the sat Pool.
Easy-to use interface to the ZYPP dependency resolver.
intrusive_ptr< const TRes > constPtrType
intrusive_ptr< TRes > PtrType
Solvable satSolvable() const
Return the corresponding sat::Solvable.
#define ZYPP_DECLARE_OPERATORS_FOR_FLAGS(Name)
#define DEFINE_PTR_TYPE(NAME)
Forward declaration of Ptr types.