LCOV - code coverage report
Current view: top level - libreoffice/ucb/source/ucp/ftp - ftpcontentcaps.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 22 0.0 %
Date: 2012-12-27 Functions: 0 4 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/beans/Property.hpp>
      22             : #include <com/sun/star/beans/PropertyAttribute.hpp>
      23             : #include <com/sun/star/beans/PropertyValue.hpp>
      24             : #include <com/sun/star/ucb/CommandInfo.hpp>
      25             : #include <com/sun/star/ucb/OpenCommandArgument2.hpp>
      26             : #include <com/sun/star/ucb/InsertCommandArgument.hpp>
      27             : #include <com/sun/star/util/DateTime.hpp>
      28             : #include <com/sun/star/uno/Sequence.hxx>
      29             : 
      30             : #include "ftpcontent.hxx"
      31             : 
      32             : using namespace com::sun::star;
      33             : using namespace ftp;
      34             : 
      35             : // virtual
      36           0 : uno::Sequence< beans::Property > FTPContent::getProperties(
      37             :     const uno::Reference< ucb::XCommandEnvironment > & /*xEnv*/)
      38             : {
      39             :     #define PROPS_COUNT 8
      40             : 
      41             :     static const beans::Property aPropsInfoTable[] =
      42             :     {
      43             :         beans::Property(
      44             :             rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "ContentType" ) ),
      45             :             -1,
      46           0 :             getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
      47             :             beans::PropertyAttribute::BOUND
      48             :             | beans::PropertyAttribute::READONLY
      49             :         ),
      50             :         beans::Property(
      51             :             rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsDocument" ) ),
      52             :             -1,
      53           0 :             getCppuBooleanType(),
      54             :             beans::PropertyAttribute::BOUND
      55             :             | beans::PropertyAttribute::READONLY
      56             :         ),
      57             :         beans::Property(
      58             :             rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsFolder" ) ),
      59             :             -1,
      60           0 :             getCppuBooleanType(),
      61             :             beans::PropertyAttribute::BOUND
      62             :             | beans::PropertyAttribute::READONLY
      63             :         ),
      64             :         beans::Property(
      65             :             rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Title" ) ),
      66             :             -1,
      67           0 :             getCppuType( static_cast< const rtl::OUString * >( 0 ) ),
      68             :             beans::PropertyAttribute::BOUND
      69             :             //  | beans::PropertyAttribute::READONLY
      70             :         ),
      71             :         beans::Property(
      72             :             rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Size" ) ),
      73             :             -1,
      74           0 :             getCppuType( static_cast< const sal_Int64 * >( 0 ) ),
      75             :             beans::PropertyAttribute::BOUND
      76             :             | beans::PropertyAttribute::READONLY
      77             :         ),
      78             :         beans::Property(
      79             :             rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "DateCreated" ) ),
      80             :             -1,
      81           0 :             getCppuType( static_cast< util::DateTime * >( 0 ) ),
      82             :             beans::PropertyAttribute::BOUND
      83             :             | beans::PropertyAttribute::READONLY
      84             :         ),
      85             :         beans::Property(
      86             :             rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "IsReadOnly" ) ),
      87             :             -1,
      88           0 :             getCppuBooleanType(),
      89             :             beans::PropertyAttribute::BOUND
      90             :             | beans::PropertyAttribute::READONLY
      91             :         ),
      92             :         beans::Property(
      93             :             rtl::OUString( RTL_CONSTASCII_USTRINGPARAM(
      94             :                 "CreatableContentsInfo" ) ),
      95             :             -1,
      96             :             getCppuType(
      97           0 :                 static_cast< const uno::Sequence< ucb::ContentInfo > * >( 0 ) ),
      98             :             beans::PropertyAttribute::BOUND
      99             :             | beans::PropertyAttribute::READONLY
     100             :         )
     101           0 :     };
     102             : 
     103           0 :     return uno::Sequence< beans::Property >( aPropsInfoTable, PROPS_COUNT );
     104             : }
     105             : 
     106             : //=========================================================================
     107             : // virtual
     108           0 : uno::Sequence< ucb::CommandInfo > FTPContent::getCommands(
     109             :     const uno::Reference< ucb::XCommandEnvironment > & /*xEnv*/ )
     110             : {
     111             : // osl::MutexGuard aGuard( m_aMutex );
     112             : 
     113             :     //=================================================================
     114             :     //
     115             :     // Supported commands
     116             :     //
     117             :     //=================================================================
     118             : 
     119             :     #define COMMAND_COUNT 8
     120             : 
     121             :     static const ucb::CommandInfo aCommandInfoTable[] =
     122             :     {
     123             :         ///////////////////////////////////////////////////////////////
     124             :         // Required commands
     125             :         ///////////////////////////////////////////////////////////////
     126             :         ucb::CommandInfo(
     127             :             rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getCommandInfo" ) ),
     128             :             -1,
     129           0 :             getCppuVoidType()
     130             :         ),
     131             :         ucb::CommandInfo(
     132             :             rtl::OUString(
     133             :                 RTL_CONSTASCII_USTRINGPARAM( "getPropertySetInfo" ) ),
     134             :             -1,
     135           0 :             getCppuVoidType()
     136             :         ),
     137             :         ucb::CommandInfo(
     138             :             rtl::OUString(
     139             :                 RTL_CONSTASCII_USTRINGPARAM( "getPropertyValues" ) ),
     140             :             -1,
     141             :             getCppuType(
     142           0 :                 static_cast< uno::Sequence< beans::Property > * >( 0 ) )
     143             :         ),
     144             :         ucb::CommandInfo(
     145             :             rtl::OUString(
     146             :                 RTL_CONSTASCII_USTRINGPARAM( "setPropertyValues" ) ),
     147             :             -1,
     148             :             getCppuType(
     149           0 :                 static_cast< uno::Sequence< beans::PropertyValue > * >( 0 ) )
     150             :         ),
     151             :         ucb::CommandInfo(
     152             :             rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "open" ) ),
     153             :             -1,
     154             :             getCppuType(
     155           0 :                 static_cast< ucb::OpenCommandArgument2 * >( 0 ) )
     156             :         ),
     157             :         ucb::CommandInfo(
     158             :             rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "insert" ) ),
     159             :             -1,
     160             :             getCppuType(
     161           0 :                 static_cast< ucb::InsertCommandArgument * >( 0 ) )
     162             :         ),
     163             :         ucb::CommandInfo(
     164             :             rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "delete" ) ),
     165             :             -1,
     166           0 :             getCppuBooleanType()
     167             :         ),
     168             :         ucb::CommandInfo(
     169             :             rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "createNewContent" ) ),
     170             :             -1,
     171           0 :             getCppuType( static_cast< ucb::ContentInfo * >( 0 ) )
     172             :         )
     173           0 :     };
     174             : 
     175           0 :     return uno::Sequence< ucb::CommandInfo >( aCommandInfoTable, COMMAND_COUNT );
     176             : }
     177             : 
     178             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10