1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/SrcPackage.h
12 #ifndef ZYPP_SRCPACKAGE_H
13 #define ZYPP_SRCPACKAGE_H
15 #include "zypp/ResObject.h"
16 #include "zypp/detail/SrcPackageImplIf.h"
18 ///////////////////////////////////////////////////////////////////
20 { /////////////////////////////////////////////////////////////////
22 DEFINE_PTR_TYPE(SrcPackage);
24 ///////////////////////////////////////////////////////////////////
26 // CLASS NAME : SrcPackage
28 /** SrcPackage interface.
30 class SrcPackage : public ResObject
34 typedef detail::SrcPackageImplIf Impl;
35 typedef SrcPackage Self;
36 typedef ResTraits<Self> TraitsType;
37 typedef TraitsType::PtrType Ptr;
38 typedef TraitsType::constPtrType constPtr;
41 /** Disk usage per directory */
42 DiskUsage diskusage() const;
44 /** location of resolvable in repo */
45 OnMediaLocation location() const;
48 SrcPackage( const NVRAD & nvrad_r );
50 virtual ~SrcPackage();
53 /** Access implementation */
54 virtual Impl & pimpl() = 0;
55 /** Access implementation */
56 virtual const Impl & pimpl() const = 0;
58 ///////////////////////////////////////////////////////////////////
60 /////////////////////////////////////////////////////////////////
62 ///////////////////////////////////////////////////////////////////
63 #endif // ZYPP_SRCPACKAGE_H