libzypp 17.38.15

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>
25#include <zypp-core/base/Flags.h>
26#include <zypp/PoolItem.h>
27
28 namespace zypp {
29 namespace ui { class Selectable; }
30}
31
33 namespace zypp::misc
34{
35
58 enum class PoolInstallState
59 {
60 NotInstalled = 0,
61 AutoInstalled = (1 << 0),
62 UserInstalled = (1 << 1),
63 OtherVersionInstalled = (1 << 2),
65 Satisfied = (1 << 3),
66 Broken = (1 << 4),
67 Locked = (1 << 5),
68 Retracted = (1 << 6),
69 };
70 ZYPP_DECLARE_FLAGS_AND_OPERATORS( PoolInstallStateFlags, PoolInstallState );
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
Flags.h
Globals.h
Provides API related macros.
PoolItem.h
zypp::PoolItem
Combining sat::Solvable and ResStatus.
Definition PoolItem.h:51
zypp::ui::Selectable
Collects PoolItems of same kind and name.
Definition Selectable.h:53
zypp::misc
Definition DefaultLoadSystem.cc:35
zypp::misc::ZYPP_DECLARE_FLAGS_AND_OPERATORS
ZYPP_DECLARE_FLAGS_AND_OPERATORS(LoadSystemFlags, LoadSystemFlag)
relates: LoadSystemFlag Type-safe way of storing OR-combinations.
zypp::misc::PoolInstallState
PoolInstallState
Install-state flags for a pool item or selectable.
Definition PoolInstallState.h:59
zypp::misc::PoolInstallState::Retracted
@ Retracted
Retracted (PTF / blacklisted).
Definition PoolInstallState.h:68
zypp::misc::PoolInstallState::NotInstalled
@ NotInstalled
Not installed (base/default state).
Definition PoolInstallState.h:60
zypp::misc::PoolInstallState::AutoInstalled
@ AutoInstalled
Installed as a dependency (auto).
Definition PoolInstallState.h:61
zypp::misc::PoolInstallState::Broken
@ Broken
Pseudo-installed and requirements are not met.
Definition PoolInstallState.h:66
zypp::misc::PoolInstallState::OtherVersionInstalled
@ OtherVersionInstalled
Installed, but no identical candidate available.
Definition PoolInstallState.h:63
zypp::misc::poolInstallState
PoolInstallStateFlags poolInstallState(const PoolItem &pi)
Compute install-state flags for a PoolItem.
Definition PoolInstallState.cc:21
zypp::ui
Definition PoolInstallState.h:29
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2
zypp::ZYPP_API
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
Definition Arch.h:173