00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_DETAIL_PACKAGEIMPLIF_H 00013 #define ZYPP_DETAIL_PACKAGEIMPLIF_H 00014 00015 #include <set> 00016 00017 #include "zypp/detail/ResObjectImplIf.h" 00018 #include "zypp/CheckSum.h" 00019 #include "zypp/Edition.h" 00020 #include "zypp/Arch.h" 00021 #include "zypp/Changelog.h" 00022 #include "zypp/DiskUsage.h" 00023 #include "zypp/source/PackageDelta.h" 00024 00026 namespace zypp 00027 { 00028 00029 class Package; 00030 00032 namespace detail 00033 { 00034 00036 // 00037 // CLASS NAME : PackageImplIf 00038 // 00041 class PackageImplIf : public ResObjectImplIf 00042 { 00043 public: 00044 typedef Package ResType; 00045 00046 public: 00047 typedef packagedelta::DeltaRpm DeltaRpm; 00048 typedef packagedelta::PatchRpm PatchRpm; 00049 00050 public: 00053 00054 virtual CheckSum checksum() const PURE_VIRTUAL; 00056 virtual std::string buildhost() const PURE_VIRTUAL; 00058 virtual std::string distribution() const PURE_VIRTUAL; 00060 virtual Label license() const PURE_VIRTUAL; 00062 virtual std::string packager() const PURE_VIRTUAL; 00064 virtual PackageGroup group() const PURE_VIRTUAL; 00066 virtual Changelog changelog() const PURE_VIRTUAL; 00068 virtual Pathname location() const PURE_VIRTUAL; 00071 virtual std::string url() const PURE_VIRTUAL; 00073 virtual std::string os() const PURE_VIRTUAL; 00075 virtual Text prein() const PURE_VIRTUAL; 00077 virtual Text postin() const PURE_VIRTUAL; 00079 virtual Text preun() const PURE_VIRTUAL; 00081 virtual Text postun() const PURE_VIRTUAL; 00083 virtual ByteCount sourcesize() const PURE_VIRTUAL; 00085 virtual DiskUsage diskusage() const PURE_VIRTUAL; 00087 virtual std::list<std::string> authors() const PURE_VIRTUAL; 00089 virtual std::list<std::string> filenames() const PURE_VIRTUAL; 00091 virtual std::list<DeltaRpm> deltaRpms() const PURE_VIRTUAL; 00093 virtual std::list<PatchRpm> patchRpms() const PURE_VIRTUAL; 00094 00096 00097 }; 00099 00101 } // namespace detail 00104 } // namespace zypp 00106 #endif // ZYPP_DETAIL_PACKAGEIMPLIF_H
1.5.0