bump product version to 7.2.5.1
[LibreOffice.git] / ucb / source / ucp / cmis / cmis_datasupplier.hxx
blobf11a9139707e8bfb43209ee530f34fc3c09448b5
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/.
8 */
10 #pragma once
12 #include <vector>
14 #include <ucbhelper/resultset.hxx>
16 #include "children_provider.hxx"
18 namespace cmis
21 class Content;
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
35 private:
36 ChildrenProvider* m_pChildrenProvider;
37 sal_Int32 mnOpenMode;
38 bool mbCountFinal;
39 void getData();
40 std::vector< ResultListEntry > maResults;
42 public:
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: */