Adjust diskusage to be a ResObject attribute. Overloaded in
[platform/upstream/libzypp.git] / zypp / detail / SrcPackageImplIf.h
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/detail/SrcPackageImplIf.h
10  *
11 */
12 #ifndef ZYPP_DETAIL_SRCPACKAGEIMPLIF_H
13 #define ZYPP_DETAIL_SRCPACKAGEIMPLIF_H
14
15 #include <set>
16
17 #include "zypp/detail/ResObjectImplIf.h"
18 #include "zypp/Pathname.h"
19 #include "zypp/DiskUsage.h"
20
21 ///////////////////////////////////////////////////////////////////
22 namespace zypp
23 { /////////////////////////////////////////////////////////////////
24
25   class SrcPackage;
26
27   ///////////////////////////////////////////////////////////////////
28   namespace detail
29   { /////////////////////////////////////////////////////////////////
30
31     ///////////////////////////////////////////////////////////////////
32     //
33     //  CLASS NAME : SrcPackageImplIf
34     //
35     /** Abstract SrcPackage implementation interface.
36     */
37     class SrcPackageImplIf : public ResObjectImplIf
38     {
39     public:
40       typedef SrcPackage ResType;
41
42     public:
43       /** Overloaded ResObjectImpl attribute.
44        * \return The \ref location media number.
45        */
46       virtual unsigned mediaNr() const;
47
48       /** Overloaded ResObjectImpl attribute.
49        * \return The \ref location downloadSize.
50        */
51       virtual ByteCount downloadSize() const;
52
53     public:
54       /** */
55       virtual OnMediaLocation location() const PURE_VIRTUAL;
56     };
57     ///////////////////////////////////////////////////////////////////
58
59     /////////////////////////////////////////////////////////////////
60   } // namespace detail
61   ///////////////////////////////////////////////////////////////////
62   /////////////////////////////////////////////////////////////////
63 } // namespace zypp
64 ///////////////////////////////////////////////////////////////////
65 #endif // ZYPP_DETAIL_SRCPACKAGEIMPLIF_H