/* * 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 #ifndef LIBNETAPI_DEPRECATED namespace BPrivate { namespace Network { #endif class BFileRequest : public BUrlRequest { public: virtual ~BFileRequest(); const BUrlResult& Result() const; void SetDisableListener(bool disable); private: friend class BUrlProtocolRoster; #ifdef LIBNETAPI_DEPRECATED BFileRequest(const BUrl& url, BUrlProtocolListener* listener = NULL, BUrlContext* context = NULL); #else BFileRequest(const BUrl& url, BDataIO* output, BUrlProtocolListener* listener = NULL, BUrlContext* context = NULL); #endif status_t _ProtocolLoop(); private: BUrlResult fResult; }; #ifndef LIBNETAPI_DEPRECATED } // namespace Network } // namespace BPrivate #endif #endif // _B_FILE_REQUEST_H_