70b63f18b3
Change-Id: Idf3773c081ce103647c5dbea6e82c22bfc5606c9
47 lines
796 B
C++
47 lines
796 B
C++
/*
|
|
* Copyright 2013 Haiku Inc. All rights reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _B_FILE_REQUEST_H_
|
|
#define _B_FILE_REQUEST_H_
|
|
|
|
|
|
#include <deque>
|
|
|
|
|
|
#include <UrlRequest.h>
|
|
#include <UrlProtocolRoster.h>
|
|
|
|
|
|
namespace BPrivate {
|
|
|
|
namespace Network {
|
|
|
|
|
|
class BFileRequest : public BUrlRequest {
|
|
public:
|
|
virtual ~BFileRequest();
|
|
|
|
const BUrlResult& Result() const;
|
|
void SetDisableListener(bool disable);
|
|
|
|
private:
|
|
friend class BUrlProtocolRoster;
|
|
|
|
BFileRequest(const BUrl& url,
|
|
BDataIO* output,
|
|
BUrlProtocolListener* listener = NULL,
|
|
BUrlContext* context = NULL);
|
|
|
|
status_t _ProtocolLoop();
|
|
private:
|
|
BUrlResult fResult;
|
|
};
|
|
|
|
|
|
} // namespace Network
|
|
|
|
} // namespace BPrivate
|
|
|
|
#endif // _B_FILE_REQUEST_H_
|