LCOV - code coverage report
Current view: top level - libreoffice/ucb/source/ucp/ftp - ftpcontentidentifier.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 35 0.0 %
Date: 2012-12-27 Functions: 0 10 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             : /**************************************************************************
      22             :                                 TODO
      23             :  **************************************************************************
      24             : 
      25             :  *************************************************************************/
      26             : #include "ftpcontentidentifier.hxx"
      27             : #include "ftpcontentprovider.hxx"
      28             : 
      29             : using namespace ftp;
      30             : using namespace com::sun::star::uno;
      31             : using namespace com::sun::star::ucb;
      32             : using namespace com::sun::star::lang;
      33             : 
      34             : 
      35           0 : FTPContentIdentifier::FTPContentIdentifier(
      36             :     const rtl::OUString& ident
      37             : )
      38           0 :     : m_ident(ident)
      39             : {
      40           0 : }
      41             : 
      42             : 
      43           0 : FTPContentIdentifier::~FTPContentIdentifier()
      44             : {
      45           0 : }
      46             : 
      47             : 
      48             : Any SAL_CALL
      49           0 : FTPContentIdentifier::queryInterface(
      50             :     const Type& rType
      51             : )
      52             :     throw(
      53             :         RuntimeException
      54             :     )
      55             : {
      56             :     Any aRet =
      57             :         ::cppu::queryInterface(rType,
      58             :                                (static_cast< XTypeProvider* >(this)),
      59           0 :                                (static_cast< XContentIdentifier* >(this)));
      60             : 
      61           0 :     return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
      62             : }
      63             : 
      64             : 
      65           0 : void SAL_CALL FTPContentIdentifier::acquire( void ) throw() {
      66           0 :     OWeakObject::acquire();
      67           0 : }
      68             : 
      69             : 
      70           0 : void SAL_CALL FTPContentIdentifier::release( void ) throw() {
      71           0 :     OWeakObject::release();
      72           0 : }
      73             : 
      74             : 
      75             : Sequence<sal_Int8> SAL_CALL
      76           0 : FTPContentIdentifier::getImplementationId()
      77             :     throw(RuntimeException)
      78             : {
      79             :     static cppu::OImplementationId* pId = NULL;
      80           0 :     if(!pId)
      81             :     {
      82           0 :         osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
      83           0 :         if ( !pId )
      84             :         {
      85           0 :             static cppu::OImplementationId id( sal_False );
      86           0 :             pId = &id;
      87           0 :         }
      88             :     }
      89           0 :     return (*pId).getImplementationId();
      90             : }
      91             : 
      92             : 
      93             : Sequence<Type> SAL_CALL
      94           0 : FTPContentIdentifier::getTypes(
      95             :     void )
      96             :     throw(RuntimeException)
      97             : {
      98             :     static cppu::OTypeCollection* pCollection = NULL;
      99           0 :     if ( !pCollection ) {
     100           0 :         osl::Guard< osl::Mutex > aGuard( osl::Mutex::getGlobalMutex() );
     101           0 :         if ( !pCollection )
     102             :         {
     103             :             static cppu::OTypeCollection collection(
     104             :                 getCppuType(
     105           0 :                     static_cast<Reference<XTypeProvider>*>(0)),
     106             :                 getCppuType(
     107           0 :                     static_cast<Reference<XContentIdentifier>*>(0)));
     108           0 :             pCollection = &collection;
     109           0 :         }
     110             :     }
     111           0 :     return (*pCollection).getTypes();
     112             : }
     113             : 
     114             : 
     115             : rtl::OUString SAL_CALL
     116           0 : FTPContentIdentifier::getContentIdentifier(
     117             : )
     118             :     throw (
     119             :         com::sun::star::uno::RuntimeException
     120             :     )
     121             : {
     122           0 :     return m_ident;
     123             : }
     124             : 
     125             : 
     126             : rtl::OUString SAL_CALL
     127           0 : FTPContentIdentifier::getContentProviderScheme(
     128             : )
     129             :     throw (
     130             :         com::sun::star::uno::RuntimeException
     131             :     )
     132             : {
     133           0 :     return rtl::OUString("ftp");
     134             : }
     135             : 
     136             : 
     137             : 
     138             : 
     139             : 
     140             : 
     141             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10