LCOV - code coverage report
Current view: top level - ucb/source/ucp/ftp - ftpintreq.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 31 0.0 %
Date: 2014-04-14 Functions: 0 9 0.0 %
Legend: Lines: hit not hit

          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             : 
      21             : #include <com/sun/star/ucb/UnsupportedNameClashException.hpp>
      22             : #include <com/sun/star/ucb/NameClash.hpp>
      23             : #include "ftpintreq.hxx"
      24             : 
      25             : using namespace cppu;
      26             : using namespace com::sun::star;
      27             : using namespace com::sun::star::uno;
      28             : using namespace com::sun::star::lang;
      29             : using namespace com::sun::star::ucb;
      30             : using namespace com::sun::star::task;
      31             : using namespace ftp;
      32             : 
      33             : 
      34           0 : XInteractionApproveImpl::XInteractionApproveImpl()
      35           0 :     : m_bSelected(false)
      36             : {
      37           0 : }
      38             : 
      39           0 : void SAL_CALL XInteractionApproveImpl::select()
      40             :     throw (RuntimeException,
      41             :            std::exception)
      42             : {
      43           0 :     m_bSelected = true;
      44           0 : }
      45             : 
      46             : 
      47           0 : bool XInteractionApproveImpl::isSelected() const
      48             : {
      49           0 :     return m_bSelected;
      50             : }
      51             : 
      52             : 
      53             : // XInteractionDisapproveImpl
      54             : 
      55           0 : XInteractionDisapproveImpl::XInteractionDisapproveImpl()
      56           0 :     : m_bSelected(false)
      57             : {
      58           0 : }
      59             : 
      60           0 : void SAL_CALL XInteractionDisapproveImpl::select()
      61             :     throw (RuntimeException,
      62             :            std::exception)
      63             : {
      64           0 :     m_bSelected = true;
      65           0 : }
      66             : 
      67             : // XInteractionRequestImpl
      68             : 
      69           0 : XInteractionRequestImpl::XInteractionRequestImpl(const OUString& aName)
      70           0 :     : p1( new XInteractionApproveImpl )
      71           0 :     , p2( new XInteractionDisapproveImpl )
      72             :     , m_aName(aName)
      73           0 :     , m_aSeq( 2 )
      74             : {
      75           0 :     m_aSeq[0] = Reference<XInteractionContinuation>(p1);
      76           0 :     m_aSeq[1] = Reference<XInteractionContinuation>(p2);
      77           0 : }
      78             : 
      79           0 : Any SAL_CALL XInteractionRequestImpl::getRequest(  )
      80             :     throw (RuntimeException,
      81             :            std::exception)
      82             : {
      83           0 :     Any aAny;
      84           0 :     UnsupportedNameClashException excep;
      85           0 :     excep.NameClash = NameClash::ERROR;
      86           0 :     aAny <<= excep;
      87           0 :     return aAny;
      88             : }
      89             : 
      90           0 : Sequence<Reference<XInteractionContinuation > > SAL_CALL XInteractionRequestImpl::getContinuations()
      91             :     throw (RuntimeException,
      92             :            std::exception)
      93             : {
      94           0 :     return m_aSeq;
      95             : }
      96             : 
      97           0 : bool XInteractionRequestImpl::approved() const
      98             : {
      99           0 :     return p1->isSelected();
     100             : }
     101             : 
     102             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10