libzypp
10.5.0
|
00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_REPO_SRCPACKAGEPROVIDER_H 00013 #define ZYPP_REPO_SRCPACKAGEPROVIDER_H 00014 00015 #include <iosfwd> 00016 00017 #include "zypp/base/NonCopyable.h" 00018 #include "zypp/base/PtrTypes.h" 00019 00020 #include "zypp/repo/RepoProvideFile.h" 00021 #include "zypp/ManagedFile.h" 00022 #include "zypp/ResTraits.h" 00023 00025 namespace zypp 00026 { 00027 00028 namespace repo 00029 { 00030 00031 class RepoMediaAccess; 00032 00034 // 00035 // CLASS NAME : SrcPackageProvider 00036 // 00038 class SrcPackageProvider : private base::NonCopyable 00039 { 00040 public: 00042 SrcPackageProvider( repo::RepoMediaAccess & access_r ); 00044 ~SrcPackageProvider(); 00045 00046 public: 00048 ManagedFile provideSrcPackage( const SrcPackage_constPtr & srcPackage_r ) const; 00049 00050 private: 00051 RepoMediaAccess & _access; 00052 }; 00054 00056 } // namespace repo 00059 } // namespace zypp 00061 #endif // ZYPP_REPO_SRCPACKAGEPROVIDER_H