1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
14 #include <ucbhelper/resultset.hxx>
16 #include "children_provider.hxx"
23 struct ResultListEntry
25 css::uno::Reference
< css::ucb::XContent
> xContent
;
26 css::uno::Reference
< css::sdbc::XRow
> xRow
;
28 explicit ResultListEntry( css::uno::Reference
< css::ucb::XContent
> const & xCnt
) : xContent( xCnt
)
33 class DataSupplier
: public ucbhelper::ResultSetDataSupplier
36 ChildrenProvider
* m_pChildrenProvider
;
40 std::vector
< ResultListEntry
> maResults
;
43 DataSupplier( ChildrenProvider
* pChildrenProvider
, sal_Int32 nOpenMode
);
45 virtual ~DataSupplier() override
;
47 virtual OUString
queryContentIdentifierString( sal_uInt32 nIndex
) override
;
48 virtual css::uno::Reference
< css::ucb::XContentIdentifier
>
49 queryContentIdentifier( sal_uInt32 nIndex
) override
;
50 virtual css::uno::Reference
< css::ucb::XContent
>
51 queryContent( sal_uInt32 nIndex
) override
;
53 virtual bool getResult( sal_uInt32 nIndex
) override
;
55 virtual sal_uInt32
totalCount() override
;
56 virtual sal_uInt32
currentCount() override
;
57 virtual bool isCountFinal() override
;
59 virtual css::uno::Reference
< css::sdbc::XRow
>
60 queryPropertyValues( sal_uInt32 nIndex
) override
;
61 virtual void releasePropertyValues( sal_uInt32 nIndex
) override
;
63 virtual void close() override
;
65 virtual void validate() override
;
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */