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 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 :
20 : #include <comphelper/interaction.hxx>
21 : #include <osl/diagnose.h>
22 :
23 :
24 : namespace comphelper
25 : {
26 :
27 :
28 : using namespace ::com::sun::star::uno;
29 : using namespace ::com::sun::star::task;
30 :
31 0 : void SAL_CALL OInteractionPassword::setPassword( const OUString& _Password ) throw (RuntimeException, std::exception)
32 : {
33 0 : m_sPassword = _Password;
34 0 : }
35 :
36 :
37 0 : OUString SAL_CALL OInteractionPassword::getPassword( ) throw (RuntimeException, std::exception)
38 : {
39 0 : return m_sPassword;
40 : }
41 :
42 2 : OInteractionRequest::OInteractionRequest(const Any& _rRequestDescription)
43 2 : :m_aRequest(_rRequestDescription)
44 : {
45 2 : }
46 :
47 :
48 3 : void OInteractionRequest::addContinuation(const Reference< XInteractionContinuation >& _rxContinuation)
49 : {
50 : OSL_ENSURE(_rxContinuation.is(), "OInteractionRequest::addContinuation: invalid argument!");
51 3 : if (_rxContinuation.is())
52 : {
53 3 : sal_Int32 nOldLen = m_aContinuations.getLength();
54 3 : m_aContinuations.realloc(nOldLen + 1);
55 3 : m_aContinuations[nOldLen] = _rxContinuation;
56 : }
57 3 : }
58 :
59 :
60 1 : Any SAL_CALL OInteractionRequest::getRequest( ) throw(RuntimeException, std::exception)
61 : {
62 1 : return m_aRequest;
63 : }
64 :
65 :
66 1 : Sequence< Reference< XInteractionContinuation > > SAL_CALL OInteractionRequest::getContinuations( ) throw(RuntimeException, std::exception)
67 : {
68 1 : return m_aContinuations;
69 : }
70 :
71 :
72 : } // namespace comphelper
73 :
74 :
75 :
76 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|