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>
|
|
|
|
|
|
|
|
//.........................................................................
|
|
|
|
namespace comphelper
|
|
|
|
{
|
|
|
|
//.........................................................................
|
|
|
|
|
|
|
|
using namespace ::com::sun::star::uno;
|
|
|
|
using namespace ::com::sun::star::task;
|
|
|
|
|
2008-06-06 13:35:51 +00:00
|
|
|
//=========================================================================
|
|
|
|
//= OInteractionPassword
|
|
|
|
//=========================================================================
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2014-02-25 21:31:58 +01:00
|
|
|
void SAL_CALL OInteractionPassword::setPassword( const OUString& _Password ) throw (RuntimeException, std::exception)
|
2008-06-06 13:35:51 +00:00
|
|
|
{
|
2011-12-14 14:43:58 -05: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
|
|
|
|
//=========================================================================
|
2014-02-22 21:20:15 +01:00
|
|
|
|
2000-10-25 11:46:18 +00:00
|
|
|
OInteractionRequest::OInteractionRequest(const Any& _rRequestDescription)
|
|
|
|
:m_aRequest(_rRequestDescription)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
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())
|
|
|
|
{
|
|
|
|
sal_Int32 nOldLen = m_aContinuations.getLength();
|
|
|
|
m_aContinuations.realloc(nOldLen + 1);
|
|
|
|
m_aContinuations[nOldLen] = _rxContinuation;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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
|
|
|
{
|
|
|
|
return m_aContinuations;
|
|
|
|
}
|
|
|
|
|
|
|
|
//.........................................................................
|
|
|
|
} // namespace comphelper
|
|
|
|
//.........................................................................
|
|
|
|
|
|
|
|
|
2010-10-14 08:27:31 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|