libzypp: zypp/ZYppCommitPolicy.h Source File

libzypp 17.36.6

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
23namespace 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
67 ZYppCommitPolicy & downloadMode( DownloadMode val_r );
68
69 DownloadMode downloadMode() const;
70
71
73 ZYppCommitPolicy & rpmInstFlags( target::rpm::RpmInstFlags newFlags_r );
74
76 ZYppCommitPolicy & rpmNoSignature( bool yesNo_r );
77
79 ZYppCommitPolicy & rpmExcludeDocs( bool yesNo_r );
80
81 target::rpm::RpmInstFlags rpmInstFlags() const;
82
83 bool rpmNoSignature() const;
84
85 bool rpmExcludeDocs() const;
86
88 ZYppCommitPolicy & allowDowngrade( bool yesNo_r );
89 bool allowDowngrade() const;
90
92 ZYppCommitPolicy & replaceFiles( bool yesNo_r );
93 bool replaceFiles() const;
94
96 ZYppCommitPolicy & syncPoolAfterCommit( bool yesNo_r );
97 bool syncPoolAfterCommit() const;
98
99 bool singleTransModeEnabled () const;
100
101 public:
103 class Impl;
104 private:
106 RWCOW_pointer<Impl> _pimpl;
107 };
108
109
111 std::ostream & operator<<( std::ostream & str, const ZYppCommitPolicy & obj ) ZYPP_API;
112
114} // namespace zypp
116#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:121
zypp::ZYppCommitPolicy::ZYppCommitPolicy
ZYppCommitPolicy()
Definition ZYppCommitPolicy.cc:116
zypp::ZYppCommitPolicy::_pimpl
RWCOW_pointer< Impl > _pimpl
Pointer to data.
Definition ZYppCommitPolicy.h:106
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