00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #include <iostream> 00013 00014 #include "zypp/Product.h" 00015 00016 using namespace std; 00017 00019 namespace zypp 00020 { 00021 00022 IMPL_PTR_TYPE(Product); 00023 00025 // 00026 // METHOD NAME : Product::Product 00027 // METHOD TYPE : Ctor 00028 // 00029 Product::Product( const NVRAD & nvrad_r ) 00030 : ResObject( TraitsType::kind, nvrad_r ) 00031 {} 00032 00034 // 00035 // METHOD NAME : Product::~Product 00036 // METHOD TYPE : Dtor 00037 // 00038 Product::~Product() 00039 {} 00040 00042 // 00043 // Package interface forwarded to implementation 00044 // 00046 00047 std::string Product::category() const 00048 { return pimpl().category(); } 00049 00050 Label Product::vendor() const 00051 { return pimpl().vendor(); } 00052 00053 Url Product::releaseNotesUrl() const 00054 { return pimpl().releaseNotesUrl(); } 00055 00056 std::list<Url> Product::updateUrls() const 00057 { return pimpl().updateUrls(); } 00058 00059 std::list<std::string> Product::flags() const 00060 { return pimpl().flags(); } 00061 00063 Label Product::shortName() const 00064 { return pimpl().shortName().text(); } 00065 00067 Label Product::longName() const 00068 { return summary(); } 00069 00071 } // namespace zypp