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/.
10 #ifndef INCLUDED_UCB_SOURCE_UCP_CMIS_CMIS_DATASUPPLIER_HXX
11 #define INCLUDED_UCB_SOURCE_UCP_CMIS_CMIS_DATASUPPLIER_HXX
15 #include <ucbhelper/resultset.hxx>
17 #include "children_provider.hxx"
24 struct ResultListEntry
26 com::sun::star::uno::Reference
< com::sun::star::ucb::XContent
> xContent
;
27 com::sun::star::uno::Reference
< com::sun::star::sdbc::XRow
> xRow
;
29 ResultListEntry( com::sun::star::uno::Reference
< com::sun::star::ucb::XContent
> xCnt
) : xContent( xCnt
)
38 typedef std::vector
< ResultListEntry
* > ResultList
;
40 class DataSupplier
: public ucbhelper::ResultSetDataSupplier
43 ChildrenProvider
* m_pChildrenProvider
;
50 DataSupplier( ChildrenProvider
* pChildrenProvider
, sal_Int32 nOpenMode
);
52 virtual ~DataSupplier();
54 virtual OUString
queryContentIdentifierString( sal_uInt32 nIndex
) SAL_OVERRIDE
;
55 virtual com::sun::star::uno::Reference
< com::sun::star::ucb::XContentIdentifier
>
56 queryContentIdentifier( sal_uInt32 nIndex
) SAL_OVERRIDE
;
57 virtual com::sun::star::uno::Reference
< com::sun::star::ucb::XContent
>
58 queryContent( sal_uInt32 nIndex
) SAL_OVERRIDE
;
60 virtual bool getResult( sal_uInt32 nIndex
) SAL_OVERRIDE
;
62 virtual sal_uInt32
totalCount() SAL_OVERRIDE
;
63 virtual sal_uInt32
currentCount() SAL_OVERRIDE
;
64 virtual bool isCountFinal() SAL_OVERRIDE
;
66 virtual com::sun::star::uno::Reference
< com::sun::star::sdbc::XRow
>
67 queryPropertyValues( sal_uInt32 nIndex
) SAL_OVERRIDE
;
68 virtual void releasePropertyValues( sal_uInt32 nIndex
) SAL_OVERRIDE
;
70 virtual void close() SAL_OVERRIDE
;
72 virtual void validate()
73 throw( com::sun::star::ucb::ResultSetException
) SAL_OVERRIDE
;
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */