nss: upgrade to release 3.73
[LibreOffice.git] / ucb / source / cacher / cacheddynamicresultset.hxx
blob0aed42510542992bb354043fba3e3a332fa4f8e1
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_CACHEDDYNAMICRESULTSET_HXX
21 #define INCLUDED_UCB_SOURCE_CACHER_CACHEDDYNAMICRESULTSET_HXX
23 #include "dynamicresultsetwrapper.hxx"
24 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
25 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
26 #include <com/sun/star/lang/XServiceInfo.hpp>
27 #include <com/sun/star/lang/XTypeProvider.hpp>
28 #include <com/sun/star/ucb/XContentIdentifierMapping.hpp>
29 #include <com/sun/star/ucb/XCachedDynamicResultSetFactory.hpp>
30 #include <cppuhelper/implbase.hxx>
33 class CachedDynamicResultSet
34 : public DynamicResultSetWrapper
35 , public css::lang::XTypeProvider
36 , public css::lang::XServiceInfo
38 css::uno::Reference< css::ucb::XContentIdentifierMapping >
39 m_xContentIdentifierMapping;
41 protected:
42 virtual void
43 impl_InitResultSetOne( const css::uno::Reference< css::sdbc::XResultSet >& xResultSet ) override;
44 virtual void
45 impl_InitResultSetTwo( const css::uno::Reference< css::sdbc::XResultSet >& xResultSet ) override;
47 public:
48 CachedDynamicResultSet( css::uno::Reference< css::ucb::XDynamicResultSet > const & xOrigin
49 , const css::uno::Reference< css::ucb::XContentIdentifierMapping > & xContentMapping
50 , const css::uno::Reference< css::uno::XComponentContext > & xContext );
52 virtual ~CachedDynamicResultSet() override;
55 // XInterface
56 virtual css::uno::Any SAL_CALL queryInterface( const css::uno::Type & rType ) override;
57 virtual void SAL_CALL acquire()
58 throw() override;
59 virtual void SAL_CALL release()
60 throw() override;
62 // XTypeProvider
64 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override;
65 virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override;
67 // XServiceInfo
68 virtual OUString SAL_CALL getImplementationName() override;
69 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
70 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
72 // own methods ( inherited )
74 virtual void
75 impl_disposing( const css::lang::EventObject& Source ) override;
79 class CachedDynamicResultSetFactory final :
80 public cppu::WeakImplHelper<
81 css::lang::XServiceInfo,
82 css::ucb::XCachedDynamicResultSetFactory>
84 css::uno::Reference< css::uno::XComponentContext > m_xContext;
86 public:
88 CachedDynamicResultSetFactory(
89 const css::uno::Reference< css::uno::XComponentContext > & xContext);
91 virtual ~CachedDynamicResultSetFactory() override;
93 // XServiceInfo
94 virtual OUString SAL_CALL getImplementationName() override;
95 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
96 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
98 // XCachedDynamicResultSetFactory
100 virtual css::uno::Reference< css::ucb::XDynamicResultSet > SAL_CALL
101 createCachedDynamicResultSet(
102 const css::uno::Reference< css::ucb::XDynamicResultSet > & SourceStub
103 , const css::uno::Reference< css::ucb::XContentIdentifierMapping > & ContentIdentifierMapping
104 ) override;
107 #endif
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */