LibreOffice Module extensions (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
Download Class Reference

#include <download.hxx>

Collaboration diagram for Download:
[legend]

Public Member Functions

 Download (const css::uno::Reference< css::uno::XComponentContext > &xContext, const rtl::Reference< DownloadInteractionHandler > &rHandler)
 
bool start (const OUString &rURL, const OUString &rFile, const OUString &rDestinationDir)
 
void stop ()
 

Protected Member Functions

void getProxyForURL (std::u16string_view rURL, OString &rHost, sal_Int32 &rPort) const
 

Private Attributes

osl::Condition m_aCondition
 
const css::uno::Reference< css::uno::XComponentContext > & m_xContext
 
const rtl::Reference< DownloadInteractionHandlerm_aHandler
 

Detailed Description

Definition at line 56 of file download.hxx.

Constructor & Destructor Documentation

◆ Download()

Download::Download ( const css::uno::Reference< css::uno::XComponentContext > &  xContext,
const rtl::Reference< DownloadInteractionHandler > &  rHandler 
)
inline

Definition at line 59 of file download.hxx.

Member Function Documentation

◆ getProxyForURL()

void Download::getProxyForURL ( std::u16string_view  rURL,
OString &  rHost,
sal_Int32 &  rPort 
) const
protected

Definition at line 172 of file download.cxx.

References getInt32Value(), getStringValue(), m_xContext, o3tl::starts_with(), and u.

Referenced by start().

◆ start()

bool Download::start ( const OUString &  rURL,
const OUString &  rFile,
const OUString &  rDestinationDir 
)

Definition at line 335 of file download.cxx.

References aURL, curl_run(), getProxyForURL(), m_aCondition, m_aHandler, and nIndex.

◆ stop()

void Download::stop ( )

Definition at line 422 of file download.cxx.

References m_aCondition.

Member Data Documentation

◆ m_aCondition

osl::Condition Download::m_aCondition
private

Definition at line 75 of file download.hxx.

Referenced by start(), and stop().

◆ m_aHandler

const rtl::Reference<DownloadInteractionHandler> Download::m_aHandler
private

Definition at line 77 of file download.hxx.

Referenced by start().

◆ m_xContext

const css::uno::Reference<css::uno::XComponentContext>& Download::m_xContext
private

Definition at line 76 of file download.hxx.

Referenced by getProxyForURL().


The documentation for this class was generated from the following files: