00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #include <iostream> 00013 00014 #include "zypp/Pattern.h" 00015 00016 using namespace std; 00017 00019 namespace zypp 00020 { 00021 00022 IMPL_PTR_TYPE(Pattern); 00023 00025 // 00026 // METHOD NAME : Pattern::Pattern 00027 // METHOD TYPE : Ctor 00028 // 00029 Pattern::Pattern( const NVRAD & nvrad_r ) 00030 : ResObject( TraitsType::kind, nvrad_r ) 00031 {} 00032 00034 // 00035 // METHOD NAME : Pattern::~Pattern 00036 // METHOD TYPE : Dtor 00037 // 00038 Pattern::~Pattern() 00039 {} 00040 00042 // 00043 // Pattern interface forwarded to implementation 00044 // 00046 00047 bool Pattern::isDefault() const 00048 { return pimpl().isDefault(); } 00050 bool Pattern::userVisible() const 00051 { return pimpl().userVisible(); } 00053 std::string Pattern::category() const 00054 { return pimpl().category().text(); } 00056 Pathname Pattern::icon() const 00057 { return pimpl().icon(); } 00059 Pathname Pattern::script() const 00060 { return pimpl().script(); } 00061 00062 Label Pattern::order() const 00063 { return pimpl().order(); } 00064 00065 std::set<std::string> Pattern::install_packages( const Locale & lang ) const 00066 { 00067 return pimpl().install_packages(); 00068 } 00069 00071 } // namespace zypp