1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/Pattern.h
12 #ifndef ZYPP_PATTERN_H
13 #define ZYPP_PATTERN_H
15 #include "zypp/ResObject.h"
16 #include "zypp/Pathname.h"
18 ///////////////////////////////////////////////////////////////////
20 { /////////////////////////////////////////////////////////////////
22 DEFINE_PTR_TYPE(Pattern);
24 ///////////////////////////////////////////////////////////////////
26 // CLASS NAME : Pattern
28 /** Pattern interface.
30 class Pattern : public ResObject
34 typedef ResTraits<Self> TraitsType;
35 typedef TraitsType::PtrType Ptr;
36 typedef TraitsType::constPtrType constPtr;
40 bool isDefault() const;
42 bool userVisible() const;
44 std::string category( const Locale & lang_r = Locale() ) const;
46 Pathname icon() const;
48 Pathname script() const;
50 std::string order() const;
53 const Capabilities & includes() const;
55 const Capabilities & extends() const;
58 friend Ptr make<Self>( const sat::Solvable & solvable_r );
60 Pattern( const sat::Solvable & solvable_r );
64 ///////////////////////////////////////////////////////////////////
66 /////////////////////////////////////////////////////////////////
68 ///////////////////////////////////////////////////////////////////
69 #endif // ZYPP_PATTERN_H