1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_COMPHELPER_SIMPLEFILEACCESSINTERACTION_HXX
11 #define INCLUDED_COMPHELPER_SIMPLEFILEACCESSINTERACTION_HXX
13 #include <sal/config.h>
14 #include <ucbhelper/interceptedinteraction.hxx>
15 #include <com/sun/star/task/XInteractionHandler.hpp>
16 #include <comphelper/comphelperdllapi.h>
18 namespace comphelper
{
19 /** An interaction handler wrapper for simple file access.
21 This wrapper is to be used together with XSimpleFileAccess when
22 you want to avoid the error messages displayed when accessing a file (the messages activated
23 by ucphelper::cancelCommandExecution).
25 This wrapper is especially useful when you need to access a Web/DAV connection
26 enabling https certificate validation and optionally enabling the authentication
27 dialog that may be needed in these operations.
30 Used handler, always needed.
31 It will be used for Certificate Validation dialog or authentication dialog.
32 The authentication is used in Web/DAV access when the server requests credentials to be accessed.
34 class COMPHELPER_DLLPUBLIC SimpleFileAccessInteraction
: public ::ucbhelper::InterceptedInteraction
38 SimpleFileAccessInteraction(const css::uno::Reference
< css::task::XInteractionHandler
>& xHandler
);
39 virtual ~SimpleFileAccessInteraction() override
;
43 virtual ucbhelper::InterceptedInteraction::EInterceptionState
intercepted(const ::ucbhelper::InterceptedInteraction::InterceptedRequest
& aRequest
,
44 const css::uno::Reference
< css::task::XInteractionRequest
>& xRequest
) override
;
50 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */