YUMGroupImpl.cc

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00013 #include "zypp/source/yum/YUMGroupImpl.h"
00014 #include "zypp/CapFactory.h"
00015 
00016 using namespace std;
00017 using namespace zypp::detail;
00018 using namespace zypp::parser::yum;
00019 
00021 namespace zypp
00022 { 
00023 
00024 namespace source
00025 { 
00026 namespace yum
00027 {
00029 //
00030 //        CLASS NAME : YUMGroupImpl
00031 //
00033 
00036 YUMGroupImpl::YUMGroupImpl(
00037   Source_Ref source_r,
00038   const zypp::parser::yum::YUMGroupData & parsed
00039 )
00040     : _summary(parsed.name)
00041     , _description(parsed.description)
00042     , _user_visible(parsed.userVisible == "true")
00043     , _source(source_r)
00044 {
00045 // to name        std::string groupId;
00046 // as _summary        std::list<multilang> name;
00047 // _description
00048 }
00049 
00050 YUMGroupImpl::~YUMGroupImpl()
00051 {}
00052 
00054 bool YUMGroupImpl::visible() const
00055 {
00056   return _user_visible;
00057 }
00058 
00059 TranslatedText YUMGroupImpl::summary() const
00060 {
00061   return _summary;
00062 }
00063 
00064 TranslatedText YUMGroupImpl::description() const
00065 {
00066   return _description;
00067 }
00068 
00069 Label YUMGroupImpl::order() const
00070 {
00071 #warning Ordering support in YUM?
00072   return Label("0");
00073 }
00074 
00075 Label YUMGroupImpl::category() const
00076 {
00077 #warning Category support in YUM missing!
00078   return Label("base");
00079 }
00080 
00081 Source_Ref YUMGroupImpl::source() const
00082 {
00083   return _source;
00084 }
00085 
00086 
00087 } // namespace yum
00089 } // namespace source
00092 } // namespace zypp

Generated on Tue Nov 28 16:49:32 2006 for zypp by  doxygen 1.5.0