00001 /*---------------------------------------------------------------------\ 00002 | | 00003 | __ __ ____ _____ ____ | 00004 | \ \ / /_ _/ ___|_ _|___ \ | 00005 | \ V / _` \___ \ | | __) | | 00006 | | | (_| |___) || | / __/ | 00007 | |_|\__,_|____/ |_| |_____| | 00008 | | 00009 | core system | 00010 | (C) SuSE GmbH | 00011 \----------------------------------------------------------------------/ 00012 00013 File: PMLanguage.h 00014 00015 Author: Michael Andres <ma@suse.de> 00016 Maintainer: Michael Andres <ma@suse.de> 00017 00018 Purpose: 00019 00020 /-*/ 00021 #ifndef PMLanguage_h 00022 #define PMLanguage_h 00023 00024 #include <iosfwd> 00025 00026 #include <y2pm/PMLanguagePtr.h> 00027 #include <y2pm/PMObject.h> 00028 #include <y2pm/PMLangCode.h> 00029 00031 // 00032 // CLASS NAME : PMLanguage 00036 class PMLanguage : public PMObject { 00037 REP_BODY(PMLanguage); 00038 00039 private: 00040 00041 LangCode _lang; 00042 00043 public: 00044 00045 PMLanguage( const LangCode & lang_r ); 00046 00047 virtual ~PMLanguage(); 00048 00049 LangCode langCode() const { return _lang; } 00050 00051 public: 00052 00059 virtual std::string summary() const; 00060 virtual std::list<std::string> description() const; 00061 virtual std::list<std::string> insnotify() const; 00062 virtual std::list<std::string> delnotify() const; 00063 virtual FSize size() const; 00064 virtual bool providesSources() const; 00065 00066 virtual std::string instSrcLabel() const; 00067 virtual Vendor instSrcVendor() const; 00068 virtual unsigned instSrcRank() const; // rank == 0 is highest! 00069 00070 public: 00071 00072 virtual std::ostream & dumpOn( std::ostream & str ) const; 00073 }; 00074 00076 00077 #endif // PMLanguage_h 00078
1.4.4