YUMPackageImpl.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_SOURCE_YUM_YUMPACKAGEIMPL_H
00013 #define ZYPP_SOURCE_YUM_YUMPACKAGEIMPL_H
00014 
00015 #include "zypp/source/SourceImpl.h"
00016 #include "zypp/detail/PackageImpl.h"
00017 #include "zypp/parser/yum/YUMParserData.h"
00018 #include "zypp/Changelog.h"
00019 #include "zypp/CheckSum.h"
00020 #include "zypp/PatchRpm.h"
00021 #include "zypp/DeltaRpm.h"
00022 
00024 namespace zypp
00025 { 
00026 
00027   namespace source
00028   { 
00029     namespace yum
00030     { 
00031 
00033       //
00034       //        CLASS NAME : YUMPackageImpl
00035       //
00038       class YUMPackageImpl : public detail::PackageImplIf
00039       {
00040       public:
00043         YUMPackageImpl(
00044           Source_Ref source_r,
00045           const zypp::parser::yum::YUMPrimaryData & parsed,
00046           const zypp::parser::yum::YUMFileListData & filelist,
00047           const zypp::parser::yum::YUMOtherData & other
00048         );
00049         YUMPackageImpl(
00050           Source_Ref source_r,
00051           const zypp::parser::yum::YUMPatchPackage & parsed
00052         );
00053 
00055         virtual TranslatedText summary() const;
00057         virtual TranslatedText description() const;
00059         virtual TranslatedText licenseToConfirm() const;
00061         virtual ByteCount size() const;
00063         virtual Date buildtime() const;
00065         virtual std::string buildhost() const;
00067         virtual Date installtime() const;
00069         virtual std::string distribution() const;
00071         virtual Vendor vendor() const;
00073         virtual Label license() const;
00075         virtual std::string packager() const;
00077         virtual PackageGroup group() const;
00079         virtual Changelog changelog() const;
00081         virtual Pathname location() const;
00084         virtual std::string url() const;
00086         virtual std::string os() const;
00088         virtual Text prein() const;
00090         virtual Text postin() const;
00092         virtual Text preun() const;
00094         virtual Text postun() const;
00096         virtual ByteCount sourcesize() const;
00098         virtual ByteCount archivesize() const;
00100         virtual std::list<std::string> authors() const;
00102         virtual std::list<std::string> filenames() const;
00104         virtual std::string type() const;
00106         virtual std::list<std::string> keywords() const;
00108         virtual bool installOnly() const;
00110         virtual unsigned sourceMediaNr() const;
00112         virtual CheckSum checksum() const;
00114         virtual std::list<DeltaRpm> deltaRpms() const;
00116         virtual std::list<PatchRpm> patchRpms() const;
00117 
00118       protected:
00119         TranslatedText _summary;
00120         TranslatedText _description;
00121         TranslatedText _license_to_confirm;
00122         Date _buildtime;
00123         std::string _buildhost;
00124         std::string _url;
00125         Vendor _vendor;
00126         Label _license;
00127         std::string _packager;
00128         PackageGroup _group;
00129         Changelog _changelog;
00130         std::string _type;
00131         std::list<std::string> _authors;
00132         std::list<std::string> _keywords;
00133         unsigned _mediaNumber;
00134         CheckSum _checksum;
00135         std::list<std::string> _filenames;
00136         Pathname _location;
00137 //      std::list<PlainRpm> _plain_rpms;
00138 #warning shouldn't be a list
00139         std::list<DeltaRpm> _delta_rpms;
00140         std::list<PatchRpm> _patch_rpms;
00141 
00142         bool _install_only;
00143 /*
00144         unsigned _size_package;
00145         unsigned _size_installed;
00146         unsigned _size_archive;
00147         std::string _sourcepkg;
00148         std::list<DirSize> _dir_sizes;
00149 */
00150 /*
00151         std::list<ChangelogEntry> changelog;
00152 */
00153       private:
00154         Source_Ref _source;
00155       public:
00156         Source_Ref source() const;
00157 
00158         friend class YUMSourceImpl;
00159 
00160        };
00162     } // namespace yum
00164   } // namespace source
00167 } // namespace zypp
00169 #endif // ZYPP_SOURCE_YUM_YUMPACKAGEIMPL_H

Generated on Mon Jun 5 19:10:38 2006 for zypp by  doxygen 1.4.6