bump product version to 5.0.4.1
[LibreOffice.git] / comphelper / source / misc / interaction.cxx
blob9c96c3e526bc88cc854f3d28e8ab543d1bdcb63e
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <comphelper/interaction.hxx>
21 #include <osl/diagnose.h>
24 namespace comphelper
28 using namespace ::com::sun::star::uno;
29 using namespace ::com::sun::star::task;
31 void SAL_CALL OInteractionPassword::setPassword( const OUString& _Password ) throw (RuntimeException, std::exception)
33 m_sPassword = _Password;
37 OUString SAL_CALL OInteractionPassword::getPassword( ) throw (RuntimeException, std::exception)
39 return m_sPassword;
42 OInteractionRequest::OInteractionRequest(const Any& _rRequestDescription)
43 :m_aRequest(_rRequestDescription)
48 void OInteractionRequest::addContinuation(const Reference< XInteractionContinuation >& _rxContinuation)
50 OSL_ENSURE(_rxContinuation.is(), "OInteractionRequest::addContinuation: invalid argument!");
51 if (_rxContinuation.is())
53 sal_Int32 nOldLen = m_aContinuations.getLength();
54 m_aContinuations.realloc(nOldLen + 1);
55 m_aContinuations[nOldLen] = _rxContinuation;
60 Any SAL_CALL OInteractionRequest::getRequest( ) throw(RuntimeException, std::exception)
62 return m_aRequest;
66 Sequence< Reference< XInteractionContinuation > > SAL_CALL OInteractionRequest::getContinuations( ) throw(RuntimeException, std::exception)
68 return m_aContinuations;
72 } // namespace comphelper
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */