LCOV - code coverage report
Current view: top level - libreoffice/ucb/source/ucp/ftp - ftpintreq.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 3 0.0 %
Date: 2012-12-27 Functions: 0 6 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             : #ifndef _FTP_FTPINTREQ_HXX
      21             : #define _FTP_FTPINTREQ_HXX
      22             : 
      23             : #include <cppuhelper/weak.hxx>
      24             : #include <ucbhelper/macros.hxx>
      25             : #include <rtl/ustring.hxx>
      26             : #include <com/sun/star/uno/XInterface.hpp>
      27             : #include <com/sun/star/lang/XTypeProvider.hpp>
      28             : #include <com/sun/star/task/XInteractionDisapprove.hpp>
      29             : #include <com/sun/star/task/XInteractionApprove.hpp>
      30             : #include <com/sun/star/task/XInteractionRequest.hpp>
      31             : 
      32             : 
      33             : namespace ftp {
      34             : 
      35             : 
      36           0 :     class XInteractionApproveImpl
      37             :         : public cppu::OWeakObject,
      38             :           public com::sun::star::lang::XTypeProvider,
      39             :           public com::sun::star::task::XInteractionApprove
      40             :     {
      41             :     public:
      42             : 
      43             :         XInteractionApproveImpl();
      44             : 
      45             :         virtual com::sun::star::uno::Any SAL_CALL
      46             :         queryInterface(
      47             :             const com::sun::star::uno::Type& rType )
      48             :             throw( com::sun::star::uno::RuntimeException);
      49             : 
      50             :         virtual void SAL_CALL
      51             :         acquire(
      52             :             void )
      53             :             throw();
      54             : 
      55             :         virtual void SAL_CALL
      56             :         release(
      57             :             void )
      58             :             throw();
      59             : 
      60             : 
      61             :         // XTypeProvider
      62             : 
      63             :         XTYPEPROVIDER_DECL()
      64             : 
      65             :         virtual void SAL_CALL select()
      66             :             throw (com::sun::star::uno::RuntimeException);
      67             : 
      68             :         bool isSelected() const;
      69             : 
      70             :     private:
      71             : 
      72             :         bool          m_bSelected;
      73             :     };
      74             : 
      75             : 
      76             : 
      77             : 
      78           0 :     class XInteractionDisapproveImpl
      79             :         : public cppu::OWeakObject,
      80             :           public com::sun::star::lang::XTypeProvider,
      81             :           public com::sun::star::task::XInteractionDisapprove
      82             :     {
      83             :     public:
      84             : 
      85             :         XInteractionDisapproveImpl();
      86             : 
      87             :         virtual com::sun::star::uno::Any SAL_CALL
      88             :         queryInterface(
      89             :             const com::sun::star::uno::Type& rType )
      90             :             throw( com::sun::star::uno::RuntimeException);
      91             : 
      92             :         virtual void SAL_CALL
      93             :         acquire(
      94             :             void )
      95             :             throw();
      96             : 
      97             :         virtual void SAL_CALL
      98             :         release(
      99             :             void )
     100             :             throw();
     101             : 
     102             : 
     103             :         // XTypeProvider
     104             : 
     105             :         XTYPEPROVIDER_DECL()
     106             : 
     107             :         virtual void SAL_CALL select()
     108             :             throw (com::sun::star::uno::RuntimeException);
     109             : 
     110             :     private:
     111             : 
     112             :         bool          m_bSelected;
     113             :     };
     114             : 
     115             : 
     116             : 
     117           0 :     class XInteractionRequestImpl
     118             :         : public cppu::OWeakObject,
     119             :           public com::sun::star::lang::XTypeProvider,
     120             :           public com::sun::star::task::XInteractionRequest
     121             :     {
     122             :     public:
     123             : 
     124             :         XInteractionRequestImpl(const rtl::OUString& aName);
     125             : 
     126             :         virtual com::sun::star::uno::Any SAL_CALL
     127             :         queryInterface(
     128             :             const com::sun::star::uno::Type& rType )
     129             :             throw( com::sun::star::uno::RuntimeException);
     130             : 
     131             :         virtual void SAL_CALL
     132             :         acquire(
     133             :             void )
     134             :             throw();
     135             : 
     136             :         virtual void SAL_CALL
     137             :         release(
     138             :             void )
     139             :             throw();
     140             : 
     141             : 
     142             :         // XTypeProvider
     143             : 
     144             :         XTYPEPROVIDER_DECL()
     145             : 
     146             :         com::sun::star::uno::Any SAL_CALL
     147             :         getRequest(  )
     148             :             throw (com::sun::star::uno::RuntimeException);
     149             : 
     150             :         com::sun::star::uno::Sequence<
     151             :             com::sun::star::uno::Reference<
     152             :             com::sun::star::task::XInteractionContinuation > > SAL_CALL
     153             :         getContinuations(  )
     154             :             throw (com::sun::star::uno::RuntimeException);
     155             : 
     156             :         bool approved() const;
     157             : 
     158             :     private:
     159             : 
     160             :         XInteractionApproveImpl* p1;
     161             :         XInteractionDisapproveImpl* p2;
     162             : 
     163             :         rtl::OUString m_aName;
     164             : 
     165             :         com::sun::star::uno::Sequence<
     166             :             com::sun::star::uno::Reference<
     167             :             com::sun::star::task::XInteractionContinuation > > m_aSeq;
     168             :     };
     169             : 
     170             : }
     171             : 
     172             : 
     173             : #endif
     174             : 
     175             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10