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         return _user_visible;
00056       }
00057 
00058       TranslatedText YUMGroupImpl::summary() const
00059       { return _summary; }
00060 
00061       TranslatedText YUMGroupImpl::description() const
00062       { return _description; }
00063 
00064       Label YUMGroupImpl::order() const {
00065 #warning Ordering support in YUM?
00066         return Label("0");
00067       }
00068 
00069      Label YUMGroupImpl::category() const {
00070 #warning Category support in YUM missing!
00071         return Label("base");
00072       }
00073 
00074       Source_Ref YUMGroupImpl::source() const
00075       { return _source; }
00076 
00077 
00078     } // namespace yum
00080   } // namespace source
00083 } // namespace zypp

Generated on Thu Jul 6 00:07:24 2006 for zypp by  doxygen 1.4.6