Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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 : */
9 :
10 : #include <ucbhelper/authenticationfallback.hxx>
11 :
12 : using namespace com::sun::star;
13 : using namespace ucbhelper;
14 :
15 0 : AuthenticationFallbackRequest::AuthenticationFallbackRequest(
16 : const OUString & rInstructions,
17 0 : const OUString & rURL )
18 : {
19 :
20 0 : ucb::AuthenticationFallbackRequest aRequest;
21 0 : aRequest.instructions = rInstructions;
22 0 : aRequest.url = rURL;
23 :
24 0 : setRequest( uno::makeAny( aRequest ) );
25 0 : m_xAuthFallback = new InteractionAuthFallback( this );
26 :
27 : uno::Sequence<
28 0 : uno::Reference< task::XInteractionContinuation > > aContinuations( 2 );
29 0 : aContinuations[ 0 ] = new InteractionAbort( this );
30 0 : aContinuations[ 1 ] = m_xAuthFallback.get( );
31 :
32 0 : setContinuations( aContinuations );
33 0 : }
34 :
35 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|