00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_PACKAGE_H 00013 #define ZYPP_PACKAGE_H 00014 00015 #include "zypp/ResObject.h" 00016 #include "zypp/detail/PackageImplIf.h" 00017 00019 namespace zypp 00020 { 00021 00022 DEFINE_PTR_TYPE(Package); 00023 00025 // 00026 // CLASS NAME : Package 00027 // 00030 class Package : public ResObject 00031 { 00032 public: 00033 typedef detail::PackageImplIf Impl; 00034 typedef Package Self; 00035 typedef ResTraits<Self> TraitsType; 00036 typedef TraitsType::PtrType Ptr; 00037 typedef TraitsType::constPtrType constPtr; 00038 00039 public: 00040 typedef std::set<PackageKeyword> Keywords; 00041 00042 public: 00043 00045 Changelog changelog() const; 00047 std::string buildhost() const; 00049 std::string distribution() const; 00051 Label license() const; 00053 std::string packager() const; 00055 PackageGroup group() const; 00057 Keywords keywords() const; 00060 std::string url() const; 00062 std::string os() const; 00064 Text prein() const; 00066 Text postin() const; 00068 Text preun() const; 00070 Text postun() const; 00072 ByteCount sourcesize() const; 00074 std::list<std::string> authors() const; 00076 std::list<std::string> filenames() const; 00077 00081 std::string sourcePkgName() const; 00082 00086 Edition sourcePkgEdition() const; 00087 00092 ZYPP_DEPRECATED CheckSum checksum() const 00093 { return location().checksum(); } 00094 00098 OnMediaLocation location() const; 00099 00100 protected: 00101 Package( const NVRAD & nvrad_r ); 00103 virtual ~Package(); 00104 00105 private: 00107 virtual Impl & pimpl() = 0; 00109 virtual const Impl & pimpl() const = 0; 00110 }; 00112 00114 } // namespace zypp 00116 #endif // ZYPP_PACKAGE_H
1.5.3