namespace http_dav_ucp
{ // A property names cache mechanism, URL driven. // It is used to cache the property names received // from the WebDAV server, to minimize the need of // net transactions (e.g. PROPFIND). // The cache lifetime should be short // just to remove the annoying slowness when // typing text or moving cursor around when the // net link is slow.
// Define the properties cache element class PropertyNames
{ /// target time when this element becomes stale
sal_uInt32 m_nStaleTime;
OUString m_sURL; // the property name list received from WebDAV server
std::vector< DAVResourceInfo > m_aPropertiesNames;
// Define the PropertyNames cache // TODO: the OUString key element in std::map needs to be changed with a URI representation // with a specific compare (std::less) implementation, this last one implementing // as suggested in <https://tools.ietf.org/html/rfc3986#section-6>. // To find by URI and not by string equality. typedef std::map< OUString, PropertyNames,
std::less< OUString > >PropNameCache;
class PropertyNamesCache
{
PropNameCache m_aTheCache;
std::mutex m_aMutex;
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.