libzypp
10.5.0
|
Class representing a patch. More...
#include <Patch.h>
Classes | |
class | ReferenceIterator |
Query class for Patch issue references like bugzilla and security issues the patch is supposed to fix. More... | |
Public Types | |
enum | Category { CAT_OTHER, CAT_YAST, CAT_SECURITY, CAT_RECOMMENDED, CAT_OPTIONAL, CAT_DOCUMENT } |
enum | InteractiveFlag { NoFlags = 0x0000, Reboot = 0x0001, Message = 0x0002, License = 0x0004 } |
Flags defining if and why this patch is interactive. More... | |
typedef Patch | Self |
typedef ResTraits< Self > | TraitsType |
typedef TraitsType::PtrType | Ptr |
typedef TraitsType::constPtrType | constPtr |
typedef sat::SolvableSet | Contents |
Public Member Functions | |
ZYPP_DECLARE_FLAGS (InteractiveFlags, InteractiveFlag) | |
Date | timestamp () const |
Issue date time. | |
std::string | category () const |
Patch category (recommended, security,...) | |
Category | categoryEnum () const |
Patch category as enum of wellknown categories. | |
bool | rebootSuggested () const |
Does the system need to reboot to finish the update process? | |
bool | restartSuggested () const |
Does the patch affect the package manager itself? restart is suggested then. | |
bool | reloginSuggested () const |
Does the patch needs the user to relogin to take effect? relogin is suggested then. | |
std::string | message (const Locale &lang_r=Locale()) const |
Information or warning to be displayed to the user. | |
InteractiveFlags | interactiveFlags () const |
Get the InteractiveFlags of this Patch. | |
bool | interactiveWhenIgnoring (InteractiveFlags flags_r=NoFlags) const |
Is the patch still interactive when ignoring this flags? | |
bool | interactive () const |
Is the patch installation interactive? (does it need user input?) | |
Contents | contents () const |
The collection of packages associated with this patch. | |
ReferenceIterator | referencesBegin () const |
Get an iterator to the beginning of the patch references. | |
ReferenceIterator | referencesEnd () const |
Get an iterator to the end of the patch references. | |
Protected Member Functions | |
Patch (const sat::Solvable &solvable_r) | |
Ctor. | |
virtual | ~Patch () |
Dtor. | |
Friends | |
Ptr | make (const sat::Solvable &solvable_r) |
Directly create a certain kind of ResObject from sat::Solvable. |
Class representing a patch.
A patch represents a specific problem that can be fixed by pulling in the patch dependencies.
Patches can be marked for installation but their installation is a no-op.
typedef Patch zypp::Patch::Self |
Reimplemented from zypp::ResObject.
typedef ResTraits<Self> zypp::Patch::TraitsType |
Reimplemented from zypp::ResObject.
typedef TraitsType::PtrType zypp::Patch::Ptr |
Reimplemented from zypp::ResObject.
Reimplemented from zypp::ResObject.
zypp::Patch::Patch | ( | const sat::Solvable & | solvable_r | ) | [protected] |
zypp::Patch::ZYPP_DECLARE_FLAGS | ( | InteractiveFlags | , |
InteractiveFlag | |||
) |
Date zypp::Patch::timestamp | ( | ) | const [inline] |
std::string zypp::Patch::category | ( | ) | const |
Patch::Category zypp::Patch::categoryEnum | ( | ) | const |
bool zypp::Patch::rebootSuggested | ( | ) | const |
bool zypp::Patch::restartSuggested | ( | ) | const |
bool zypp::Patch::reloginSuggested | ( | ) | const |
Patch::InteractiveFlags zypp::Patch::interactiveFlags | ( | ) | const |
bool zypp::Patch::interactiveWhenIgnoring | ( | InteractiveFlags | flags_r = NoFlags | ) | const |
bool zypp::Patch::interactive | ( | ) | const |
Is the patch installation interactive? (does it need user input?)
For security reasons patches requiring a reboot are not installed in an unattended mode. They are considered to be interactive
so the user gets informed about the need for reboot. ignoreRebootFlag_r may be used to explicitly turn off this behavior and include those patches (unless they actually contain interactive components as well, like messages or licenses).
Patch::Contents zypp::Patch::contents | ( | ) | const |
Patch::ReferenceIterator zypp::Patch::referencesBegin | ( | ) | const [inline] |
Get an iterator to the beginning of the patch references.
Patch::ReferenceIterator zypp::Patch::referencesEnd | ( | ) | const [inline] |
Get an iterator to the end of the patch references.
Ptr make | ( | const sat::Solvable & | solvable_r | ) | [friend] |
Directly create a certain kind of ResObject from sat::Solvable.
If the sat::Solvables kind is not appropriate, a NULL pointer is returned.
sat::Solvable s; ResObject::Ptr p( makeResObject( s ) ); ResObject::Ptr q( make<ResObject>( s ) ); Package::Ptr pkg( make<Package>( s ) );
Definition at line 236 of file ResObject.h.