1/*
2 * Copyright 2013, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef _PACKAGE__DOWNLOAD_FILE_REQUEST_H_
6#define _PACKAGE__DOWNLOAD_FILE_REQUEST_H_
7
8
9#include <Entry.h>
10#include <String.h>
11
12#include <package/Context.h>
13#include <package/Request.h>
14
15
16namespace BPackageKit {
17
18
19class DownloadFileRequest : public BRequest {
20	typedef	BRequest				inherited;
21
22public:
23								DownloadFileRequest(const BContext& context,
24									const BString& fileURL,
25									const BEntry& targetEntry,
26									const BString& checksum = BString());
27	virtual						~DownloadFileRequest();
28
29	virtual	status_t			CreateInitialJobs();
30
31private:
32			BString				fFileURL;
33			BEntry				fTargetEntry;
34			BString				fChecksum;
35};
36
37
38}	// namespace BPackageKit
39
40
41#endif // _PACKAGE__DOWNLOAD_FILE_REQUEST_H_
42