summaryrefslogtreecommitdiff
path: root/ucb/source/ucp
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-10 10:46:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-10 21:46:38 +0000
commit7d83d0fe0400b17311c0da5072bf9a4dafb5a250 (patch)
tree9419057af1b880cd4ecb4d696308636eb88b30a2 /ucb/source/ucp
parentb279f8a655bd2e0b82e3096e28efafa63c895ceb (diff)
drop some unbuilt test code
Change-Id: I7e0651ccb248034bafffb1c46e6266fa396eede1
Diffstat (limited to 'ucb/source/ucp')
-rw-r--r--ucb/source/ucp/ftp/test.cxx67
-rw-r--r--ucb/source/ucp/ftp/test.py42
-rw-r--r--ucb/source/ucp/ftp/test_activedatasink.cxx54
-rw-r--r--ucb/source/ucp/ftp/test_activedatasink.hxx83
-rw-r--r--ucb/source/ucp/ftp/test_ftpurl.cxx279
-rw-r--r--ucb/source/ucp/ftp/test_ftpurl.hxx31
-rw-r--r--ucb/source/ucp/ftp/test_multiservicefac.cxx103
-rw-r--r--ucb/source/ucp/ftp/test_multiservicefac.hxx89
8 files changed, 0 insertions, 748 deletions
diff --git a/ucb/source/ucp/ftp/test.cxx b/ucb/source/ucp/ftp/test.cxx
deleted file mode 100644
index 6141e2c52916..000000000000
--- a/ucb/source/ucp/ftp/test.cxx
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-
-/**************************************************************************
- TODO
- **************************************************************************
-
- *************************************************************************/
-
-#include "test_ftpurl.hxx"
-#include <stdio.h>
-#include <unistd.h>
-
-
-
-int main(int argc,char* argv[])
-{
-
- typedef int (*INT_FUNC)(void);
- INT_FUNC tests[] = { test_ftpurl,
- test_ftpparent,
- test_ftpproperties,
- test_ftpopen,
- test_ftplist,
- 0 }; // don't remove ending zero
-
- int err_level = 0;
-
- fprintf(stderr,"------- Testing ----------\n");
-
- int i = -1;
- do {
- INT_FUNC f = tests[++i];
- if(f) {
- err_level += (*f)();
- fprintf(stderr,".");
- } else
- break;
- } while(true);
-
- if(err_level) {
- fprintf(stderr,"number of failed tests: %d\n",err_level);
- fprintf(stderr,"----------------------------------\n");
- } else
- fprintf(stderr,"no errors\n");
-
- return err_level;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/ucb/source/ucp/ftp/test.py b/ucb/source/ucp/ftp/test.py
deleted file mode 100644
index 0f00c527606e..000000000000
--- a/ucb/source/ucp/ftp/test.py
+++ /dev/null
@@ -1,42 +0,0 @@
-#/usr/bin/env python
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed
-# with this work for additional information regarding copyright
-# ownership. The ASF licenses this file to you under the Apache
-# License, Version 2.0 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-import re,os
-
-def grep(pattern,dirname,names):
- for name in names:
- filename = os.path.join(dirname,name)
- if os.path.isfile(filename):
- lines = open(filename,"r").readlines()
- for line in lines:
- if pattern.search(line):
- print filename
- break
-
-
-def find(pattern,directory = "."):
- os.path.walk(directory,grep,re.compile(pattern))
-
-
-if __name__ == "__main__":
- import sys
- if len(sys.argv) == 2:
- find(sys.argv[1])
- elif len(sys.argv) == 2:
- find(sys.argv[2],sys.argv[1])
diff --git a/ucb/source/ucp/ftp/test_activedatasink.cxx b/ucb/source/ucp/ftp/test_activedatasink.cxx
deleted file mode 100644
index 0faa1180de64..000000000000
--- a/ucb/source/ucp/ftp/test_activedatasink.cxx
+++ /dev/null
@@ -1,54 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-
-/**************************************************************************
- TODO
- **************************************************************************
-
- *************************************************************************/
-
-#include "test_activedatasink.hxx"
-
-
-using namespace test_ftp;
-using namespace com::sun::star::uno;
-using namespace com::sun::star::io;
-
-
-Any SAL_CALL Test_ActiveDataSink::queryInterface( const Type& rType ) throw( RuntimeException ) {
- Any aRet = ::cppu::queryInterface(rType,
- (static_cast< XActiveDataSink* >(this)));
-
- return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
-}
-
-
-
-void SAL_CALL Test_ActiveDataSink::acquire( void ) throw() {
- OWeakObject::acquire();
-}
-
-
-
-void SAL_CALL Test_ActiveDataSink::release( void ) throw() {
- OWeakObject::release();
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/ucb/source/ucp/ftp/test_activedatasink.hxx b/ucb/source/ucp/ftp/test_activedatasink.hxx
deleted file mode 100644
index 7d9a90f9679a..000000000000
--- a/ucb/source/ucp/ftp/test_activedatasink.hxx
+++ /dev/null
@@ -1,83 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-/**************************************************************************
- TODO
- **************************************************************************
-
- *************************************************************************/
-#ifndef INCLUDED_UCB_SOURCE_UCP_FTP_TEST_ACTIVEDATASINK_HXX
-#define INCLUDED_UCB_SOURCE_UCP_FTP_TEST_ACTIVEDATASINK_HXX
-
-#include <cppuhelper/weak.hxx>
-#include <cppuhelper/queryinterface.hxx>
-#include <com/sun/star/io/XActiveDataSink.hpp>
-#include <com/sun/star/io/XInputStream.hpp>
-
-namespace test_ftp {
-
-
- class Test_ActiveDataSink
- : public cppu::OWeakObject,
- public com::sun::star::io::XActiveDataSink
- {
- public:
-
- // XInterface
-
- virtual com::sun::star::uno::Any SAL_CALL
- queryInterface( const com::sun::star::uno::Type& rType )
- throw( com::sun::star::uno::RuntimeException );
-
-
- virtual void SAL_CALL acquire( void ) throw();
-
- virtual void SAL_CALL release( void ) throw();
-
-
- // XActiveDataSink
-
- virtual void SAL_CALL
- setInputStream(const com::sun::star::uno::Reference<com::sun::star::io::XInputStream>& aStream )
- throw(com::sun::star::uno::RuntimeException)
- {
- m_xInputStream = aStream;
- }
-
-
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > SAL_CALL
- getInputStream( )
- throw(::com::sun::star::uno::RuntimeException)
- {
- return m_xInputStream;
- }
-
-
- private:
-
- com::sun::star::uno::Reference<com::sun::star::io::XInputStream> m_xInputStream;
-
- };
-
-}
-
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/ucb/source/ucp/ftp/test_ftpurl.cxx b/ucb/source/ucp/ftp/test_ftpurl.cxx
deleted file mode 100644
index b93d2b09afca..000000000000
--- a/ucb/source/ucp/ftp/test_ftpurl.cxx
+++ /dev/null
@@ -1,279 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-
-#include <com/sun/star/ucb/OpenMode.hpp>
-#include "ftpurl.hxx"
-#include "ftploaderthread.hxx"
-#include "ftphandleprovider.hxx"
-#include "debughelper.hxx"
-#include <vector>
-
-struct ServerInfo {
- OUString host;
- OUString port;
- OUString username;
- OUString password;
- OUString account;
-};
-
-
-class FTPHandleProviderI
- : public ftp::FTPHandleProvider {
-
-public:
-
- FTPHandleProviderI()
- : p(new ftp::FTPLoaderThread) {
- }
-
- ~FTPHandleProviderI() {
- delete p;
- }
-
- virtual CURL* handle() {
- return p->handle();
- }
-
- bool forHost(const OUString& host,
- const OUString& port,
- const OUString& username,
- OUString& password,
- OUString& account)
- {
- for(unsigned int i = 0; i < m_ServerInfo.size(); ++i)
- if(host == m_ServerInfo[i].host &&
- port == m_ServerInfo[i].port &&
- username == m_ServerInfo[i].username ) {
- password = m_ServerInfo[i].password;
- account = m_ServerInfo[i].account;
- return true;
- }
-
- return false;
- }
-
- virtual bool setHost(const OUString& host,
- const OUString& port,
- const OUString& username,
- const OUString& password,
- const OUString& account)
- {
- ServerInfo inf;
- inf.host = host;
- inf.port = port;
- inf.username = username;
- inf.password = password;
- inf.account = account;
-
- bool present(false);
- for(unsigned int i = 0; i < m_ServerInfo.size(); ++i)
- if(host == m_ServerInfo[i].host &&
- port == m_ServerInfo[i].port) {
- m_ServerInfo[i] = inf;
- present = true;
- }
-
- if(!present)
- m_ServerInfo.push_back(inf);
-
- return !present;
-
- }
-
-
-private:
-
- std::vector<ServerInfo> m_ServerInfo;
- ftp::FTPLoaderThread *p;
-};
-
-
-
-// Here are some test for the parsing of an url.
-
-#define TESTURL \
-{ \
-ftp::FTPURL url(OUString::createFromAscii(ascii),&prov); \
-if(!url.username().equalsAscii(n)) {\
-++number_of_errors; \
-err_msg("wrong username: ",url.username()); \
-}}
-
-int test_ftpurl(void) {
- const char* name = "test_ftpurl";
- int number_of_errors = 0;
-
- FTPHandleProviderI prov;
- char* ascii,*n,*p;
-
- ascii = "ftp://abi:psswd@host/eins/../drei", n = "abi", p = "psswd";
- TESTURL;
-
- ascii = "ftp://:psswd@host:22/eins/../drei", n = "anonymous", p = "psswd";
- TESTURL;
-
- ascii = "ftp://host/bla/../../test/", n = "anonymous", p = "";
- TESTURL;
-
- if(number_of_errors)
- {
- fprintf(stderr,"errors in %s: %d\n",name,number_of_errors);
- }
- return number_of_errors;
-}
-
-
-int test_ftplist(void) {
- int number_of_errors = 0;
- const char* name = "test_ftplist";
-
- FTPHandleProviderI provider;
-
- ftp::FTPURL url(
- OUString( "ftp://abi:psswd@abi-1/dir"),
- &provider);
-
- std::vector<ftp::FTPDirentry> vec =
- url.list(com::sun::star::ucb::OpenMode::ALL);
-
- if(vec.size() != 3)
- ++number_of_errors;
-
- if(!(vec[0].m_aName == "dir1" && vec[1].m_aName == "dir2" && vec[2].m_aName == "file1" ))
- ++number_of_errors;
-
- if(number_of_errors)
- {
- fprintf(stderr,"errors in %s: %d\n",name,number_of_errors);
- }
- return number_of_errors;
-}
-
-
-#define TESTPARENT \
- { \
- ftp::FTPURL url(OUString::createFromAscii(ascii),&prov); \
- urlStr = url.parent(); \
- if(!urlStr.equalsAscii(expect)) \
- ++number_of_errors; \
- }
-
-
-int test_ftpparent(void) {
- int number_of_errors = 0;
- const char* name = "test_ftpparent";
- FTPHandleProviderI prov;
-
- OUString urlStr;
- char *ascii,*expect;
-
- ascii = "ftp://abi:psswd@abi-1/file";
- expect = "ftp://abi:psswd@abi-1/";
- TESTPARENT;
-
- ascii = "ftp://abi:psswd@abi-1/dir/../file";
- expect = "ftp://abi:psswd@abi-1/";
- TESTPARENT;
-
- ascii = "ftp://abi:psswd@abi-1/..";
- expect = "ftp://abi:psswd@abi-1/../..";
- TESTPARENT;
-
- ascii = "ftp://abi:psswd@abi-1/../../dir";
- expect = "ftp://abi:psswd@abi-1/../..";
- TESTPARENT;
-
- ascii = "ftp://abi:psswd@abi-1/";
- expect = "ftp://abi:psswd@abi-1/..";
- TESTPARENT;
-
- if(number_of_errors)
- {
- fprintf(stderr,"errors in %s: %d\n",name,number_of_errors);
- }
- return number_of_errors;
-}
-
-
-int test_ftpproperties(void) {
- int number_of_errors = 0;
- FTPHandleProviderI provider;
-
- ftp::FTPURL url(
- OUString( "ftp://abi:psswd@abi-1/file"),
- &provider);
-
- ftp::FTPDirentry ade(url.direntry());
-
- if(!(ade.m_aName == "file" && ade.isFile()))
- ++number_of_errors;
-
- if(number_of_errors)
- {
- const char* name = "test_ftpproperties";
- fprintf(stderr,"errors in %s: %d\n",name,number_of_errors);
- }
- return number_of_errors;
-}
-
-
-int test_ftpopen(void)
-{
- int number_of_errors = 0;
-
- FTPHandleProviderI provider;
- ftp::FTPURL url(
- OUString( "ftp://abi:psswd@abi-1/file"),
- &provider);
-
- FILE* file = url.open();
- if(file) {
- int nbuf;
- const int bffsz = 256;
- char buff[bffsz];
- char *dest = (char*) malloc(sizeof(char));
- dest[0] = 0;
- do {
- memset((void*)buff, 0, bffsz);
- fread(buff,bffsz-1,1,file);
- nbuf = strlen(buff);
- int ndest = strlen(dest);
- dest = (char*)realloc(dest,ndest + nbuf + 1);
- strncat(dest,buff,nbuf);
- } while(nbuf == bffsz-1);
- fclose(file);
-
- const char* expected = "You are now looking at the filecontent.\n";
- if(strcmp(expected,dest))
- ++number_of_errors;
- free(dest);
- } else
- ++number_of_errors;
-
- if(number_of_errors)
- {
- const char* name = "test_ftpopen";
- fprintf(stderr,"errors in %s: %d\n",name,number_of_errors);
- }
- return number_of_errors;
-}
-
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/ucb/source/ucp/ftp/test_ftpurl.hxx b/ucb/source/ucp/ftp/test_ftpurl.hxx
deleted file mode 100644
index de9f80dcbda2..000000000000
--- a/ucb/source/ucp/ftp/test_ftpurl.hxx
+++ /dev/null
@@ -1,31 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_UCB_SOURCE_UCP_FTP_TEST_FTPURL_HXX
-#define INCLUDED_UCB_SOURCE_UCP_FTP_TEST_FTPURL_HXX
-
-extern int test_ftpurl(void);
-extern int test_ftpproperties(void);
-extern int test_ftpopen(void);
-extern int test_ftplist(void);
-extern int test_ftpparent(void);
-
-#endif // INCLUDED_UCB_SOURCE_UCP_FTP_TEST_FTPURL_HXX
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/ucb/source/ucp/ftp/test_multiservicefac.cxx b/ucb/source/ucp/ftp/test_multiservicefac.cxx
deleted file mode 100644
index d7b42bd5a8ff..000000000000
--- a/ucb/source/ucp/ftp/test_multiservicefac.cxx
+++ /dev/null
@@ -1,103 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-
-/**************************************************************************
- TODO
- **************************************************************************
-
- *************************************************************************/
-#include "test_multiservicefac.hxx"
-
-
-using namespace test_ftp;
-using namespace com::sun::star::uno;
-using namespace com::sun::star::lang;
-
-
-Any SAL_CALL
-Test_MultiServiceFactory::queryInterface(
- const Type& rType
-)
- throw(
- RuntimeException
- )
-{
- Any aRet = ::cppu::queryInterface(rType, (static_cast< XMultiServiceFactory* >( this )) );
-
- return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
-
-}
-
-
-void SAL_CALL Test_MultiServiceFactory::acquire( void ) throw()
-{
- OWeakObject::acquire();
-}
-
-
-void SAL_CALL Test_MultiServiceFactory::release( void ) throw()
-{
- OWeakObject::release();
-}
-
- // XMultiServiceFactory
-
- Reference<
-XInterface > SAL_CALL
-Test_MultiServiceFactory::createInstance(
- const OUString& aServiceSpecifier
-)
- throw (
- Exception,
- RuntimeException
- )
-{
- return Reference<
- XInterface >(0);
-}
-
-
-Reference<
-XInterface > SAL_CALL
-Test_MultiServiceFactory::createInstanceWithArguments(
- const OUString& ServiceSpecifier,
- const Sequence
- < Any >& Arguments
-)
- throw (
- Exception,
- RuntimeException
- )
-{
- return Reference<
- XInterface >(0);
-}
-
-Sequence< OUString > SAL_CALL
-Test_MultiServiceFactory::getAvailableServiceNames(
-)
- throw (
- RuntimeException
- )
-{
- return Sequence< OUString >(0);
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/ucb/source/ucp/ftp/test_multiservicefac.hxx b/ucb/source/ucp/ftp/test_multiservicefac.hxx
deleted file mode 100644
index 4bb98fee66f9..000000000000
--- a/ucb/source/ucp/ftp/test_multiservicefac.hxx
+++ /dev/null
@@ -1,89 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-/**************************************************************************
- TODO
- **************************************************************************
-
- *************************************************************************/
-#ifndef INCLUDED_UCB_SOURCE_UCP_FTP_TEST_MULTISERVICEFAC_HXX
-#define INCLUDED_UCB_SOURCE_UCP_FTP_TEST_MULTISERVICEFAC_HXX
-
-#include <cppuhelper/weak.hxx>
-#include <cppuhelper/queryinterface.hxx>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-
-
-namespace test_ftp {
-
- class Test_MultiServiceFactory
- : public cppu::OWeakObject,
- public com::sun::star::lang::XMultiServiceFactory
- {
- public:
-
- // XInterface
-
- virtual com::sun::star::uno::Any SAL_CALL
- queryInterface( const com::sun::star::uno::Type& rType )
- throw( com::sun::star::uno::RuntimeException );
-
-
- virtual void SAL_CALL acquire( void ) throw();
-
- virtual void SAL_CALL release( void ) throw();
-
- // XMultiServiceFactory
-
- virtual ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface > SAL_CALL
- createInstance(
- const OUString& aServiceSpecifier
- )
- throw (
- ::com::sun::star::uno::Exception,
- ::com::sun::star::uno::RuntimeException
- );
-
- virtual
- ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XInterface > SAL_CALL
- createInstanceWithArguments(
- const OUString& ServiceSpecifier,
- const ::com::sun::star::uno::Sequence
- < ::com::sun::star::uno::Any >& Arguments
- )
- throw (
- ::com::sun::star::uno::Exception,
- ::com::sun::star::uno::RuntimeException
- );
-
- virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL
- getAvailableServiceNames(
- )
- throw (
- ::com::sun::star::uno::RuntimeException
- );
- };
-
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */