/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
// Maps the UCB property names contained in rProps with their DAV property // counterparts, if possible. All unmappable properties will be included // unchanged in resulting vector. // The vector filled by this method can directly be handed over to // DAVResourceAccess::PROPFIND. The result from PROPFIND // (vector< DAVResource >) can be used to create a ContentProperties // instance which can map DAV properties back to UCB properties. staticvoid UCBNamesToDAVNames( const css::uno::Sequence< css::beans::Property > & rProps,
std::vector< OUString > & resources );
// Maps the UCB property names contained in rProps with their HTTP header // counterparts, if possible. All unmappable properties will be included // unchanged in resulting vector. // The vector filled by this method can directly be handed over to // DAVResourceAccess::HEAD. The result from HEAD (vector< DAVResource >) // can be used to create a ContentProperties instance which can map header // names back to UCB properties. staticvoid UCBNamesToHTTPNames( const css::uno::Sequence< css::beans::Property > & rProps,
std::vector< OUString > & resources );
// return true, if all properties contained in rProps are contained in // this ContentProperties instance. Otherwise, false will be returned. // rNamesNotContained contain the missing names. bool containsAllNames( const css::uno::Sequence< css::beans::Property >& rProps,
std::vector< OUString > & rNamesNotContained ) const;
// adds all properties described by rProps that are actually contained in // rContentProps to this instance. In case of duplicates the value // already contained in this will left unchanged. void addProperties( const std::vector< OUString > & rProps, const ContentProperties & rContentProps );
// Not good to expose implementation details, but this is actually an // internal class. const std::unique_ptr< PropertyValueMap > & getProperties() const
{ return m_xProps; }
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.