Product::displayName() is translatable
[platform/upstream/libzypp.git] / zypp / Product.h
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/Product.h
10  *
11 */
12 #ifndef ZYPP_PRODUCT_H
13 #define ZYPP_PRODUCT_H
14
15 #include "zypp/ResObject.h"
16 #include "zypp/detail/ProductImplIf.h"
17
18 ///////////////////////////////////////////////////////////////////
19 namespace zypp
20 { /////////////////////////////////////////////////////////////////
21
22   DEFINE_PTR_TYPE(Product);
23   
24   ///////////////////////////////////////////////////////////////////
25   //
26   //    CLASS NAME : ResObject
27   //
28   /** Product interface.
29   */
30   class Product : public ResObject
31   {
32   public:
33     typedef detail::ProductImplIf    Impl;
34     typedef Product                  Self;
35     typedef ResTraits<Self>          TraitsType;
36     typedef TraitsType::PtrType      Ptr;
37     typedef TraitsType::constPtrType constPtr;
38
39   public:
40     /** Get the product categoty (base, add-on) */
41     std::string category() const;
42
43     /** Get the vendor of the product */
44     Label vendor() const;
45
46     /** Get the name of the product to be presented to user */
47     TranslatedText displayName() const;
48
49   protected:
50     /** Ctor */
51     Product( const NVRAD & nvrad_r );
52     /** Dtor */
53     virtual ~Product();
54
55   private:
56     /** Access implementation */
57     virtual Impl & pimpl() = 0;
58     /** Access implementation */
59     virtual const Impl & pimpl() const = 0;
60   };
61
62   /////////////////////////////////////////////////////////////////
63 } // namespace zypp
64 ///////////////////////////////////////////////////////////////////
65 #endif // ZYPP_PRODUCT_H