00001
00002
00003
00004
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 : _arch(arch)
00034 , _filename(filename)
00035 , _downloadsize(downloadsize)
00036 , _checksum(checksum)
00037 , _buildtime(buildtime)
00038 , _base_versions(base_versions)
00039 {}
00040 Arch arch() const { return _arch; }
00041 Pathname filename() const { return _filename; }
00042 ByteCount downloadsize() const { return _downloadsize; }
00043 CheckSum checksum() const { return _checksum; }
00044 Date buildtime() const { return _buildtime; }
00045 std::list<BaseVersion> baseVersions() const { return _base_versions; }
00046 private:
00047 Arch _arch;
00048 Pathname _filename;
00049 ByteCount _downloadsize;
00050 CheckSum _checksum;
00051 Date _buildtime;
00052 std::list<BaseVersion> _base_versions;
00053 };
00054
00055
00056 }
00058 #endif // ZYPP_PATCHRPM_H