OtherFileReader.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef OTHERFILEREADER_H_
00013 #define OTHERFILEREADER_H_
00014 
00015 #include "zypp/base/PtrTypes.h"
00016 #include "zypp/base/NonCopyable.h"
00017 #include "zypp/data/ResolvableData.h"
00018 #include "zypp/base/Function.h"
00019 
00020 #include "zypp/ProgressData.h"
00021 
00022 namespace zypp
00023 {
00024   namespace parser
00025   {
00026     namespace yum
00027     {
00028 
00029 
00045   class OtherFileReader : private base::NonCopyable
00046   {
00047   public:
00051     typedef function<bool(const data::Resolvable_Ptr &, const Changelog)> ProcessPackage;
00052 
00062     OtherFileReader(
00063       const Pathname & other_file,
00064       const ProcessPackage & callback,
00065       const ProgressData::ReceiverFnc & progress = ProgressData::ReceiverFnc());
00066     
00070     ~OtherFileReader();
00071 
00072   private:
00073     class Impl;
00074     RW_pointer<Impl,rw_pointer::Scoped<Impl> > _pimpl;
00075   };
00076 
00077 
00078     } // ns zypp
00079   } // ns parser
00080 } // ns yum
00081 
00082 #endif /*OTHERFILEREADER_H_*/
00083 
00084 // vim: set ts=2 sts=2 sw=2 et ai:

Generated on Tue Sep 25 19:23:04 2007 for libzypp by  doxygen 1.5.3