1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/Package.h
12 #ifndef ZYPP_PACKAGE_H
13 #define ZYPP_PACKAGE_H
15 #include "zypp/ResObject.h"
16 #include "zypp/detail/PackageImplIf.h"
18 ///////////////////////////////////////////////////////////////////
20 { /////////////////////////////////////////////////////////////////
22 DEFINE_PTR_TYPE(Package);
24 ///////////////////////////////////////////////////////////////////
26 // CLASS NAME : Package
28 /** Package interface.
30 class Package : public ResObject
34 typedef detail::PackageImplIf Impl;
36 typedef ResTraits<Self> TraitsType;
37 typedef TraitsType::PtrType Ptr;
38 typedef TraitsType::constPtrType constPtr;
42 * Checksum the source says this package should have
44 CheckSum checksum() const;
45 /** Get the package change log */
46 Changelog changelog() const;
48 std::string buildhost() const;
50 std::string distribution() const;
52 Label license() const;
54 std::string packager() const;
56 PackageGroup group() const;
57 /** Don't ship it as class Url, because it might be
58 * in fact anything but a legal Url. */
59 std::string url() const;
61 std::string os() const;
71 ByteCount sourcesize() const;
73 std::list<std::string> authors() const;
75 std::list<std::string> filenames() const;
77 /** Disk usage per directory */
78 DiskUsage diskusage() const;
80 /** location in source */
81 Pathname location() const;
84 Package( const NVRAD & nvrad_r );
89 /** Access implementation */
90 virtual Impl & pimpl() = 0;
91 /** Access implementation */
92 virtual const Impl & pimpl() const = 0;
94 ///////////////////////////////////////////////////////////////////
96 /////////////////////////////////////////////////////////////////
98 ///////////////////////////////////////////////////////////////////
99 #endif // ZYPP_PACKAGE_H