libzypp  17.38.17
PoolInstallState.h File Reference

Structured install-state flags for pool items and selectables. More...

Include dependency graph for PoolInstallState.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 zypp
 Easy-to use interface to the ZYPP dependency resolver.
 
 zypp::ui
 
 zypp::misc
 

Enumerations

enum  zypp::misc::PoolInstallState {
  zypp::misc::PoolInstallState::NotInstalled = 0, zypp::misc::PoolInstallState::AutoInstalled = (1 << 0), zypp::misc::PoolInstallState::UserInstalled = (1 << 1), zypp::misc::PoolInstallState::OtherVersionInstalled = (1 << 2),
  zypp::misc::PoolInstallState::Satisfied = (1 << 3), zypp::misc::PoolInstallState::Broken = (1 << 4), zypp::misc::PoolInstallState::Locked = (1 << 5), zypp::misc::PoolInstallState::Retracted = (1 << 6)
}
 Install-state flags for a pool item or selectable. More...
 

Functions

 zypp::misc::ZYPP_DECLARE_FLAGS_AND_OPERATORS (PoolInstallStateFlags, PoolInstallState)
 
PoolInstallStateFlags zypp::misc::poolInstallState (const PoolItem &pi)
 Compute install-state flags for a PoolItem. More...
 
PoolInstallStateFlags zypp::misc::poolInstallState (const ui::Selectable &sel)
 Compute install-state flags for a ui::Selectable. More...
 

Detailed Description

Structured install-state flags for pool items and selectables.

Unlike zypper's two-character status indicator (designed for terminal display), PoolInstallStateFlags are composable bit flags suitable for programmatic inspection — e.g. by an MCP tool or a REST API.

Note
This is distinct from ResStatus which describes the solver's internal transaction state. PoolInstallStateFlags describe the user-visible install state of a resolvable in the pool.

Definition in file PoolInstallState.h.