nss: upgrade to release 3.73
[LibreOffice.git] / ucb / source / cacher / cacheddynamicresultsetstub.hxx
blob50bb06c93d95ab66cd247fb99288c44acea05cbe
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_UCB_SOURCE_CACHER_CACHEDDYNAMICRESULTSETSTUB_HXX
21 #define INCLUDED_UCB_SOURCE_CACHER_CACHEDDYNAMICRESULTSETSTUB_HXX
23 #include "dynamicresultsetwrapper.hxx"
24 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
25 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
26 #include <com/sun/star/lang/XServiceInfo.hpp>
27 #include <com/sun/star/lang/XTypeProvider.hpp>
28 #include <com/sun/star/ucb/XCachedDynamicResultSetStubFactory.hpp>
29 #include <cppuhelper/implbase.hxx>
33 class CachedDynamicResultSetStub
34 : public DynamicResultSetWrapper
35 , public css::lang::XTypeProvider
36 , public css::lang::XServiceInfo
38 protected:
39 virtual void
40 impl_InitResultSetOne( const css::uno::Reference< css::sdbc::XResultSet >& xResultSet ) override;
41 virtual void
42 impl_InitResultSetTwo( const css::uno::Reference< css::sdbc::XResultSet >& xResultSet ) override;
44 public:
45 CachedDynamicResultSetStub( css::uno::Reference< css::ucb::XDynamicResultSet > const & xOrigin
46 , const css::uno::Reference< css::uno::XComponentContext > & rxContext );
48 virtual ~CachedDynamicResultSetStub() override;
51 // XInterface
52 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
53 virtual void SAL_CALL acquire()
54 throw() override;
55 virtual void SAL_CALL release()
56 throw() override;
58 // XTypeProvider
60 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
61 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
63 // XServiceInfo
64 virtual OUString SAL_CALL getImplementationName() override;
65 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
66 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
70 class CachedDynamicResultSetStubFactory final :
71 public cppu::WeakImplHelper<
72 css::lang::XServiceInfo,
73 css::ucb::XCachedDynamicResultSetStubFactory>
75 css::uno::Reference< css::uno::XComponentContext > m_xContext;
77 public:
79 CachedDynamicResultSetStubFactory(
80 const css::uno::Reference< css::uno::XComponentContext > & rxContext);
82 virtual ~CachedDynamicResultSetStubFactory() override;
84 // XServiceInfo
85 virtual OUString SAL_CALL getImplementationName() override;
86 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
87 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
89 // XCachedDynamicResultSetStubFactory
91 virtual css::uno::Reference< css::ucb::XDynamicResultSet > SAL_CALL
92 createCachedDynamicResultSetStub(
93 const css::uno::Reference< css::ucb::XDynamicResultSet > & Source ) override;
96 virtual void SAL_CALL connectToCache(
97 const css::uno::Reference< css::ucb::XDynamicResultSet > & Source
98 , const css::uno::Reference< css::ucb::XDynamicResultSet > & TargetCache
99 , const css::uno::Sequence< css::ucb::NumberedSortingInfo > & SortingInfo
100 , const css::uno::Reference< css::ucb::XAnyCompareFactory > & CompareFactory
101 ) override;
104 #endif
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */