2 * Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>
3 * Distributed under the terms of the MIT License.
5 #ifndef _PACKAGE__PRIVATE__VALIDATE_CHECKSUM_JOB_H_
6 #define _PACKAGE__PRIVATE__VALIDATE_CHECKSUM_JOB_H_
13 #include <package/ChecksumAccessors.h>
14 #include <package/Job.h>
17 namespace BPackageKit
{
22 class ValidateChecksumJob
: public BJob
{
23 typedef BJob inherited
;
27 const BContext
& context
,
29 ChecksumAccessor
* expectedChecksumAccessor
,
30 ChecksumAccessor
* realChecksumAccessor
,
31 bool failIfChecksumsDontMatch
= true);
32 virtual ~ValidateChecksumJob();
34 bool ChecksumsMatch() const;
37 virtual status_t
Execute();
40 ChecksumAccessor
* fExpectedChecksumAccessor
;
41 ChecksumAccessor
* fRealChecksumAccessor
;
42 bool fFailIfChecksumsDontMatch
;
48 } // namespace BPrivate
50 } // namespace BPackageKit
53 #endif // _PACKAGE__PRIVATE__VALIDATE_CHECKSUM_JOB_H_