Added Product::updateUrls, from content/UPDATEURLS (#163192).
[platform/upstream/libzypp.git] / zypp / Product.cc
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/Product.cc
10  *
11 */
12 #include <iostream>
13
14 #include "zypp/Product.h"
15
16 using namespace std;
17
18 ///////////////////////////////////////////////////////////////////
19 namespace zypp
20 { /////////////////////////////////////////////////////////////////
21
22   IMPL_PTR_TYPE(Product);
23   
24   ///////////////////////////////////////////////////////////////////
25   //
26   //    METHOD NAME : Product::Product
27   //    METHOD TYPE : Ctor
28   //
29   Product::Product( const NVRAD & nvrad_r )
30   : ResObject( TraitsType::kind, nvrad_r )
31   {}
32
33   ///////////////////////////////////////////////////////////////////
34   //
35   //    METHOD NAME : Product::~Product
36   //    METHOD TYPE : Dtor
37   //
38   Product::~Product()
39   {}
40
41   ///////////////////////////////////////////////////////////////////
42   //
43   //    Package interface forwarded to implementation
44   //
45   ///////////////////////////////////////////////////////////////////
46
47   std::string Product::category() const
48   { return pimpl().category(); }
49
50   Label Product::vendor() const
51   { return pimpl().vendor(); }
52
53   Url Product::releaseNotesUrl() const
54   { return pimpl().releaseNotesUrl(); }
55
56   std::list<Url> Product::updateUrls() const
57   { return pimpl().updateUrls(); }
58
59   std::list<std::string> Product::flags() const
60   { return pimpl().flags(); }
61
62   /** */
63   License Product::licenseToConfirm() const
64   { return pimpl().licenseToConfirm(); }
65
66   /** */
67   Label Product::shortName() const
68   { return pimpl().shortName().text(); }
69
70   /** */
71   Label Product::longName() const
72   { return summary(); }
73
74   /////////////////////////////////////////////////////////////////
75 } // namespace zypp
76 ///////////////////////////////////////////////////////////////////