Applydeltarpm.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00012 #ifndef ZYPP_SOURCE_APPLYDELTARPM_H
00013 #define ZYPP_SOURCE_APPLYDELTARPM_H
00014
00015 #include <iosfwd>
00016 #include <string>
00017
00018 #include "zypp/base/Function.h"
00019 #include "zypp/Pathname.h"
00020
00022 namespace zypp
00023 {
00024
00026
00027 namespace applydeltarpm
00028 {
00029
00031 bool haveApplydeltarpm();
00032
00040 bool check( const std::string & sequenceinfo_r, bool quick_r = false );
00041
00045 bool check( const Pathname & delta_r, bool quick_r = false );
00046
00048 inline bool quickcheck( const std::string & sequenceinfo_r )
00049 { return check( sequenceinfo_r, true ); }
00050
00052 inline bool quickcheck( const Pathname & delta_r )
00053 { return check( delta_r, true ); }
00055
00061 typedef function<void( unsigned )> Progress;
00062
00066 bool provide( const Pathname & delta_r, const Pathname & new_r,
00067 const Progress & report_r = Progress() );
00068
00072 bool provide( const Pathname & old_r, const Pathname & delta_r,
00073 const Pathname & new_r,
00074 const Progress & report_r = Progress() );
00076
00078 }
00081 }
00083 #endif // ZYPP_SOURCE_APPLYDELTARPM_H