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/PatchRpm.h" 00023 #include "zypp/DeltaRpm.h" 00024 #include "zypp/DiskUsage.h" 00025 00027 namespace zypp 00028 { 00029 00030 class Package; 00031 00033 namespace detail 00034 { 00035 00037 // 00038 // CLASS NAME : PackageImplIf 00039 // 00042 class PackageImplIf : public ResObjectImplIf 00043 { 00044 public: 00045 typedef Package ResType; 00046 00047 public: 00050 00051 virtual CheckSum checksum() const PURE_VIRTUAL; 00053 virtual std::string buildhost() const PURE_VIRTUAL; 00055 virtual std::string distribution() const PURE_VIRTUAL; 00057 virtual Label license() const PURE_VIRTUAL; 00059 virtual std::string packager() const PURE_VIRTUAL; 00061 virtual PackageGroup group() const PURE_VIRTUAL; 00063 virtual Changelog changelog() const PURE_VIRTUAL; 00065 virtual Pathname location() const PURE_VIRTUAL; 00068 virtual std::string url() const PURE_VIRTUAL; 00070 virtual std::string os() const PURE_VIRTUAL; 00072 virtual Text prein() const PURE_VIRTUAL; 00074 virtual Text postin() const PURE_VIRTUAL; 00076 virtual Text preun() const PURE_VIRTUAL; 00078 virtual Text postun() const PURE_VIRTUAL; 00080 virtual ByteCount sourcesize() const PURE_VIRTUAL; 00082 virtual DiskUsage diskusage() const PURE_VIRTUAL; 00084 virtual std::list<std::string> authors() const PURE_VIRTUAL; 00086 virtual std::list<std::string> filenames() const PURE_VIRTUAL; 00088 virtual std::list<DeltaRpm> deltaRpms() const PURE_VIRTUAL; 00090 virtual std::list<PatchRpm> patchRpms() const PURE_VIRTUAL; 00091 00093 00094 }; 00096 00098 } // namespace detail 00101 } // namespace zypp 00103 #endif // ZYPP_DETAIL_PACKAGEIMPLIF_H
1.4.6