bump product version to 7.2.5.1
[LibreOffice.git] / ucb / source / ucp / webdav-neon / webdavdatasupplier.hxx
blob5c820364028c4133e41dabb83efea88c54d25ed8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #pragma once
31 #include <config_lgpl.h>
32 #include <memory>
33 #include <rtl/ref.hxx>
34 #include <ucbhelper/resultset.hxx>
36 namespace webdav_ucp {
38 struct DataSupplier_Impl;
39 class Content;
41 class DataSupplier : public ucbhelper::ResultSetDataSupplier
43 std::unique_ptr<DataSupplier_Impl> m_pImpl;
45 private:
46 bool getData();
48 public:
49 DataSupplier( const css::uno::Reference< css::uno::XComponentContext >& rxContext,
50 const rtl::Reference< Content >& rContent,
51 sal_Int32 nOpenMode);
53 virtual ~DataSupplier() override;
55 virtual OUString queryContentIdentifierString( sal_uInt32 nIndex ) override;
56 virtual css::uno::Reference< css::ucb::XContentIdentifier >
57 queryContentIdentifier( sal_uInt32 nIndex ) override;
58 virtual css::uno::Reference< css::ucb::XContent >
59 queryContent( sal_uInt32 nIndex ) override;
61 virtual bool getResult( sal_uInt32 nIndex ) override;
63 virtual sal_uInt32 totalCount() override;
64 virtual sal_uInt32 currentCount() override;
65 virtual bool isCountFinal() override;
67 virtual css::uno::Reference< css::sdbc::XRow >
68 queryPropertyValues( sal_uInt32 nIndex ) override;
69 virtual void releasePropertyValues( sal_uInt32 nIndex ) override;
71 virtual void close() override;
73 virtual void validate() override;
78 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */