Branch libreoffice-5-0-4
[LibreOffice.git] / ucbhelper / source / provider / authenticationfallback.cxx
blob5d8d0e27589409fd6d84a4647fd48f340414928b
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #include <ucbhelper/authenticationfallback.hxx>
12 using namespace com::sun::star;
13 using namespace ucbhelper;
15 AuthenticationFallbackRequest::AuthenticationFallbackRequest(
16 const OUString & rInstructions,
17 const OUString & rURL )
20 ucb::AuthenticationFallbackRequest aRequest;
21 aRequest.instructions = rInstructions;
22 aRequest.url = rURL;
24 setRequest( uno::makeAny( aRequest ) );
25 m_xAuthFallback = new InteractionAuthFallback( this );
27 uno::Sequence<
28 uno::Reference< task::XInteractionContinuation > > aContinuations( 2 );
29 aContinuations[ 0 ] = new InteractionAbort( this );
30 aContinuations[ 1 ] = m_xAuthFallback.get( );
32 setContinuations( aContinuations );
35 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */