libzypp  13.10.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"
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 
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:
99  };
101 
103  std::ostream & operator<<( std::ostream & str, const ZYppCommitPolicy & obj );
104 
106 } // namespace zypp
108 #endif // ZYPP_ZYPPCOMMITPOLICY_H
bool rpmNoSignature() const
bool syncPoolAfterCommit() const
unsigned restrictToMedia() const
DownloadMode downloadMode() const
std::ostream & operator<<(std::ostream &str, const Exception &obj)
Definition: Exception.cc:120
Options and policies for ZYpp::commit.
target::rpm::RpmInstFlags rpmInstFlags() const
ZYppCommitPolicy & allMedia()
Process all media (default)
RWCOW_pointer< Impl > _pimpl
Pointer to data.
RW_pointer supporting &#39;copy on write&#39; functionality.
Definition: PtrTypes.h:438
DownloadMode
Supported commit download policies.
Definition: DownloadMode.h:22