LibreOffice Module ucb (master) 1
|
#include <ContentProperties.hxx>
Public Member Functions | |
ContentProperties () | |
ContentProperties (const DAVResource &rResource) | |
ContentProperties (const OUString &rTitle, bool bFolder) | |
ContentProperties (const OUString &rTitle) | |
ContentProperties (const ContentProperties &rOther) | |
bool | contains (const OUString &rName) const |
const css::uno::Any & | getValue (const OUString &rName) const |
bool | containsAllNames (const css::uno::Sequence< css::beans::Property > &rProps, std::vector< OUString > &rNamesNotContained) const |
void | addProperties (const std::vector< OUString > &rProps, const ContentProperties &rContentProps) |
void | addProperty (const OUString &rName, const css::uno::Any &rValue, bool bIsCaseSensitive) |
void | addProperty (const DAVPropertyValue &rProp) |
bool | isTrailingSlash () const |
const OUString & | getEscapedTitle () const |
const std::unique_ptr< PropertyValueMap > & | getProperties () const |
Static Public Member Functions | |
static void | UCBNamesToDAVNames (const css::uno::Sequence< css::beans::Property > &rProps, std::vector< OUString > &resources) |
static void | UCBNamesToHTTPNames (const css::uno::Sequence< css::beans::Property > &rProps, std::vector< OUString > &resources) |
Private Member Functions | |
ContentProperties & | operator= (const ContentProperties &) |
const PropertyValue * | get (const OUString &rName) const |
Private Attributes | |
OUString | m_aEscapedTitle |
std::unique_ptr< PropertyValueMap > | m_xProps |
bool | m_bTrailingSlash |
Static Private Attributes | |
static css::uno::Any | m_aEmptyAny |
Definition at line 64 of file ContentProperties.hxx.
ContentProperties::ContentProperties | ( | ) |
Definition at line 134 of file ContentProperties.cxx.
References m_xProps.
|
explicit |
Definition at line 75 of file ContentProperties.cxx.
References addProperty(), http_dav_ucp::CurlUri::GetPathBaseName(), http_dav_ucp::CurlUri::GetPathBaseNameUnescaped(), m_aEscapedTitle, m_bTrailingSlash, m_xProps, http_dav_ucp::DAVResource::properties, and http_dav_ucp::DAVResource::uri.
ContentProperties::ContentProperties | ( | const OUString & | rTitle, |
bool | bFolder | ||
) |
Definition at line 111 of file ContentProperties.cxx.
References m_xProps.
|
explicit |
Definition at line 125 of file ContentProperties.cxx.
References m_xProps.
ContentProperties::ContentProperties | ( | const ContentProperties & | rOther | ) |
Definition at line 141 of file ContentProperties.cxx.
References m_xProps.
void ContentProperties::addProperties | ( | const std::vector< OUString > & | rProps, |
const ContentProperties & | rContentProps | ||
) |
Definition at line 346 of file ContentProperties.cxx.
References addProperty(), contains(), get(), http_dav_ucp::PropertyValue::isCaseSensitive(), and http_dav_ucp::PropertyValue::value().
void ContentProperties::addProperty | ( | const DAVPropertyValue & | rProp | ) |
Definition at line 368 of file ContentProperties.cxx.
References addProperty(), http_dav_ucp::DAVPropertyValue::IsCaseSensitive, http_dav_ucp::DAVPropertyValue::Name, and http_dav_ucp::DAVPropertyValue::Value.
void ContentProperties::addProperty | ( | const OUString & | rName, |
const css::uno::Any & | rValue, | ||
bool | bIsCaseSensitive | ||
) |
Definition at line 374 of file ContentProperties.cxx.
References http_dav_ucp::DateTimeHelper::convert(), http_dav_ucp::DAVProperties::CREATIONDATE, http_dav_ucp::DAVProperties::GETCONTENTLENGTH, http_dav_ucp::DAVProperties::GETCONTENTTYPE, http_dav_ucp::DAVProperties::GETLASTMODIFIED, http_dav_ucp::DAVProperties::RESOURCETYPE, http_dav_ucp::WEBDAV_COLLECTION_TYPE, and WEBDAV_CONTENT_TYPE.
Referenced by http_dav_ucp::CachableContentProperties::addProperties(), addProperties(), addProperty(), and ContentProperties().
bool ContentProperties::contains | ( | const OUString & | rName | ) | const |
Definition at line 151 of file ContentProperties.cxx.
References get().
Referenced by addProperties(), and containsAllNames().
bool ContentProperties::containsAllNames | ( | const css::uno::Sequence< css::beans::Property > & | rProps, |
std::vector< OUString > & | rNamesNotContained | ||
) | const |
Definition at line 325 of file ContentProperties.cxx.
References contains(), n, and nCount.
Referenced by http_dav_ucp::CachableContentProperties::containsAllNames().
|
private |
Definition at line 171 of file ContentProperties.cxx.
Referenced by addProperties(), contains(), and getValue().
|
inline |
Definition at line 126 of file ContentProperties.hxx.
References m_aEscapedTitle.
|
inline |
Definition at line 130 of file ContentProperties.hxx.
References m_xProps.
Referenced by http_dav_ucp::CachableContentProperties::addProperties().
const uno::Any & ContentProperties::getValue | ( | const OUString & | rName | ) | const |
Definition at line 160 of file ContentProperties.cxx.
References get(), m_aEmptyAny, and http_dav_ucp::PropertyValue::value().
Referenced by http_dav_ucp::CachableContentProperties::getValue().
|
inline |
Definition at line 124 of file ContentProperties.hxx.
References m_bTrailingSlash.
|
private |
|
static |
Definition at line 194 of file ContentProperties.cxx.
References http_dav_ucp::DAVProperties::CREATIONDATE, http_dav_ucp::DAVProperties::GETCONTENTLENGTH, http_dav_ucp::DAVProperties::GETCONTENTTYPE, http_dav_ucp::DAVProperties::GETLASTMODIFIED, n, nCount, and http_dav_ucp::DAVProperties::RESOURCETYPE.
Referenced by http_dav_ucp::DataSupplier::getData().
|
static |
Definition at line 286 of file ContentProperties.cxx.
|
staticprivate |
Definition at line 138 of file ContentProperties.hxx.
Referenced by getValue().
|
private |
Definition at line 134 of file ContentProperties.hxx.
Referenced by ContentProperties(), and getEscapedTitle().
|
private |
Definition at line 136 of file ContentProperties.hxx.
Referenced by ContentProperties(), and isTrailingSlash().
|
private |
Definition at line 135 of file ContentProperties.hxx.
Referenced by get(), and getProperties().