52 CAT_RECOMMENDED = 1<<3,
92 {
return buildtime(); }
99 std::string category()
const;
104 Category categoryEnum()
const;
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 )
118 {
if ( isCategory( el ) )
return true; }
125 static Category categoryEnum(
const std::string & category_r );
134 std::string severity()
const;
140 SeverityFlag severityFlag()
const;
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 )
154 {
if ( isSeverity( el ) )
return true; }
161 static SeverityFlag severityFlag(
const std::string & category_r );
167 bool rebootSuggested()
const;
173 bool restartSuggested()
const;
179 bool reloginSuggested()
const;
184 std::string message(
const Locale & lang_r =
Locale() )
const;
189 InteractiveFlags interactiveFlags()
const;
194 bool interactiveWhenIgnoring( InteractiveFlags flags_r = NoFlags )
const;
206 bool interactive()
const;
212 Contents contents()
const;
217 class ReferenceIterator;
222 ReferenceIterator referencesBegin()
const;
227 ReferenceIterator referencesEnd()
const;
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 asString(const Patch::Category &obj)
ZYPP_DECLARE_FLAGS(VendorSupportOptions, VendorSupportOption)
A Solvable object within the sat Pool.
SeverityFlag
Possible severity levels for (security) patches.
ZYPP_DECLARE_OPERATORS_FOR_FLAGS(DiskUsageCounter::MountPoint::HintFlags)
std::string title() const
Title describing the issue.
Class representing a patch.
intrusive_ptr< const TRes > constPtrType
ReferenceIterator referencesEnd() const
Get an iterator to the end of the patch references.
ReferenceIterator referencesBegin() const
Get an iterator to the beginning of the patch references.
Store and operate on date (time_t).
Query class for Patch issue references like bugzilla and security issues the patch is supposed to fix...
std::string href() const
Url or pointer where to find more information.
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
DEFINE_PTR_TYPE(Application)
Base for resolvable objects.
TraitsType::constPtrType constPtr
std::string id() const
The id of the reference.
'Language[_Country]' codes.
InteractiveFlag
Flags defining if and why this patch is interactive.
intrusive_ptr< TRes > PtrType
friend class boost::iterator_core_access
Date timestamp() const
Issue date time.
bool isCategory(const TContainer &categories_r) const
bool isSeverity(const TContainer &severities_r) const
Easy-to use interface to the ZYPP dependency resolver.
Solvable satSolvable() const
Return the corresponding sat::Solvable.
std::string type() const
Type of the reference.
Solvable set wrapper to allow adding additional convenience iterators.