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