libzypp 17.37.10

Status.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_UI_STATUS_H
13#define ZYPP_UI_STATUS_H
14
15#include <iosfwd>
16#include <string>
17#include <zypp/Globals.h>
18
20 namespace zypp
21{
23 namespace ui
24 {
25
35 enum Status
36 {
37 S_Protected, // Keep this unmodified ( have installedObj && S_Protected )
38 S_Taboo, // Keep this unmodified ( have no installedObj && S_Taboo)
39 // requested by user:
40 S_Del, // delete installedObj ( clears S_Protected if set )
41 S_Update, // install candidateObj ( have installedObj, clears S_Protected if set )
42 S_Install, // install candidateObj ( have no installedObj, clears S_Taboo if set )
43 // not requested by user:
44 S_AutoDel, // delete installedObj
45 S_AutoUpdate, // install candidateObj ( have installedObj )
46 S_AutoInstall, // install candidateObj ( have no installedObj )
47 // no modification:
48 S_KeepInstalled, // no modification ( have installedObj && !S_Protected, clears S_Protected if set )
49 S_NoInst, // no modification ( have no installedObj && !S_Taboo, clears S_Taboo if set )
50 };
51
53
55 std::string asString( const Status & obj ) ZYPP_API;
56
58
60 inline std::ostream & operator<<( std::ostream & str, const Status & obj )
61 { return str << asString( obj ); }
62
64 } // namespace ui
67} // namespace zypp
69#endif // ZYPP_UI_STATUS_H
str
String related utilities and Regular expression matching.
zypp::ui
Definition SolvIterMixin.cc:57
zypp::ui::Status
Status
UI status Status values calculated by Selectable.
Definition Status.h:36
zypp::ui::S_AutoUpdate
@ S_AutoUpdate
Definition Status.h:45
zypp::ui::S_Taboo
@ S_Taboo
Definition Status.h:38
zypp::ui::S_AutoInstall
@ S_AutoInstall
Definition Status.h:46
zypp::ui::S_Install
@ S_Install
Definition Status.h:42
zypp::ui::S_AutoDel
@ S_AutoDel
Definition Status.h:44
zypp::ui::S_NoInst
@ S_NoInst
Definition Status.h:49
zypp::ui::S_Protected
@ S_Protected
Definition Status.h:37
zypp::ui::S_KeepInstalled
@ S_KeepInstalled
Definition Status.h:48
zypp::ui::S_Del
@ S_Del
Definition Status.h:40
zypp::ui::S_Update
@ S_Update
Definition Status.h:41
zypp::ui::asString
std::string asString(const Status &obj)
Definition Status.cc:30
zypp::ui::operator<<
std::ostream & operator<<(std::ostream &str, const Selectable &obj)
Definition Selectable.cc:331
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
zypp::ZYPP_API
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition Arch.h:247
Globals.h