#define ZYPP_SRCPACKAGE_H
#include "zypp/ResObject.h"
-#include "zypp/detail/SrcPackageImplIf.h"
///////////////////////////////////////////////////////////////////
namespace zypp
{
public:
- typedef detail::SrcPackageImplIf Impl;
- typedef SrcPackage Self;
+ typedef SrcPackage Self;
typedef ResTraits<Self> TraitsType;
typedef TraitsType::PtrType Ptr;
typedef TraitsType::constPtrType constPtr;
public:
- /** Disk usage per directory */
- DiskUsage diskusage() const;
-
+ /** The type of the source rpm ("src" or "nosrc"). */
+ std::string sourcePkgType() const;
+
/** location of resolvable in repo */
OnMediaLocation location() const;
-
+
protected:
- SrcPackage( const NVRAD & nvrad_r );
+ friend Ptr make<Self>( const sat::Solvable & solvable_r );
+ /** Ctor */
+ SrcPackage( const sat::Solvable & solvable_r );
/** Dtor */
virtual ~SrcPackage();
-
- private:
- /** Access implementation */
- virtual Impl & pimpl() = 0;
- /** Access implementation */
- virtual const Impl & pimpl() const = 0;
};
///////////////////////////////////////////////////////////////////