libzypp  11.13.5
Pattern.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_PATTERN_H
13 #define ZYPP_PATTERN_H
14 
15 #include "zypp/ResObject.h"
16 #include "zypp/Pathname.h"
17 
19 namespace zypp
20 {
21 
22  DEFINE_PTR_TYPE(Pattern);
23 
25  //
26  // CLASS NAME : Pattern
27  //
30  class Pattern : public ResObject
31  {
32  public:
33  typedef Pattern Self;
37 
38  public:
41 
42  public:
44  bool isDefault() const;
46  bool userVisible() const;
48  std::string category( const Locale & lang_r = Locale() ) const;
50  Pathname icon() const;
52  Pathname script() const;
54  std::string order() const;
55 
56  public:
58  NameList includes() const;
59 
61  NameList extends() const;
62 
64  Contents core() const;
65 
69  Contents depends() const;
70 
74  Contents contents() const;
75 
76  protected:
77  friend Ptr make<Self>( const sat::Solvable & solvable_r );
79  Pattern( const sat::Solvable & solvable_r );
81  virtual ~Pattern();
82  };
84 
86 } // namespace zypp
88 #endif // ZYPP_PATTERN_H