/* * 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 #include #include 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_