05f3aafa82b5acb3d8a36ccabbccac23c676f186
[platform/upstream/libzypp.git] / zypp / detail / PackageImplIf.cc
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/detail/PackageImplIf.cc
10  *
11 */
12 #include "zypp/detail/PackageImplIf.h"
13 #include <iostream>
14
15 using namespace std;
16
17 ///////////////////////////////////////////////////////////////////
18 namespace zypp
19 { /////////////////////////////////////////////////////////////////
20   ///////////////////////////////////////////////////////////////////
21   namespace detail
22   { /////////////////////////////////////////////////////////////////
23
24     /////////////////////////////////////////////////////////////////
25     // Default implementation of PackageImplIf attributes,
26     // as far as resonable.
27     /////////////////////////////////////////////////////////////////
28
29       Date PackageImplIf::buildtime() const
30       { return Date(); }
31
32       std::string PackageImplIf::buildhost() const
33       { return std::string(); }
34
35       Date PackageImplIf::installtime() const
36       { return Date(); }
37
38       std::string PackageImplIf::distribution() const
39       { return std::string(); }
40
41       Vendor PackageImplIf::vendor() const
42       { return Vendor(); }
43
44       Label PackageImplIf::license() const
45       { return Label(); }
46
47       std::string PackageImplIf::packager() const
48       { return std::string(); }
49
50       PackageGroup PackageImplIf::group() const
51       { return PackageGroup(); }
52
53       Changelog PackageImplIf::changelog() const
54       { return Changelog(); }
55
56       Pathname PackageImplIf::location() const
57       { return Pathname(); }
58
59       std::string PackageImplIf::url() const
60       { return std::string(); }
61
62       std::string PackageImplIf::os() const
63       { return std::string(); }
64
65       Text PackageImplIf::prein() const
66       { return Text(); }
67
68       Text PackageImplIf::postin() const
69       { return Text(); }
70
71       Text PackageImplIf::preun() const
72       { return Text(); }
73
74       Text PackageImplIf::postun() const
75       { return Text(); }
76
77       ByteCount PackageImplIf::sourcesize() const
78       { return ByteCount(); }
79
80       ByteCount PackageImplIf::archivesize() const
81       { return ByteCount(); }
82
83       std::list<std::string> PackageImplIf::authors() const
84       { return std::list<std::string>(); }
85
86       std::list<std::string> PackageImplIf::filenames() const
87       { return std::list<std::string>(); }
88
89       License PackageImplIf::licenseToConfirm() const
90       { return License(); }
91
92       std::list<DeltaRpm> PackageImplIf::deltaRpms() const
93       { return std::list<DeltaRpm>(); }
94
95       std::list<PatchRpm> PackageImplIf::patchRpms() const
96       { return std::list<PatchRpm>(); }
97
98       bool PackageImplIf::installOnly() const
99       { return false; }
100
101     /////////////////////////////////////////////////////////////////
102   } // namespace detail
103   ///////////////////////////////////////////////////////////////////
104   /////////////////////////////////////////////////////////////////
105 } // namespace zypp
106 ///////////////////////////////////////////////////////////////////