26#include <com/sun/star/uno/XComponentContext.hpp>
29#include <rtl/ustring.hxx>
30#include <osl/conditn.hxx>
59 Download(
const css::uno::Reference<css::uno::XComponentContext>& xContext,
65 bool start(
const OUString& rURL,
const OUString& rFile,
const OUString& rDestinationDir);
72 void getProxyForURL(std::u16string_view rURL, OString& rHost, sal_Int32& rPort)
const;
76 const css::uno::Reference<css::uno::XComponentContext>&
m_xContext;
bool start(const OUString &rURL, const OUString &rFile, const OUString &rDestinationDir)
void getProxyForURL(std::u16string_view rURL, OString &rHost, sal_Int32 &rPort) const
Download(const css::uno::Reference< css::uno::XComponentContext > &xContext, const rtl::Reference< DownloadInteractionHandler > &rHandler)
const rtl::Reference< DownloadInteractionHandler > m_aHandler
const css::uno::Reference< css::uno::XComponentContext > & m_xContext
osl::Condition m_aCondition
virtual bool downloadTargetExists(const OUString &rFileName)=0
virtual ~DownloadInteractionHandler() override
virtual bool checkDownloadDestination(const OUString &rFileName)=0
virtual void downloadFinished(const OUString &rFileName)=0
virtual void downloadStarted(const OUString &rFileName, sal_Int64 nFileSize)=0
virtual void downloadStalled(const OUString &rErrorMessage)=0
virtual void downloadProgressAt(sal_Int8 nPercent)=0