Adjust diskusage to be a ResObject attribute. Overloaded in
[platform/upstream/libzypp.git] / zypp / detail / ResObjectImplIf.cc
index 425b003..4610c27 100644 (file)
@@ -11,6 +11,7 @@
 */
 #include "zypp/detail/ResObjectImplIf.h"
 #include "zypp/Repository.h"
+#include "zypp/DiskUsage.h"
 
 ///////////////////////////////////////////////////////////////////
 namespace zypp
@@ -53,16 +54,21 @@ namespace zypp
 
       Date ResObjectImplIf::installtime() const
       { return Date(); }
-      
+
       unsigned ResObjectImplIf::mediaNr() const
       { return 0; }
-      
+
       ByteCount ResObjectImplIf::size() const
       { return ByteCount(); }
 
       ByteCount ResObjectImplIf::downloadSize() const
       { return ByteCount(); }
-      
+
+      const DiskUsage & ResObjectImplIf::diskusage() const
+      {
+        static DiskUsage _du;
+        return _du;
+      }
     /////////////////////////////////////////////////////////////////
   } // namespace detail
   ///////////////////////////////////////////////////////////////////