LibreOffice Module comphelper (master) 1
|
An interaction handler wrapper for simple file access. More...
#include <simplefileaccessinteraction.hxx>
Public Member Functions | |
SimpleFileAccessInteraction (const css::uno::Reference< css::task::XInteractionHandler > &xHandler) | |
virtual | ~SimpleFileAccessInteraction () override |
Public Member Functions inherited from ucbhelper::InterceptedInteraction | |
InterceptedInteraction () | |
void | setInterceptedHandler (const css::uno::Reference< css::task::XInteractionHandler > &xInterceptedHandler) |
void | setInterceptions (::std::vector< InterceptedRequest > &&lInterceptions) |
virtual void SAL_CALL | handle (const css::uno::Reference< css::task::XInteractionRequest > &xRequest) override |
Private Member Functions | |
virtual ucbhelper::InterceptedInteraction::EInterceptionState | intercepted (const ::ucbhelper::InterceptedInteraction::InterceptedRequest &aRequest, const css::uno::Reference< css::task::XInteractionRequest > &xRequest) override |
Additional Inherited Members | |
Public Types inherited from ucbhelper::InterceptedInteraction | |
enum | EInterceptionState |
Static Public Member Functions inherited from ucbhelper::InterceptedInteraction | |
static css::uno::Reference< css::task::XInteractionContinuation > | extractContinuation (const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > &lContinuations, const css::uno::Type &aType) |
Public Attributes inherited from ucbhelper::InterceptedInteraction | |
E_NOT_INTERCEPTED | |
E_NO_CONTINUATION_FOUND | |
E_INTERCEPTED | |
Protected Member Functions inherited from ucbhelper::InterceptedInteraction | |
virtual EInterceptionState | intercepted (const InterceptedRequest &rRequest, const css::uno::Reference< css::task::XInteractionRequest > &xOrgRequest) |
Protected Attributes inherited from ucbhelper::InterceptedInteraction | |
css::uno::Reference< css::task::XInteractionHandler > | m_xInterceptedHandler |
::std::vector< InterceptedRequest > | m_lInterceptions |
An interaction handler wrapper for simple file access.
This wrapper is to be used together with XSimpleFileAccess when you want to avoid the error messages displayed when accessing a file (the messages activated by ucphelper::cancelCommandExecution).
This wrapper is especially useful when you need to access a Web/DAV connection enabling https certificate validation and optionally enabling the authentication dialog that may be needed in these operations.
xHandler | Used handler, always needed. It will be used for Certificate Validation dialog or authentication dialog. The authentication is used in Web/DAV access when the server requests credentials to be accessed. |
Definition at line 36 of file simplefileaccessinteraction.hxx.
comphelper::SimpleFileAccessInteraction::SimpleFileAccessInteraction | ( | const css::uno::Reference< css::task::XInteractionHandler > & | xHandler | ) |
Definition at line 32 of file simplefileaccessinteraction.cxx.
References cppu::UnoType< typename T >::get(), comphelper::HANDLE_AUTHENTICATIONREQUEST, comphelper::HANDLE_CERTIFICATEREQUEST, comphelper::HANDLE_INTERACTIVEIOEXCEPTION, comphelper::HANDLE_INTERACTIVENETWORKEXCEPTION, comphelper::HANDLE_UNSUPPORTEDDATASINKEXCEPTION, ucbhelper::InterceptedInteraction::setInterceptedHandler(), and ucbhelper::InterceptedInteraction::setInterceptions().
|
overridevirtual |
Definition at line 60 of file simplefileaccessinteraction.cxx.
|
overrideprivatevirtual |
Definition at line 62 of file simplefileaccessinteraction.cxx.
References ucbhelper::InterceptedInteraction::extractContinuation(), comphelper::HANDLE_AUTHENTICATIONREQUEST, comphelper::HANDLE_CERTIFICATEREQUEST, comphelper::HANDLE_INTERACTIVEIOEXCEPTION, comphelper::HANDLE_INTERACTIVENETWORKEXCEPTION, comphelper::HANDLE_UNSUPPORTEDDATASINKEXCEPTION, and ucbhelper::InterceptedInteraction::m_xInterceptedHandler.