libzypp 17.38.14
PoolInstallState.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
21#ifndef ZYPP_MISC_POOLINSTALLSTATE_H
22#define ZYPP_MISC_POOLINSTALLSTATE_H
23
24#include <zypp-core/Globals.h>
26#include <zypp/PoolItem.h>
27
28namespace zypp {
29 namespace ui { class Selectable; }
30}
31
33namespace zypp::misc
34{
35
59 {
61 AutoInstalled = (1 << 0),
62 UserInstalled = (1 << 1),
65 Satisfied = (1 << 3),
66 Broken = (1 << 4),
67 Locked = (1 << 5),
68 Retracted = (1 << 6),
69 };
71
77 ZYPP_API PoolInstallStateFlags poolInstallState( const PoolItem & pi );
78
86 ZYPP_API PoolInstallStateFlags poolInstallState( const ui::Selectable & sel );
87
89} // namespace zypp::misc
91
92#endif // ZYPP_MISC_POOLINSTALLSTATE_H
#define ZYPP_DECLARE_FLAGS_AND_OPERATORS(Name, Enum)
relates: Flags
Definition Flags.h:189
Provides API related macros.
Combining sat::Solvable and ResStatus.
Definition PoolItem.h:51
Collects PoolItems of same kind and name.
Definition Selectable.h:53
PoolInstallState
Install-state flags for a pool item or selectable.
@ UserInstalled
Explicitly installed by the user.
@ Retracted
Retracted (PTF / blacklisted).
@ NotInstalled
Not installed (base/default state).
@ Satisfied
Pseudo-installed (patch/pattern) and satisfied.
@ AutoInstalled
Installed as a dependency (auto).
@ Broken
Pseudo-installed and requirements are not met.
@ OtherVersionInstalled
Installed, but no identical candidate available.
@ Locked
Locked — solver will not change this item.
PoolInstallStateFlags poolInstallState(const PoolItem &pi)
Compute install-state flags for a PoolItem.
Easy-to use interface to the ZYPP dependency resolver.
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
Definition Arch.h:173