summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/cmis/cmis_datasupplier.hxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-07-09 17:30:11 +0200
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-07-09 17:36:12 +0200
commit4cb0143327155b6678989a3fe63f11df5014f3a5 (patch)
tree71260f7ed19dd41f50846fef6442acf4dfa35093 /ucb/source/ucp/cmis/cmis_datasupplier.hxx
parent5db77d15790b154d7a066afabd73ab89d48915d6 (diff)
CMIS UCP: Added support for Binding URL and Repository as folders
This feature needed to change quite some code in the way children are fetched in CMIS UCP to avoid running several times the same HTTP requests. The new URLs will find the following scheme: + Children of vnd.libreoffice.cmis+atom://admin@http-encoded-binding-url-no-repoid/ are the repositories listed by the binding URL + Children of vnd.libreoffice.cmis+atom://admin@http-encoded-binding-url-no-repoid/repoid are the root folder of the repository Change-Id: I405d88c82e6fc9f1110a84165a151257c4ce60db
Diffstat (limited to 'ucb/source/ucp/cmis/cmis_datasupplier.hxx')
-rw-r--r--ucb/source/ucp/cmis/cmis_datasupplier.hxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/ucb/source/ucp/cmis/cmis_datasupplier.hxx b/ucb/source/ucp/cmis/cmis_datasupplier.hxx
index 14ad404c90f0..7a3b42060ffa 100644
--- a/ucb/source/ucp/cmis/cmis_datasupplier.hxx
+++ b/ucb/source/ucp/cmis/cmis_datasupplier.hxx
@@ -14,7 +14,7 @@
#include <ucbhelper/resultset.hxx>
-#include "cmis_content.hxx"
+#include "children_provider.hxx"
namespace cmis
{
@@ -23,13 +23,10 @@ namespace cmis
struct ResultListEntry
{
- ::rtl::OUString aId;
- com::sun::star::uno::Reference< com::sun::star::ucb::XContentIdentifier > xId;
com::sun::star::uno::Reference< com::sun::star::ucb::XContent > xContent;
com::sun::star::uno::Reference< com::sun::star::sdbc::XRow > xRow;
- libcmis::ObjectPtr pObject;
- ResultListEntry( libcmis::ObjectPtr pObj ) : pObject( pObj )
+ ResultListEntry( com::sun::star::uno::Reference< com::sun::star::ucb::XContent > xCnt ) : xContent( xCnt )
{
}
@@ -43,7 +40,7 @@ namespace cmis
class DataSupplier : public ucbhelper::ResultSetDataSupplier
{
private:
- com::sun::star::uno::Reference< ::cmis::Content > mxContent;
+ ChildrenProvider* m_pChildrenProvider;
com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory > m_xSMgr;
sal_Int32 mnOpenMode;
bool mbCountFinal;
@@ -52,7 +49,8 @@ namespace cmis
public:
DataSupplier( const com::sun::star::uno::Reference< com::sun::star::lang::XMultiServiceFactory >& rxSMgr,
- const com::sun::star::uno::Reference< Content >& rContent, sal_Int32 nOpenMode );
+ ChildrenProvider* pChildrenProvider, sal_Int32 nOpenMode );
+
virtual ~DataSupplier();
virtual rtl::OUString queryContentIdentifierString( sal_uInt32 nIndex );