2010-10-14 08:27:31 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-29 14:02:24 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2000-10-25 11:46:18 +00:00
|
|
|
|
|
|
|
#include <comphelper/interaction.hxx>
|
|
|
|
#include <osl/diagnose.h>
|
|
|
|
|
2014-02-25 17:52:30 +01:00
|
|
|
|
2000-10-25 11:46:18 +00:00
|
|
|
namespace comphelper
|
|
|
|
{
|
2014-02-25 17:52:30 +01:00
|
|
|
|
2000-10-25 11:46:18 +00:00
|
|
|
|
|
|
|
using namespace ::com::sun::star::uno;
|
|
|
|
using namespace ::com::sun::star::task;
|
|
|
|
|
2016-03-09 17:37:29 +01:00
|
|
|
void SAL_CALL OInteractionPassword::setPassword( const OUString& Password ) throw (RuntimeException, std::exception)
|
2008-06-06 13:35:51 +00:00
|
|
|
{
|
2016-03-09 17:37:29 +01:00
|
|
|
m_sPassword = Password;
|
2008-06-06 13:35:51 +00:00
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
OUString SAL_CALL OInteractionPassword::getPassword( ) throw (RuntimeException, std::exception)
|
2008-06-06 13:35:51 +00:00
|
|
|
{
|
|
|
|
return m_sPassword;
|
|
|
|
}
|
|
|
|
|
2000-10-25 11:46:18 +00:00
|
|
|
OInteractionRequest::OInteractionRequest(const Any& _rRequestDescription)
|
|
|
|
:m_aRequest(_rRequestDescription)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-07-27 20:43:53 +02:00
|
|
|
OInteractionRequest::OInteractionRequest(const Any& rRequestDescription,
|
2016-01-28 15:44:38 +02:00
|
|
|
std::vector<Reference<XInteractionContinuation>> const& rContinuations)
|
2015-07-27 20:43:53 +02:00
|
|
|
: m_aRequest(rRequestDescription)
|
|
|
|
, m_aContinuations(rContinuations)
|
|
|
|
{
|
|
|
|
}
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2000-10-25 11:46:18 +00:00
|
|
|
void OInteractionRequest::addContinuation(const Reference< XInteractionContinuation >& _rxContinuation)
|
|
|
|
{
|
2001-03-22 12:33:25 +00:00
|
|
|
OSL_ENSURE(_rxContinuation.is(), "OInteractionRequest::addContinuation: invalid argument!");
|
2000-10-25 11:46:18 +00:00
|
|
|
if (_rxContinuation.is())
|
|
|
|
{
|
2016-01-28 15:44:38 +02:00
|
|
|
m_aContinuations.push_back(_rxContinuation);
|
2000-10-25 11:46:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
Any SAL_CALL OInteractionRequest::getRequest( ) throw(RuntimeException, std::exception)
|
2000-10-25 11:46:18 +00:00
|
|
|
{
|
|
|
|
return m_aRequest;
|
|
|
|
}
|
|
|
|
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
Sequence< Reference< XInteractionContinuation > > SAL_CALL OInteractionRequest::getContinuations( ) throw(RuntimeException, std::exception)
|
2000-10-25 11:46:18 +00:00
|
|
|
{
|
2016-01-28 15:44:38 +02:00
|
|
|
return comphelper::containerToSequence(m_aContinuations);
|
2000-10-25 11:46:18 +00:00
|
|
|
}
|
|
|
|
|
2014-02-25 17:52:30 +01:00
|
|
|
|
2000-10-25 11:46:18 +00:00
|
|
|
} // namespace comphelper
|
2014-02-25 17:52:30 +01:00
|
|
|
|
2000-10-25 11:46:18 +00:00
|
|
|
|
2010-10-14 08:27:31 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|