LCOV - code coverage report
Current view: top level - ucb/source/ucp/ftp - ftpintreq.cxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 0 29 0.0 %
Date: 2014-11-03 Functions: 0 8 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             : 
      48             : 
      49             : // XInteractionDisapproveImpl
      50             : 
      51           0 : XInteractionDisapproveImpl::XInteractionDisapproveImpl()
      52           0 :     : m_bSelected(false)
      53             : {
      54           0 : }
      55             : 
      56           0 : void SAL_CALL XInteractionDisapproveImpl::select()
      57             :     throw (RuntimeException,
      58             :            std::exception)
      59             : {
      60           0 :     m_bSelected = true;
      61           0 : }
      62             : 
      63             : // XInteractionRequestImpl
      64             : 
      65           0 : XInteractionRequestImpl::XInteractionRequestImpl()
      66           0 :     : p1( new XInteractionApproveImpl )
      67           0 :     , p2( new XInteractionDisapproveImpl )
      68           0 :     , m_aSeq( 2 )
      69             : {
      70           0 :     m_aSeq[0] = Reference<XInteractionContinuation>(p1);
      71           0 :     m_aSeq[1] = Reference<XInteractionContinuation>(p2);
      72           0 : }
      73             : 
      74           0 : Any SAL_CALL XInteractionRequestImpl::getRequest(  )
      75             :     throw (RuntimeException,
      76             :            std::exception)
      77             : {
      78           0 :     Any aAny;
      79           0 :     UnsupportedNameClashException excep;
      80           0 :     excep.NameClash = NameClash::ERROR;
      81           0 :     aAny <<= excep;
      82           0 :     return aAny;
      83             : }
      84             : 
      85           0 : Sequence<Reference<XInteractionContinuation > > SAL_CALL XInteractionRequestImpl::getContinuations()
      86             :     throw (RuntimeException,
      87             :            std::exception)
      88             : {
      89           0 :     return m_aSeq;
      90             : }
      91             : 
      92           0 : bool XInteractionRequestImpl::approved() const
      93             : {
      94           0 :     return p1->isSelected();
      95             : }
      96             : 
      97             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10