00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00009 00010 #ifndef zypp_repo_cached_PackageImpl_H 00011 #define zypp_repo_cached_PackageImpl_H 00012 00013 #include "zypp/detail/PackageImpl.h" 00014 #include "zypp/repo/cached/RepoImpl.h" 00015 00017 namespace zypp 00018 { 00019 namespace repo 00020 { 00021 namespace cached 00022 { 00023 00025 // 00026 // CLASS NAME : PackageImpl 00027 // 00028 class PackageImpl : public detail::PackageImplIf 00029 { 00030 public: 00031 00032 PackageImpl( const data::RecordId &id, repo::cached::RepoImpl::Ptr repository_r ); 00033 00034 public: 00038 virtual unsigned mediaNr() const; 00039 00043 virtual ByteCount downloadSize() const; 00044 00045 public: 00046 virtual TranslatedText summary() const; 00047 virtual TranslatedText description() const; 00048 virtual TranslatedText insnotify() const; 00049 virtual TranslatedText delnotify() const; 00050 virtual TranslatedText licenseToConfirm() const; 00051 virtual Vendor vendor() const; 00052 virtual ByteCount size() const; 00053 virtual bool installOnly() const; 00054 virtual Date buildtime() const; 00055 virtual Date installtime() const; 00056 00057 // PACKAGE 00058 virtual std::string buildhost() const; 00059 virtual std::string distribution() const; 00060 virtual Label license() const; 00061 virtual std::string packager() const; 00062 virtual PackageGroup group() const; 00063 virtual Keywords keywords() const; 00064 virtual Changelog changelog() const; 00065 virtual std::string url() const; 00066 virtual std::string os() const; 00067 virtual Text prein() const; 00068 virtual Text postin() const; 00069 virtual Text preun() const; 00070 virtual Text postun() const; 00071 virtual ByteCount sourcesize() const; 00072 virtual const DiskUsage & diskusage() const; 00073 virtual std::list<std::string> authors() const; 00074 virtual std::list<std::string> filenames() const; 00075 virtual OnMediaLocation location() const; 00076 virtual std::string sourcePkgName() const; 00077 virtual Edition sourcePkgEdition() const; 00078 00079 virtual Repository repository() const; 00080 00081 00082 private: 00083 repo::cached::RepoImpl::Ptr _repository; 00084 data::RecordId _id; 00085 00086 mutable DefaultIntegral<unsigned,(unsigned)-1> _mnr; 00087 mutable scoped_ptr<DiskUsage> _diskusage; 00088 }; 00090 } // namespace cached 00091 } // namespace repository 00092 } // namespace zypp 00094 #endif // ZMD_BACKEND_DBSOURCE_DBPACKAGEIMPL_H 00095
1.5.3