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
33 typedef detail::PackageImplIf Impl;
35 typedef ResTraits<Self> TraitsType;
36 typedef TraitsType::PtrType Ptr;
37 typedef TraitsType::constPtrType constPtr;
40 typedef std::set<PackageKeyword> Keywords;
44 * Checksum the source says this package should have
46 CheckSum checksum() const;
47 /** Get the package change log */
48 Changelog changelog() const;
50 std::string buildhost() const;
52 std::string distribution() const;
54 Label license() const;
56 std::string packager() const;
58 PackageGroup group() const;
60 Keywords keywords() const;
61 /** Don't ship it as class Url, because it might be
62 * in fact anything but a legal Url. */
63 std::string url() const;
65 std::string os() const;
75 ByteCount sourcesize() const;
77 std::list<std::string> authors() const;
79 std::list<std::string> filenames() const;
81 /** Disk usage per directory */
82 DiskUsage diskusage() const;
84 /** location in source */
85 Pathname location() const;
88 Package( const NVRAD & nvrad_r );
93 /** Access implementation */
94 virtual Impl & pimpl() = 0;
95 /** Access implementation */
96 virtual const Impl & pimpl() const = 0;
98 ///////////////////////////////////////////////////////////////////
100 /////////////////////////////////////////////////////////////////
102 ///////////////////////////////////////////////////////////////////
103 #endif // ZYPP_PACKAGE_H