bump product version to 4.1.6.2
[LibreOffice.git] / ucb / source / cacher / cacheddynamicresultsetstub.hxx
bloba65d836662bf86d8142ceb48f5007586541edd91
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 _CACHED_DYNAMIC_RESULTSET_STUB_HXX
21 #define _CACHED_DYNAMIC_RESULTSET_STUB_HXX
23 #include <dynamicresultsetwrapper.hxx>
24 #include <com/sun/star/ucb/XCachedDynamicResultSetStubFactory.hpp>
26 #define CACHED_DRS_STUB_SERVICE_NAME "com.sun.star.ucb.CachedDynamicResultSetStub"
27 #define CACHED_DRS_STUB_FACTORY_NAME "com.sun.star.ucb.CachedDynamicResultSetStubFactory"
29 //=========================================================================
31 class CachedDynamicResultSetStub
32 : public DynamicResultSetWrapper
33 , public com::sun::star::lang::XTypeProvider
34 , public com::sun::star::lang::XServiceInfo
36 protected:
37 virtual void SAL_CALL
38 impl_InitResultSetOne( const com::sun::star::uno::Reference<
39 com::sun::star::sdbc::XResultSet >& xResultSet );
40 virtual void SAL_CALL
41 impl_InitResultSetTwo( const com::sun::star::uno::Reference<
42 com::sun::star::sdbc::XResultSet >& xResultSet );
44 public:
45 CachedDynamicResultSetStub( com::sun::star::uno::Reference<
46 com::sun::star::ucb::XDynamicResultSet > xOrigin
47 , const com::sun::star::uno::Reference<
48 com::sun::star::uno::XComponentContext > & rxContext );
50 virtual ~CachedDynamicResultSetStub();
53 //-----------------------------------------------------------------
54 // XInterface inherited
55 //-----------------------------------------------------------------
56 XINTERFACE_DECL()
57 //-----------------------------------------------------------------
58 // XTypeProvider
59 //-----------------------------------------------------------------
60 XTYPEPROVIDER_DECL()
61 //-----------------------------------------------------------------
62 // XServiceInfo
63 //-----------------------------------------------------------------
64 XSERVICEINFO_NOFACTORY_DECL()
67 //=========================================================================
69 class CachedDynamicResultSetStubFactory
70 : public cppu::OWeakObject
71 , public com::sun::star::lang::XTypeProvider
72 , public com::sun::star::lang::XServiceInfo
73 , public com::sun::star::ucb::XCachedDynamicResultSetStubFactory
75 protected:
76 com::sun::star::uno::Reference<
77 com::sun::star::uno::XComponentContext > m_xContext;
79 public:
81 CachedDynamicResultSetStubFactory(
82 const com::sun::star::uno::Reference<
83 com::sun::star::uno::XComponentContext > & rxContext);
85 virtual ~CachedDynamicResultSetStubFactory();
87 //-----------------------------------------------------------------
88 // XInterface
89 XINTERFACE_DECL()
91 //-----------------------------------------------------------------
92 // XTypeProvider
93 XTYPEPROVIDER_DECL()
95 //-----------------------------------------------------------------
96 // XServiceInfo
97 XSERVICEINFO_DECL()
99 //-----------------------------------------------------------------
100 // XCachedDynamicResultSetStubFactory
102 virtual com::sun::star::uno::Reference<
103 com::sun::star::ucb::XDynamicResultSet > SAL_CALL
104 createCachedDynamicResultSetStub(
105 const com::sun::star::uno::Reference<
106 com::sun::star::ucb::XDynamicResultSet > & Source )
107 throw( com::sun::star::uno::RuntimeException );
110 virtual void SAL_CALL connectToCache(
111 const com::sun::star::uno::Reference<
112 com::sun::star::ucb::XDynamicResultSet > & Source
113 , const com::sun::star::uno::Reference<
114 com::sun::star::ucb::XDynamicResultSet > & TargetCache
115 , const com::sun::star::uno::Sequence<
116 com::sun::star::ucb::NumberedSortingInfo > & SortingInfo
117 , const com::sun::star::uno::Reference<
118 com::sun::star::ucb::XAnyCompareFactory > & CompareFactory
120 throw (
121 com::sun::star::ucb::ListenerAlreadySetException
122 , com::sun::star::ucb::AlreadyInitializedException
123 , com::sun::star::uno::RuntimeException
127 #endif
129 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */