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 ///////////////////////////////////////////////////////////////////
24 // CLASS NAME : Package
26 /** Package interface.
28 class Package : public ResObject
31 typedef detail::PackageImplIf Impl;
33 typedef ResTraits<Self> TraitsType;
34 typedef TraitsType::PtrType Ptr;
35 typedef TraitsType::constPtrType constPtr;
36 typedef Impl::DiskUsage DiskUsage;
39 /** Time of package installation */
41 /** Get the package change log */
42 Changelog changelog();
46 Package( const NVRAD & nvrad_r );
51 /** Access implementation */
52 virtual Impl & pimpl() = 0;
53 /** Access implementation */
54 virtual const Impl & pimpl() const = 0;
56 ///////////////////////////////////////////////////////////////////
58 /////////////////////////////////////////////////////////////////
60 ///////////////////////////////////////////////////////////////////
61 #endif // ZYPP_PACKAGE_H