00001
00002
00003
00004
00005
00006
00007
00008
00012 #ifndef ZYPP_DELTARPM_H
00013 #define ZYPP_DELTARPM_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 DeltaRpm
00025 {
00026 public:
00027 DeltaRpm(const Arch & arch,
00028 const Pathname & filename,
00029 const ByteCount & downloadsize,
00030 const CheckSum & checksum,
00031 const Date & buildtime,
00032 const BaseVersion & base_version)
00033 : _arch(arch)
00034 , _filename(filename)
00035 , _downloadsize(downloadsize)
00036 , _checksum(checksum)
00037 , _buildtime(buildtime)
00038 , _base_version(base_version)
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 BaseVersion baseVersion() const { return _base_version; }
00046 private:
00047 Arch _arch;
00048 Pathname _filename;
00049 ByteCount _downloadsize;
00050 CheckSum _checksum;
00051 Date _buildtime;
00052 BaseVersion _base_version;
00053 };
00054
00055 }
00057 #endif // ZYPP_DELTARPM_H