Imported Upstream version 16.3.2
[platform/upstream/libzypp.git] / zypp / SrcPackage.h
index 00615ff..01d8861 100644 (file)
@@ -13,7 +13,6 @@
 #define ZYPP_SRCPACKAGE_H
 
 #include "zypp/ResObject.h"
-#include "zypp/detail/SrcPackageImplIf.h"
 
 ///////////////////////////////////////////////////////////////////
 namespace zypp
@@ -31,29 +30,24 @@ 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;
   };
   ///////////////////////////////////////////////////////////////////