make patterns category tarnslatable, for Huha
[platform/upstream/libzypp.git] / zypp / Pattern.cc
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/Pattern.cc
10  *
11 */
12 #include <iostream>
13
14 #include "zypp/Pattern.h"
15
16 using namespace std;
17
18 ///////////////////////////////////////////////////////////////////
19 namespace zypp
20 { /////////////////////////////////////////////////////////////////
21
22   IMPL_PTR_TYPE(Pattern);
23   
24   ///////////////////////////////////////////////////////////////////
25   //
26   //    METHOD NAME : Pattern::Pattern
27   //    METHOD TYPE : Ctor
28   //
29   Pattern::Pattern( const NVRAD & nvrad_r )
30   : ResObject( TraitsType::kind, nvrad_r )
31   {}
32
33   ///////////////////////////////////////////////////////////////////
34   //
35   //    METHOD NAME : Pattern::~Pattern
36   //    METHOD TYPE : Dtor
37   //
38   Pattern::~Pattern()
39   {}
40
41   ///////////////////////////////////////////////////////////////////
42   //
43   //    Pattern interface forwarded to implementation
44   //
45   ///////////////////////////////////////////////////////////////////
46   /** */
47   bool Pattern::isDefault() const
48   { return pimpl().isDefault(); }
49   /** */
50   bool Pattern::userVisible() const
51   { return pimpl().userVisible(); }
52   /** */
53   std::string Pattern::category() const
54   { return pimpl().category().text(); }
55   /** */
56   Pathname Pattern::icon() const
57   { return pimpl().icon(); }
58   /** */
59   Pathname Pattern::script() const
60   { return pimpl().script(); }
61
62   Label Pattern::order() const
63   { return pimpl().order(); }
64   
65   std::set<std::string> Pattern::install_packages( const Locale & lang ) const
66   {
67      return pimpl().install_packages();
68   }
69
70   /////////////////////////////////////////////////////////////////
71 } // namespace zypp
72 ///////////////////////////////////////////////////////////////////