libzypp: zypp/ZYppCommitPolicy.h Source File

libzypp 17.25.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 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
87
89 ZYppCommitPolicy & syncPoolAfterCommit( bool yesNo_r );
90
91 bool syncPoolAfterCommit() const;
92
93 public:
95 class Impl;
96 private:
98 RWCOW_pointer<Impl> _pimpl;
99 };
101
103 std::ostream & operator<<( std::ostream & str, const ZYppCommitPolicy & obj );
104
106 } // namespace zypp
108 #endif // ZYPP_ZYPPCOMMITPOLICY_H
DownloadMode.h
PtrTypes.h
RpmFlags.h
Impl
zypp::ZYppCommitPolicy
Options and policies for ZYpp::commit.
Definition: ZYppCommitPolicy.h:34
zypp::ZYppCommitPolicy::dryRun
bool dryRun() const
Definition: ZYppCommitPolicy.cc:75
zypp::ZYppCommitPolicy::ZYppCommitPolicy
ZYppCommitPolicy()
Definition: ZYppCommitPolicy.cc:60
zypp::ZYppCommitPolicy::downloadMode
DownloadMode downloadMode() const
Definition: ZYppCommitPolicy.cc:82
zypp::ZYppCommitPolicy::rpmNoSignature
bool rpmNoSignature() const
Definition: ZYppCommitPolicy.cc:98
zypp::ZYppCommitPolicy::rpmInstFlags
target::rpm::RpmInstFlags rpmInstFlags() const
Definition: ZYppCommitPolicy.cc:95
zypp::ZYppCommitPolicy::allMedia
ZYppCommitPolicy & allMedia()
Process all media (default)
Definition: ZYppCommitPolicy.h:48
zypp::ZYppCommitPolicy::restrictToMedia
unsigned restrictToMedia() const
Definition: ZYppCommitPolicy.cc:68
zypp::ZYppCommitPolicy::rpmExcludeDocs
bool rpmExcludeDocs() const
Definition: ZYppCommitPolicy.cc:101
zypp::ZYppCommitPolicy::syncPoolAfterCommit
bool syncPoolAfterCommit() const
Definition: ZYppCommitPolicy.cc:108
zypp::ZYppCommitPolicy::_pimpl
RWCOW_pointer< Impl > _pimpl
Pointer to data.
Definition: ZYppCommitPolicy.h:95
str
String related utilities and Regular expression matching.
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
zypp::operator<<
std::ostream & operator<<(std::ostream &str, const Exception &obj)
Definition: Exception.cc:147
zypp::DownloadMode
DownloadMode
Supported commit download policies.
Definition: DownloadMode.h:23
zypp::RWCOW_pointer
RW_pointer supporting 'copy on write' functionality.
Definition: PtrTypes.h:459