PatchRpm.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_PATCHRPM_H
00013 #define ZYPP_PATCHRPM_H
00014 
00015 #include "zypp/Edition.h"
00016 #include "zypp/Arch.h"
00017 #include "zypp/BaseVersion.h"
00018 #include "zypp/Pathname.h"
00019 
00021 namespace zypp
00022 { 
00023 
00024   class PatchRpm
00025   {
00026   public:
00027     PatchRpm(const Arch & arch,
00028              const Pathname & filename, 
00029              const ByteCount & downloadsize,
00030              const CheckSum & checksum,
00031              const Date & buildtime,
00032              const std::list<BaseVersion> & base_versions,
00033              const unsigned media_nr)
00034     : _arch(arch)
00035     , _filename(filename)
00036     , _downloadsize(downloadsize)
00037     , _checksum(checksum)
00038     , _buildtime(buildtime)
00039     , _base_versions(base_versions)
00040     , _media_nr(media_nr)
00041     {}
00042     Arch arch() const { return _arch; }
00043     Pathname filename() const { return _filename; }
00044     ByteCount downloadsize() const { return _downloadsize; }
00045     CheckSum checksum() const { return _checksum; }
00046     Date buildtime() const { return _buildtime; }
00047     std::list<BaseVersion> baseVersions() const { return _base_versions; }
00048     unsigned mediaNr() const { return _media_nr; }
00049   private:
00050     Arch _arch;
00051     Pathname _filename;
00052     ByteCount _downloadsize;
00053     CheckSum _checksum;
00054     Date _buildtime;
00055     std::list<BaseVersion> _base_versions;
00056     unsigned _media_nr;
00057   };
00058 
00059 
00060 } // namespace zypp
00062 #endif // ZYPP_PATCHRPM_H

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