libzypp
10.5.0
|
00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_ZYPPCOMMITPOLICY_H 00013 #define ZYPP_ZYPPCOMMITPOLICY_H 00014 00015 #include <iosfwd> 00016 00017 #include "zypp/base/PtrTypes.h" 00018 00019 #include "zypp/DownloadMode.h" 00020 #include "zypp/target/rpm/RpmFlags.h" 00021 00023 namespace zypp 00024 { 00025 00027 // 00028 // CLASS NAME : ZYppCommitPolicy 00029 // 00033 class ZYppCommitPolicy 00034 { 00035 public: 00036 00037 ZYppCommitPolicy(); 00038 00039 public: 00045 ZYppCommitPolicy & restrictToMedia( unsigned mediaNr_r ); 00046 00048 ZYppCommitPolicy & allMedia() 00049 { return restrictToMedia( 0 ); } 00050 00051 unsigned restrictToMedia() const; 00052 00053 00059 ZYppCommitPolicy & dryRun( bool yesNo_r ); 00060 00061 bool dryRun() const; 00062 00063 00067 ZYppCommitPolicy & downloadMode( DownloadMode val_r ); 00068 00069 DownloadMode downloadMode() const; 00070 00071 00073 ZYppCommitPolicy & rpmInstFlags( target::rpm::RpmInstFlags newFlags_r ); 00074 00076 ZYppCommitPolicy & rpmNoSignature( bool yesNo_r ); 00077 00079 ZYppCommitPolicy & rpmExcludeDocs( bool yesNo_r ); 00080 00081 target::rpm::RpmInstFlags rpmInstFlags() const; 00082 00083 bool rpmNoSignature() const; 00084 00085 bool rpmExcludeDocs() const; 00086 00087 00089 ZYppCommitPolicy & syncPoolAfterCommit( bool yesNo_r ); 00090 00091 bool syncPoolAfterCommit() const; 00092 00093 public: 00095 class Impl; 00096 private: 00098 RWCOW_pointer<Impl> _pimpl; 00099 }; 00101 00103 std::ostream & operator<<( std::ostream & str, const ZYppCommitPolicy & obj ); 00104 00106 } // namespace zypp 00108 #endif // ZYPP_ZYPPCOMMITPOLICY_H