LibreOffice Module ucbhelper (master)  1
authenticationfallback.cxx
Go to the documentation of this file.
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 
11 #include <com/sun/star/ucb/AuthenticationFallbackRequest.hpp>
12 
13 using namespace com::sun::star;
14 using namespace ucbhelper;
15 
16 AuthenticationFallbackRequest::AuthenticationFallbackRequest(
17  const OUString & rInstructions,
18  const OUString & rURL )
19 {
20 
21  ucb::AuthenticationFallbackRequest aRequest;
22  aRequest.instructions = rInstructions;
23  aRequest.url = rURL;
24 
25  setRequest( uno::makeAny( aRequest ) );
26  m_xAuthFallback = new InteractionAuthFallback( this );
27 
28  uno::Sequence<
29  uno::Reference< task::XInteractionContinuation > > aContinuations( 2 );
30  aContinuations[ 0 ] = new InteractionAbort( this );
31  aContinuations[ 1 ] = m_xAuthFallback.get( );
32 
33  setContinuations( aContinuations );
34 }
35 
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Any makeAny(Color const &value)
This class implements a standard interaction continuation, namely the interface XInteractionAbort.