11#include <com/sun/star/task/XInteractionAbort.hpp>
12#include <com/sun/star/task/XInteractionApprove.hpp>
13#include <com/sun/star/ucb/AuthenticationRequest.hpp>
14#include <com/sun/star/ucb/CertificateValidationRequest.hpp>
15#include <com/sun/star/ucb/InteractiveIOException.hpp>
16#include <com/sun/star/ucb/InteractiveNetworkException.hpp>
17#include <com/sun/star/ucb/UnsupportedDataSinkException.hpp>
33 const css::uno::Reference<css::task::XInteractionHandler>& xHandler)
35 std::vector<::ucbhelper::InterceptedInteraction::InterceptedRequest> lInterceptions{
37 css::uno::Any(css::ucb::InteractiveIOException()),
40 css::uno::Any(css::ucb::UnsupportedDataSinkException()),
44 css::uno::Any(css::ucb::InteractiveNetworkException()),
49 css::uno::Any(css::ucb::CertificateValidationRequest()),
52 css::uno::Any(css::ucb::AuthenticationRequest()),
63 const ::ucbhelper::InterceptedInteraction::InterceptedRequest& aRequest,
64 const css::uno::Reference<css::task::XInteractionRequest>& xRequest)
67 switch (aRequest.Handle)
83 return ::ucbhelper::InterceptedInteraction::E_INTERCEPTED;
96 return ::ucbhelper::InterceptedInteraction::E_INTERCEPTED;
108 css::uno::Reference<css::task::XInteractionContinuation> xAbort
112 return ::ucbhelper::InterceptedInteraction::E_NO_CONTINUATION_FOUND;
113 return ::ucbhelper::InterceptedInteraction::E_INTERCEPTED;
116 return ::ucbhelper::InterceptedInteraction::E_INTERCEPTED;
virtual ~SimpleFileAccessInteraction() override
virtual ucbhelper::InterceptedInteraction::EInterceptionState intercepted(const ::ucbhelper::InterceptedInteraction::InterceptedRequest &aRequest, const css::uno::Reference< css::task::XInteractionRequest > &xRequest) override
SimpleFileAccessInteraction(const css::uno::Reference< css::task::XInteractionHandler > &xHandler)
css::uno::Type const & get()
css::uno::Reference< css::task::XInteractionHandler > m_xInterceptedHandler
void setInterceptedHandler(const css::uno::Reference< css::task::XInteractionHandler > &xInterceptedHandler)
void setInterceptions(::std::vector< InterceptedRequest > &&lInterceptions)
static css::uno::Reference< css::task::XInteractionContinuation > extractContinuation(const css::uno::Sequence< css::uno::Reference< css::task::XInteractionContinuation > > &lContinuations, const css::uno::Type &aType)
const sal_Int32 HANDLE_INTERACTIVENETWORKEXCEPTION
Will handle com::sun::star::ucb::InteractiveNetworkException.
const sal_Int32 HANDLE_AUTHENTICATIONREQUEST
Will handle com::sun::star::ucb::AuthenticationRequest.
const sal_Int32 HANDLE_INTERACTIVEIOEXCEPTION
Will handle com::sun::star::ucb::InteractiveIOException and derived classes.
const sal_Int32 HANDLE_CERTIFICATEREQUEST
Will handle com::sun::star::ucb::CertificateValidationRequest.
const sal_Int32 HANDLE_UNSUPPORTEDDATASINKEXCEPTION
Will handle com::sun::star::ucb::UnsupportedDataSinkException.