libzypp 17.37.10

ZYppCommitPolicy.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_ZYPPCOMMITPOLICY_H
13#define ZYPP_ZYPPCOMMITPOLICY_H
14
15#include <iosfwd>
16
17#include <zypp/base/PtrTypes.h>
18
19#include <zypp/DownloadMode.h>
20#include <zypp/target/rpm/RpmFlags.h>
21
23 namespace zypp
24{
25
27 //
28 // CLASS NAME : ZYppCommitPolicy
29 //
33 class ZYPP_API ZYppCommitPolicy
34 {
35 public:
36
37 ZYppCommitPolicy();
38
39 public:
45 ZYppCommitPolicy & restrictToMedia( unsigned mediaNr_r );
46
48 ZYppCommitPolicy & allMedia()
49 { return restrictToMedia( 0 ); }
50
51 unsigned restrictToMedia() const;
52
53
59 ZYppCommitPolicy & dryRun( bool yesNo_r );
60
61 bool dryRun() const;
62
63
72 ZYppCommitPolicy & downloadMode( DownloadMode val_r );
73
74 DownloadMode downloadMode() const;
75
76
78 ZYppCommitPolicy & rpmInstFlags( target::rpm::RpmInstFlags newFlags_r );
79
81 ZYppCommitPolicy & rpmNoSignature( bool yesNo_r );
82
84 ZYppCommitPolicy & rpmExcludeDocs( bool yesNo_r );
85
86 target::rpm::RpmInstFlags rpmInstFlags() const;
87
88 bool rpmNoSignature() const;
89
90 bool rpmExcludeDocs() const;
91
93 ZYppCommitPolicy & allowDowngrade( bool yesNo_r );
94 bool allowDowngrade() const;
95
97 ZYppCommitPolicy & replaceFiles( bool yesNo_r );
98 bool replaceFiles() const;
99
101 ZYppCommitPolicy & syncPoolAfterCommit( bool yesNo_r );
102 bool syncPoolAfterCommit() const;
103
105 bool singleTransModeEnabled() const;
106
107 public:
109 class Impl;
110 private:
112 RWCOW_pointer<Impl> _pimpl;
113 };
114
115
117 std::ostream & operator<<( std::ostream & str, const ZYppCommitPolicy & obj ) ZYPP_API;
118
120} // namespace zypp
122#endif // ZYPP_ZYPPCOMMITPOLICY_H
DownloadMode.h
RpmFlags.h
Impl
zypp::ZYppCommitPolicy
Options and policies for ZYpp::commit.
Definition ZYppCommitPolicy.h:34
zypp::ZYppCommitPolicy::restrictToMedia
ZYppCommitPolicy & restrictToMedia(unsigned mediaNr_r)
Restrict commit to media 1.
Definition ZYppCommitPolicy.cc:147
zypp::ZYppCommitPolicy::ZYppCommitPolicy
ZYppCommitPolicy()
Definition ZYppCommitPolicy.cc:142
zypp::ZYppCommitPolicy::_pimpl
RWCOW_pointer< Impl > _pimpl
Pointer to data.
Definition ZYppCommitPolicy.h:112
zypp::ZYppCommitPolicy::allMedia
ZYppCommitPolicy & allMedia()
Process all media (default)
Definition ZYppCommitPolicy.h:48
str
String related utilities and Regular expression matching.
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
zypp::operator<<
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
Definition SerialNumber.cc:52
zypp::ZYPP_API
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition Arch.h:247
zypp::DownloadMode
DownloadMode
Supported commit download policies.
Definition DownloadMode.h:25
zypp::RWCOW_pointer
RW_pointer supporting 'copy on write' functionality.
Definition PtrTypes.h:469
PtrTypes.h