Make UEFI boot-platform build again
[haiku.git] / headers / private / package / ValidateChecksumJob.h
blob09f2a390dcca913eae044434d60de9ea409f034e
1 /*
2 * Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _PACKAGE__PRIVATE__VALIDATE_CHECKSUM_JOB_H_
6 #define _PACKAGE__PRIVATE__VALIDATE_CHECKSUM_JOB_H_
9 #include <Directory.h>
10 #include <Entry.h>
11 #include <String.h>
13 #include <package/ChecksumAccessors.h>
14 #include <package/Job.h>
17 namespace BPackageKit {
19 namespace BPrivate {
22 class ValidateChecksumJob : public BJob {
23 typedef BJob inherited;
25 public:
26 ValidateChecksumJob(
27 const BContext& context,
28 const BString& title,
29 ChecksumAccessor* expectedChecksumAccessor,
30 ChecksumAccessor* realChecksumAccessor,
31 bool failIfChecksumsDontMatch = true);
32 virtual ~ValidateChecksumJob();
34 bool ChecksumsMatch() const;
36 protected:
37 virtual status_t Execute();
39 private:
40 ChecksumAccessor* fExpectedChecksumAccessor;
41 ChecksumAccessor* fRealChecksumAccessor;
42 bool fFailIfChecksumsDontMatch;
44 bool fChecksumsMatch;
48 } // namespace BPrivate
50 } // namespace BPackageKit
53 #endif // _PACKAGE__PRIVATE__VALIDATE_CHECKSUM_JOB_H_