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>
21 
23 namespace zypp
24 {
25 
27  //
28  // CLASS NAME : ZYppCommitPolicy
29  //
34  {
35  public:
36 
38 
39  public:
45  ZYppCommitPolicy & restrictToMedia( unsigned mediaNr_r );
46 
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:
113  };
115 
117  std::ostream & operator<<( std::ostream & str, const ZYppCommitPolicy & obj ) ZYPP_API;
118 
120 } // namespace zypp
122 #endif // ZYPP_ZYPPCOMMITPOLICY_H
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
Definition: SerialNumber.cc:52
Options and policies for ZYpp::commit.
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Definition: ResTraits.h:93
ZYppCommitPolicy & allMedia()
Process all media (default)
RWCOW_pointer< Impl > _pimpl
Pointer to data.
Easy-to use interface to the ZYPP dependency resolver.
Definition: Application.cc:19
DownloadMode
Supported commit download policies.
Definition: DownloadMode.h:24