libzypp 8.13.6
|
00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_PARSER_WEBPINRESULTFILEREADER_H 00013 #define ZYPP_PARSER_WEBPINRESULTFILEREADER_H 00014 00015 #include <iosfwd> 00016 00017 #include "zypp/base/PtrTypes.h" 00018 #include "zypp/ProgressData.h" 00019 #include "zypp/Pathname.h" 00020 #include "zypp/ws/WebpinResult.h" 00021 00023 namespace zypp 00024 { 00025 00026 namespace parser 00027 { 00028 00029 namespace ws 00030 { 00031 00046 class WebpinResultFileReader 00047 { 00048 friend std::ostream & operator<<( std::ostream & str, const WebpinResultFileReader & obj ); 00049 public: 00050 00058 typedef function< bool( const zypp::ws::WebpinResult & )> ProcessWebpinResult; 00059 00060 public: 00072 WebpinResultFileReader( const Pathname &result_file, 00073 const ProcessWebpinResult & callback/*, 00074 const ProgressData::ReceiverFnc &progress = ProgressData::ReceiverFnc()*/); 00075 00079 ~WebpinResultFileReader(); 00080 private: 00081 class Impl; 00082 RW_pointer<Impl,rw_pointer::Scoped<Impl> > _pimpl; 00083 }; 00085 00087 std::ostream & operator<<( std::ostream & str, const WebpinResultFileReader & obj ); 00088 00089 } //namespace ws 00091 } // namespace parser 00094 } // namespace zypp 00096 #endif // ZYPP_PARSER_WEBPINRESULTFILEREADER_H